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.

scripts not sending mail after update?

Discussion in 'E-mail Discussions' started by lbeachmike, Oct 7, 2006.

  1. lbeachmike

    lbeachmike Well-Known Member

    Joined:
    Dec 27, 2001
    Messages:
    313
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Long Beach, NY
    cPanel Access Level:
    Root Administrator
    Hi -

    It seems that sendmail is not sending mail from scripts after upgrading from 10.8.2 release to 10.9.0 Current-12 (and beyond.)

    phpbb mail is no longer getting sent, and I'm no longer receiving nightly Fantastico notifications.

    The path to sendmail appears correct in my php.ini.

    I'm not sure how to troubleshoot this issue.

    Any advice would be appreciated.

    Thanks.

    Mike
     
  2. designeru

    designeru Well-Known Member

    Joined:
    Nov 2, 2005
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
    Are you sure ?

    Are you sure it's sendmail and not exim ?

    If it's exim... try:
    # tail -f /var/log/exim_mainlog | grep tester@domain.com
    - send an email from/to your server from a tester@domain.com account

    to see what errors you receive when you send/receive emails. If those errors doesn't help you, maybe you can post them here...
     
  3. lbeachmike

    lbeachmike Well-Known Member

    Joined:
    Dec 27, 2001
    Messages:
    313
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Long Beach, NY
    cPanel Access Level:
    Root Administrator
    Thanks for the info. To be clear - normal email to and from the server works properly.

    The only email that does not work are those that are being sent out by scripts such as phpbb, the fantastico update script and the like. That's it. As such, it wasn't immediately apparent that there even was an issue until I realized I was no longer receiving new user notifications from my phpbb forum as well as nightly fantastico email updates.

    I was under the impression that php uses sendmail to send those emails, but I don't have a full understanding.

    Does that clarify anything?

    Do you still recommend the proposed test?

    Thanks.

    Mike
     
  4. levelsupport

    levelsupport Well-Known Member

    Joined:
    Oct 7, 2006
    Messages:
    47
    Likes Received:
    0
    Trophy Points:
    6
    goto WHM --> Tweak Settings and make sure you have not ticked the following option

    Prevent the user "nobody" from sending out mail to remote addresses (PHP and CGI scripts generally run as nobody if you are not using PHPSuexec and Suexec respectively.)

    If it is ticked, untick and save.

    Also as said
    open your shell
    type
    tail -f /var/log/exim_mainlog

    and keeping it open try sending a mail from your phpbb forum or any script, right after the mail is sent check your shell window. it should show you any error or mail conversation. If any errors it will be thrown in that shell window
     
  5. kernow

    kernow Well-Known Member

    Joined:
    Jul 23, 2004
    Messages:
    865
    Likes Received:
    9
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Just a thought ...........
    We had a simular problem after upgrading cpanel, most email to root got delivered but some cron jobs like /scripts/upcp failed to email root. The answer for us was to reinstall MailScanner which was causing the problem.
     
Loading...

Share This Page