[Resolved] Can't send mail

Status
Not open for further replies.

ffeingol

Well-Known Member
#1
Hello,

We have a client that recently switched from cPanel/Apache (EasyApache 3) to LSWS. Their server runs as mod_dso for PHP. Every thing works fine except phplist. When they try to send mail they get the following message in stderr.log:
Code:
[STDERR] sendmail: sendmail cannot be called directly from a shell with the current user id
We've checked the cPanel settings and the tweak to not allow 'nobody' to send mail is not enabled. The scripts run fine under Apache.

Any thoughts will be greatly appreciated.
 
Last edited by a moderator:

NiteWave

Administrator
#4
to match apche config mod_dso, in lsws web admin console, should set "PHP suEXEC" to "No"
Server -> General -> PHP suEXEC

then all lsphp should run as nobody.
 

ffeingol

Well-Known Member
#5
It's already set that way. PHP is running as nobody. The only function (so far) that's not working is sending mail via phplist.
 

ffeingol

Well-Known Member
#7
Awesome find with the "Track email origin via X-Source email headers" settings. I searched the cPanel forum for the error, but that post did not come up for me.
 
Status
Not open for further replies.
Top