Email stopped working after update

david26uk

Member
Apr 24, 2014
18
1
3
cPanel Access Level
Root Administrator
Hi There,

I received a "kernel version is out of date" notification from WHM and also that 3 services (mailman, pop and rsyslogd) were unmonitored. So, I updated the kernel and enabled monitoring for these services.

A few days ago I rebooted the server and it wouldn't start. Had to get hosting company to try and it worked.

Forward to today, I noticed PHP Mail isn't working (I don't know if it's related to the above), I haven't changed anything else on the server.

message from logs:
rejected by non-SMTP ACL: failed to expand ACL string "${if eq{$originator_uid}{${perl{user2uid}{nobody}}}{1}{0}}": Undefined subroutine &main::use$n::user2uid called.
I've tried:
/scripts/eximup --force
/scripts/upcp --force
/scripts/buildeximconf
"SpamAssassin™ reject spam score threshold" is set to "No reject rule by spam score"

PHP mail function exists but always returns false.

Any help would be very much appreciated,
Thank you
 

rpvw

Well-Known Member
Jul 18, 2013
1,101
465
113
UK
cPanel Access Level
Root Administrator
Look in your /etc folder for the file exim.pl
If you see the file permissions are 000 you have fallen foul of a bug that everyone seems to be blaming each-other for :(

Reset the file permissions for exim.pl to 0644 and restart exim
 
  • Like
Reactions: John W

Oscar Serrano

Registered
May 26, 2016
3
0
1
Colombia
cPanel Access Level
Root Administrator
Dear @rpvw just want to say THANK YOU VERY MUCH... This problem was driving me crazy and not even Bluehost senior tec support, could give me any solution...


Once again thanks for sharing, regards from Colombia.
 
Last edited by a moderator:

rpvw

Well-Known Member
Jul 18, 2013
1,101
465
113
UK
cPanel Access Level
Root Administrator
You are all very welcome, but the real thanks should go to Ryan Berding, Tech Analyst at cPanel support who helped me with this very same problem, and gave me the answer to pass along !
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,219
463
Hello,

Internal case CPANEL-6352 addresses an issue where /etc/exim.pl keeps permissions at 0000 when the Exim RPM is updated from exim-4.87-1 to exim-4.87-5 during updates from cPanel 56.0.21 to 56.0.22. The following autofixer is available to address this issue on affected systems:

Code:
/usr/local/cpanel/scripts/autorepair fix-exim-permissions
Thank you.