scripts not sending mail after update?

lbeachmike

Well-Known Member
Dec 27, 2001
306
1
316
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
 

designeru

Well-Known Member
Nov 2, 2005
83
0
156
Are you sure ?

Are you sure it's sendmail and not exim ?

If it's exim... try:
# tail -f /var/log/exim_mainlog | grep [email protected]
- send an email from/to your server from a [email protected] 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...
 

lbeachmike

Well-Known Member
Dec 27, 2001
306
1
316
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
 

levelsupport

Well-Known Member
Oct 7, 2006
47
0
156
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
 

kernow

Well-Known Member
Jul 23, 2004
995
42
178
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.