sendmail on Ubuntu won't send from www-data user
- by bumperbox
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?