Hi,
I have created a form that allows users to self-signup for an email account on my qmail/vpopmail server using PHP.
When the form is submitted, I run the command:
PHP Code:
exec("sudo -u vpopmail /home/vpopmail/bin/vadduser $email $passwd")
For this to work, I added the following line to the sudoers file:
apache ALL=(vpopmail) NOPASSWD: /home/vpopmail/bin/vadduser
Unfortunately, the user doesn't get added after the form is submitted.
What am I doing wrong?
Also, does vpopmail have log files? I can't seem to find them.
Is there a different way of adding a new email account via a web form?
TIA.