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.

mail() sendmail problem

Discussion in 'E-mail Discussions' started by J.O.E., Aug 24, 2013.

  1. J.O.E.

    J.O.E. Registered

    Joined:
    Feb 19, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    A recent cpanel update made a change to the actual cron files on my customer's server. For each user they do what is called a jailshell for the crons. The jailshell is used to confine a user to their own little bit of space on the server, a security measure, making each hosting account more self contained like a VPS would be on a dedicated server.

    Well, apparently this will break the php mail() program, specifically the use of the server sendmail. The jail shell copies certain server files to a special user folder and is used by the user's crons.

    Apparently, when a cron runs then, if doesn't work for some cPanel accounts while others it does, so it must not copy correctly or something is corrupt.

    If there is a solution to this problem I would LOVE to hear about it.
     
  2. ThinIce

    ThinIce Well-Known Member

    Joined:
    Apr 27, 2006
    Messages:
    346
    Likes Received:
    7
    Trophy Points:
    18
    Location:
    Disillusioned in England
    cPanel Access Level:
    Root Administrator
    If you're having problems with the new jailed cron system and can reproduce these, it's probably a good idea to submit a ticket, please then post the number here so the thread can be updated with anything that gets found
     
  3. ckh

    ckh Well-Known Member

    Joined:
    Dec 6, 2003
    Messages:
    356
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Phoenix, AZ
    cPanel Access Level:
    DataCenter Provider
    I can verify this. I spent about 3 days trying to figure out why programs that normally would send email via the cron suddenly stopped.

    What made it even more confusing is that some of the cPanel accounts running the exact same script and exact same crons weren't having the problem.

    It would seem that the shell isn't enabled on all the crons during the update, perhaps if a cron is added or edited.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    Could you confirm if "Track email origin via X-Source email headers" is enabled under the "Mail" tab in "WHM Home » Server Configuration » Tweak Settings"? There is an open case that sounds similar to what you have described, but has not yet been reliably reproduced. For reference, the case number is 75657. I suggest opening a support ticket so we can take a closer look:

    Submit A Ticket

    Please post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
  5. ckh

    ckh Well-Known Member

    Joined:
    Dec 6, 2003
    Messages:
    356
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Phoenix, AZ
    cPanel Access Level:
    DataCenter Provider
    I checked 3 servers where I've been having the problem, two of them that option is turned off, one it is turned on.

    In all cases on all servers for all php scripts that send email using crons, remarking or removing the jailshell line from the top of the cron for that user, fixes the problem immediately.

    - - - Updated - - -

    Ticket had already been submitted and they are investigating: 4329567
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    To update, we were unable to reliability reproduce this issue. If anyone else experiences the same issue, please open a support ticket and post the ticket number here so we can investigate further. Note that the use of jailshell for operations such as cron and email is by design.

    Thank you.
     
Loading...

Share This Page