By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,466 Members | 1,309 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,466 IT Pros & Developers. It's quick & easy.

Creating a qmail account without user interaction

P: n/a
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.qmail, 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="clsLabelR">#-020</td>
<td><INPUT TYPE="TEXT" NAME="eaddr" SIZE="30"
VALUE="$-UA"></td></tr>
<tr><td class="clsLabelR">#-021</td>
<td><INPUT TYPE="TEXT" NAME="cpass" SIZE="30"
VALUE="$-UO"></td></tr>
<tr><td class="clsLabelR">#-039</td>
<td><INPUT TYPE="TEXT" NAME="quota" SIZE="30"
VALUE="$-UQ"></td></tr>
<tr><td class="clsLabelR">#-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
Share this Question
Share on Google+
3 Replies


P: n/a
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.qmail, 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="clsLabelR">#-020</td>
<td><INPUT TYPE="TEXT" NAME="eaddr" SIZE="30"
VALUE="$-UA"></td></tr>
<tr><td class="clsLabelR">#-021</td>
<td><INPUT TYPE="TEXT" NAME="cpass" SIZE="30"
VALUE="$-UO"></td></tr>
<tr><td class="clsLabelR">#-039</td>
<td><INPUT TYPE="TEXT" NAME="quota" SIZE="30"
VALUE="$-UQ"></td></tr>
<tr><td class="clsLabelR">#-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

P: n/a
I do not want a system account for them, just a qmail account.

Jan 20 '06 #3

P: 1
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 discussion thread is closed

Replies have been disabled for this discussion.