[solved] Can't send mail

Discussion in 'Apache Migration/Compatibility' started by ffeingol, Nov 29, 2016.

  1. ffeingol

    ffeingol Well-Known Member

    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:

    [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.
     
  2. NiteWave

    NiteWave Administrator

    to confirm, does it mean all php processes run as nobody under apache ?
     
  3. ffeingol

    ffeingol Well-Known Member

    Correct. Under Apache they would run as nobody. It's a very old config, but that is how their server is setup.
     
  4. NiteWave

    NiteWave Administrator

    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.
     
  5. ffeingol

    ffeingol Well-Known Member

    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.
     
  6. NiteWave

    NiteWave Administrator

  7. ffeingol

    ffeingol Well-Known Member

    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.
     
    NiteWave likes this.

Share This Page