473,657 Members | 2,585 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Creating a qmail account without user interaction

I don't think my last attempt posted so here it is again.

This is a bit off-topic, but it does relate to php. This is the most
active related group that I can find, so even if it is off-topic I hope
you can help. (I have posted to alt.comp.mail.q mail, but that doesn't
have much participation).

Goal:
I want the create an account in qmail (which is written in php). What
I want to do is gather all the information from the user from a php
form that I write. On submit, and verification there will be another
page that the user does not see to create the email account. I want to
automatically create that account for him totally in the background and
then simply send him to a success page. The problem is the blind
creation of the qmail account.

I have tracked down some things. The vpopmail database is in mysql and
it holds his information related to the email account.
-- Side questions before I forget: The unencrypted password is

there as well as an encrypted form.
-- Is the unencrypted one necessary for qmail?
-- How is it encrypted? It is not md5. I compared the
result to an md5
encrypted value and they are different.

So far:
I have tracked down the html files. They are in
/var/www/cgi-bin/vqadmin/html. There appears to be a key one named
add_user.html. It has in it:
<form action="/cgi-bin/vqadmin/vqadmin.cgi" method="post" name="form1"
id="form1">

and then has:
<table border="0" cellspacing="2" cellpadding="2" >
<tr><td class="clsLabel R">#-020</td>
<td><INPUT TYPE="TEXT" NAME="eaddr" SIZE="30"
VALUE="$-UA"></td></tr>
<tr><td class="clsLabel R">#-021</td>
<td><INPUT TYPE="TEXT" NAME="cpass" SIZE="30"
VALUE="$-UO"></td></tr>
<tr><td class="clsLabel R">#-039</td>
<td><INPUT TYPE="TEXT" NAME="quota" SIZE="30"
VALUE="$-UQ"></td></tr>
<tr><td class="clsLabel R">#-022</td>
<td><INPUT TYPE="TEXT" NAME="fname" SIZE="30"
VALUE="$-UN"></td></tr>
<tr><td class="clsLabel ">#-040</td> </tr>
</table>
Assuming that this is the html file that actually gets sent to create
the account, what I want to do is from a different php file send to
/cgi-bin/vqadmin/vqadmin.cgi the information in a manner that it
thinks it is coming from this form. I want to do that without any user
interaction.
So:
-- Is this the right file for creating the user email
account?
-- How do I send the information that I have gather to the
cgi?
-- What are those #-020, #021 type things?
Thanks for any help.
Shelly (Sheldon)

Jan 20 '06 #1
3 2568
sh*******@gmail .com wrote:
I don't think my last attempt posted so here it is again.

This is a bit off-topic, but it does relate to php. This is the most
active related group that I can find, so even if it is off-topic I hope
you can help. (I have posted to alt.comp.mail.q mail, but that doesn't
have much participation).

Goal:
I want the create an account in qmail (which is written in php). What
I want to do is gather all the information from the user from a php
form that I write. On submit, and verification there will be another
page that the user does not see to create the email account. I want to
automatically create that account for him totally in the background and
then simply send him to a success page. The problem is the blind
creation of the qmail account.

I have tracked down some things. The vpopmail database is in mysql and
it holds his information related to the email account.
-- Side questions before I forget: The unencrypted password is

there as well as an encrypted form.
-- Is the unencrypted one necessary for qmail?
-- How is it encrypted? It is not md5. I compared the
result to an md5
encrypted value and they are different.

So far:
I have tracked down the html files. They are in
/var/www/cgi-bin/vqadmin/html. There appears to be a key one named
add_user.html. It has in it:
<form action="/cgi-bin/vqadmin/vqadmin.cgi" method="post" name="form1"
id="form1">

and then has:
<table border="0" cellspacing="2" cellpadding="2" >
<tr><td class="clsLabel R">#-020</td>
<td><INPUT TYPE="TEXT" NAME="eaddr" SIZE="30"
VALUE="$-UA"></td></tr>
<tr><td class="clsLabel R">#-021</td>
<td><INPUT TYPE="TEXT" NAME="cpass" SIZE="30"
VALUE="$-UO"></td></tr>
<tr><td class="clsLabel R">#-039</td>
<td><INPUT TYPE="TEXT" NAME="quota" SIZE="30"
VALUE="$-UQ"></td></tr>
<tr><td class="clsLabel R">#-022</td>
<td><INPUT TYPE="TEXT" NAME="fname" SIZE="30"
VALUE="$-UN"></td></tr>
<tr><td class="clsLabel ">#-040</td> </tr>
</table>
Assuming that this is the html file that actually gets sent to create
the account, what I want to do is from a different php file send to
/cgi-bin/vqadmin/vqadmin.cgi the information in a manner that it
thinks it is coming from this form. I want to do that without any user
interaction.
So:
-- Is this the right file for creating the user email
account?
-- How do I send the information that I have gather to the
cgi?
-- What are those #-020, #021 type things?
Thanks for any help.
Shelly (Sheldon)


if youre working on unix, and you can configure qmail so that all
systemusers get an account, you could just run an adduser on the
root-shell (have to execute a system command) - otherwise you could
write a shellscript, that creates a qmail user for you, which means to
research, how a user is created physically in qmail..

just adding a systemuser was easy, but quite unsecure i guess,
everything else, will cost you a lot of time, good luck
Jan 20 '06 #2
I do not want a system account for them, just a qmail account.

Jan 20 '06 #3
wolfwood2x
1 New Member
sheldonlg@gmail .com wrote:


if youre working on unix, and you can configure qmail so that all
systemusers get an account, you could just run an adduser on the
root-shell (have to execute a system command) - otherwise you could
write a shellscript, that creates a qmail user for you, which means to
research, how a user is created physically in qmail..

just adding a systemuser was easy, but quite unsecure i guess,
everything else, will cost you a lot of time, good luck
Yes but how do you configure it to do this. I would like to add a system user and have it create the qmail account and the Mail directory in the users /home/username/ directory
Apr 20 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
3990
by: mcmg | last post by:
Hi, I have an asp app that works fine on a windows xp machine but does not work on a windows 2000 server. I have the following code in my global.asa: <OBJECT RUNAT=Server SCOPE=SESSION ID=MyID
0
1392
by: Fred | last post by:
Hello, My company runs qmail on their SMTP server, as well as on the Linux machines that contain DB2 instances. When I used Control Center to test email notification with a DB2 V8.1.4 server on Linux, I always got a dialog that said that the test message was sent successfully. However, I never actually received the test message. When I asked one of my Linux admins to look into it, he noticed that the SMTP server (qmail, in thie case)...
1
4057
by: Dave Guenthner | last post by:
Hi. I have a c# console application that works fine when it is executed under the context of a user account who is Administrator of the local machine. However, my production environment, no end user is a full Administrator of their machine. Is there a best practice or way out there to simply specify the credentials of a user account which has the Admin rights for this app to run under while being logged into machine with say a simply...
0
262
by: J'son | last post by:
Guys, I need to build a web intranet application that can automatically create a user account when a new user registers on the site. The user account will be on the web server, member of the guests group (or some other limited group), and get read permissions to a special folder. I've tried playing with Active Directory on my local box, but I'm running Win XP Pro, not Win Server 2003 so I don't think its available. My production...
6
14843
by: Jeff | last post by:
Hi - I understand how to create a directory folder, but how can I programatically create a _shared_ directory folder and set its permissions?? (I'm using VB.NET.) Thanks for your help. - Jeff
10
4537
by: Eric | last post by:
Is there something to interface postgreSQL with QMail to store mails in pgsql instead of using mbox or maildir? Or maybe it's not a good idea to do that? I think there is some adavantages... ---------------------------(end of broadcast)---------------------------
6
2032
by: Pep | last post by:
Firstly, I'm not sure if this is the right group for this query, so please forgive me if I am wrong. My problem is that most users I distribute my software to cannot install it on their systems due to not having the correct administrator rights. I'm perplexed over this as I cannot reasonably ask corporations to allow the local secretary to have admin or power user rights just to install my software. My software is intended for user...
1
1695
by: tim007 | last post by:
hi all, my issue is The sites login user id and password is same as the Qmail Mail servers userid and password so i need to authenticate the user, check if user id / pwd is valid in the Qmail server how is it possible using C#.net can anyone help ? thanks
0
1341
by: jehugaleahsa | last post by:
Hello: We are implementing a work flow system. We would like there to be one site hosting all the different work flows. Each state in the work flow is to be associated with a web user control (or something equivalent) that can be loaded dynamically and displayed. The control will provide events to allow the host web site to observe user interaction and eventually transition the work flow to the next state. We are right now doing some...
0
8397
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8827
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8732
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7333
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6167
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4315
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2731
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1957
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.