View Full Version : PHP Email trouble after updates
I recently updated Apache and Cpanel through WHM. I did this because of security holes in the versions I was running.
After the upgrade everything seemed ok accept some of my PHP scripts can no longer send email.
I recieve an error message like:
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
test@cox.net
unrouteable mail domain "cox.net"
other major domains are blocked too. Microsoft, msn, yahoo etc..
Any Idea what the upgrade may have changed that would cause this problem?
It seems the user "nobody" was not allowed to send email. I changed this and it started working.
Should I be using phpsuexec?
Well, i wouldn't suggest you use phpsuexec. It'll cause more problems. There was also a big security exploit in it a few weeks ago. It isn't developed by cPanel, rather someone at www.localhost.nl
If you want to have PHP secure, either run it in Safe-mode, or disable certain functions.
Regards
Originally posted by talon
I recently updated Apache and Cpanel through WHM. I did this because of security holes in the versions I was running.
After the upgrade everything seemed ok accept some of my PHP scripts can no longer send email.
I recieve an error message like:
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
test@cox.net
unrouteable mail domain "cox.net"
other major domains are blocked too. Microsoft, msn, yahoo etc..
Any Idea what the upgrade may have changed that would cause this problem?
Same mail domain errors started happening to me yesterday after upgrading cPanel (9.9.1-STABLE 50) and apache. Went through all the usual drills, including:
* checking resolv.conf
* checking "The maximum each domain can send out per hour"
* running exim -bt -d *@somedomain.com
* disabling "Prevent the user 'nobody' from sending out mail to remote addresses"
* disabling "Track the origin of messages sent though the mail server by adding the X-Source headers (exim 4.34+ required)"
* disabling "Include a list of Pop before SMTP senders in the X-PopBeforeSMTP header when relaying mail. (exim 4.34-30+ required)"
* running rm -f /etc/eximmailtrap
But none of that worked. Finally I wised up and looked at /var/log/exim_paniclog... It revealed
"failed to expand condition "{perl{checkspam}}" for lookuphost router: you are not permitted to relay mail at /etc/exim.pl line 490."
Disabled spamassassin under WHM's Tweak Settings and Service Manager, and restarted exim... The failed delivery notices mostly stopped--except for one domain that I know has a DNS problem and my personal email address (different domain). For my own email, I'm now getting:
SMTP error from remote mailer after RCPT TO:<me@somehost.net>:
host somehost.net.mail1.psmtp.com [64.18.xx.xx]:
550 you are not allowed to send mail to <me@somehost.net>
But I can live with that for now.
In case anybody else gets hit with this... :(
www.suphp.org is probably a better alternative.
vBulletin® v3.8.2, Copyright ©2000-2010, Jelsoft Enterprises Ltd.