|
|
Question : how to create email with vpopmail (vadduser) using php ?
|
|
I have some trouble since this morning to get this working: - i have a webserver with apache, php and vpopmail running
i can run this command from shell : /home/vpopmail/bin/vuserinfo [email protected]
but this doesn't in php: exec("/home/vpopmail/bin/vuserinfo [email protected]");
I have already tried to use it with sudo by adding this line with visudo to my sudoer file: nobody ALL=(ALL) NOPASSWD: ALL
exec("sudo -u nobody /home/vpopmail/bin/vuserinfo [email protected]"); gives me "Error: unable to setuid"
also tried with root: root ALL=(ALL) NOPASSWD: ALL
exec("sudo -u root /home/vpopmail/bin/vuserinfo [email protected]");
but no luck !
thank you for help
|
Answer : how to create email with vpopmail (vadduser) using php ?
|
|
Is your web server running as 'nobody'? Nobody probably has no shell set, preventing you running anything. Have you tried running the vpopmail command as the vpopmail user instead of nobody?
|
|
|
|