Creating a qmail account without user interaction

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sheldonlg@gmail.com

    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)

  • Michael Strasser

    #2
    Re: Creating a qmail account without user interaction

    sheldonlg@gmail .com wrote:[color=blue]
    > 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)
    >[/color]



    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

    Comment

    • sheldonlg@gmail.com

      #3
      Re: Creating a qmail account without user interaction

      I do not want a system account for them, just a qmail account.

      Comment

      • wolfwood2x
        New Member
        • Apr 2006
        • 1

        #4
        Originally posted by Michael Strasser
        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

        Comment

        Working...