The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Sendmail doesn't allow nobody - unexpected setting

Discussion in 'E-mail Discussions' started by ottdev, Mar 6, 2016.

  1. ottdev

    ottdev Well-Known Member

    Joined:
    Oct 1, 2013
    Messages:
    63
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Recently programs stopped sending mail under https:// using the server-wide (shared) SSL domain, while they could still be used under the domain proper without SSL.

    We narrowed it down to the use of sendmail. For those scripts which supported it, changing to use SMTP got them working again. The error using sendmail was:
    sendmail: sendmail cannot be called directly from a shell with the current user id

    Changing the setting: Prevent “nobody” from sending mail made no difference on or off.
    It was “Track email origin via X-Source email headers” which we had recently turned on which caused our issue. Turning it off again got the remaining scripts working again.

    It's not obvious this setting would have that kind of effect. Is it a bug? If not, perhaps having a warning about this potentially unwanted side effect in the WHM beside this setting would be helpful.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,694
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Could you let us know which version of cPanel is installed on your system, and at what point the issue started? Are these accounts assigned a jailed shell environment?

    Thank you.
     
  3. ottdev

    ottdev Well-Known Member

    Joined:
    Oct 1, 2013
    Messages:
    63
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Version 54-build19
    The users have no shell access
    It started several weeks ago when we changed that setting (at the time we were on the previous version). Toggling this setting on and off again reproduces the issue. It causes sendmail to refuse mail from nobody.
    Track email origin via X-source email headers

    So users with formmail contact forms or shopping carts or signups in forums, blogs or other scripts being run under
    https://serverwideSSL.domain.tld/~user/
    stop sending out mail if they call to sendmail because they come from the nobody user

    They continue working not protected by SSL under
    http://clientdomain.tld/
    because then they are sent as the actual user

    The NMS formmail scripts were easy to fix as their configuration already allows for use of SMTP as an alternative.
     
    #3 ottdev, Mar 13, 2016
    Last edited: Mar 13, 2016
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,694
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
  5. urantian

    urantian Well-Known Member

    Joined:
    Jan 26, 2005
    Messages:
    88
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Fayetteville, Arkansas
    cPanel Access Level:
    Root Administrator
    After moving to a new server, I have been experiencing this same issue with the NOBODY user being unable to use SENDMAIL. I, too, have been getting this error message:

    "sendmail cannot be called directly from a shell with the current user id"

    I had already set this property to OFF:

    Prevent “nobody” from sending mail

    I just now discovered this thread! Finally, after setting "Track email origin via X-Source email headers" to OFF, my problem is now solved.

    I am using WHM 60.0 (build 15). Apparently, this apparent "bug" still exists.

    Michael
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,694
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Could anyone else experiencing this issue let us know if the "/scripts/clear_orphaned_virtfs_mounts --clearall" command addresses the problem?

    Thank you.
     
Loading...

Share This Page