sendmail on Ubuntu won't send from www-data user
Posted
by
bumperbox
on Server Fault
See other posts from Server Fault
or by bumperbox
Published on 2010-12-16T00:59:16Z
Indexed on
2012/06/05
22:42 UTC
Read the original article
Hit count: 272
I if call mail() function in PHP from webserver (running as www-data) i get an error sending email.
If i call the same script from the cmdline logged in as root, then it works
If i switch user to www-data and run from the cmdline i get this error message
WARNING: RunAsUser for MSP ignored, check group ids (egid=33, want=107)
can not chdir(/var/spool/mqueue-client/): Permission denied
Program mode requires special privileges, e.g., root or TrustedUser.
FAILEDWARNING: RunAsUser for MSP ignored, check group ids (egid=33, want=107)
can not chdir(/var/spool/mqueue-client/): Permission denied
Program mode requires special privileges, e.g., root or TrustedUser.
FAILEDTest Complete$ WARNING: RunAsUser for MSP ignored, check group ids (egid=33, want=107)
I am guessing i need to do something in sendmail configuration I have googled for some solutions but have ended up more confused.
Can someone let me know what configuration I need to change to fix so i can send from www-data user?
© Server Fault or respective owner