|
Posted by sheldonlg on 01/20/06 15:13
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)
Navigation:
[Reply to this message]
|