473,407 Members | 2,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

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.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
3 2556
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
I do not want a system account for them, just a qmail account.

Jan 20 '06 #3
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
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...
0
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...
1
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...
0
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...
6
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. -...
10
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... ...
6
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...
1
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...
0
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.