Professional Web Applications Themes

Php script - create mail user - Linux/Postfix - PHP Development

Hi everybody, I have a personel server (I learning) with Linux I use apache, Php, Postfix. I want create with Php script a mail user by web form (yahoo like) I don't really know Php. May be someone can give me a example. I want permit at my friends to create their own email account. Thanks folks! Jean-Louis P.S. If possible sent me your answer at [email]jlvillsympatico.ca[/email]...

  1. #1

    Default Php script - create mail user - Linux/Postfix

    Hi everybody,

    I have a personel server (I learning) with Linux
    I use apache, Php, Postfix.

    I want create with Php script a mail user by web form (yahoo like) I
    don't really know Php. May be someone can give me a example. I want
    permit at my friends to create their own email account.

    Thanks folks!

    Jean-Louis

    P.S. If possible sent me your answer at [email]jlvillsympatico.ca[/email]

    Jean-Louis Vill Guest

  2. #2

    Default Re: Php script - create mail user - Linux/Postfix

    Hi Matthew,

    Thanks,
    I'll try and I'll give you some news.

    Jean-Louis

    Matthew Vickers wrote:
    > On Mon, 25 Aug 2003 21:21:31 -0400
    > Jean-Louis Vill <jlvillsympatico.ca> wrote:
    >
    >
    >>Hi everybody,
    >>
    >>I have a personel server (I learning) with Linux
    >>I use apache, Php, Postfix.
    >>
    >>I want create with Php script a mail user by web form (yahoo like) I
    >>don't really know Php. May be someone can give me a example. I want
    >>permit at my friends to create their own email account.
    >>
    >
    >
    > The commands to read up on would be sudo, sudoers, useradd, the
    > backtick operator (or shell_exec) and escapeshellarg.
    >
    > Add the user apache runs as on your unit and command adduser to the
    > sudoers file (as per the man page) and shell_exec sudo useradd.
    >
    > Something like the following:
    >
    > $password = escapeshellarg($_POST["pass"]);
    > $user_name = escapeshellarg($_POST["user"]);
    > $ret = `sudo useradd -g users -s /bin/false -p $password $user_name`;
    >
    > *Disclaimer* code not tested, do not know if it will work and it's
    > most likely insecure.
    >
    >
    > Matt
    >
    > <snip>
    >
    Jean-Louis Vill Guest

Similar Threads

  1. mail() using ISP's SMTP server with auth on linux
    By Sandy Tipper in forum PHP Development
    Replies: 2
    Last Post: September 12th, 09:47 PM
  2. Create additional local admin user account via script
    By P. Saint-Jacques in forum IBM DB2
    Replies: 0
    Last Post: September 2nd, 03:06 PM
  3. [PHP] mail with no sendmail on linux
    By daniel@electroteque.org in forum PHP Development
    Replies: 1
    Last Post: August 8th, 04:07 AM
  4. Replies: 1
    Last Post: July 31st, 08:51 PM
  5. First mail from my Linux
    By John Foster in forum Debian
    Replies: 9
    Last Post: July 28th, 04:20 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139