Exim Can't Deliver Bounce Messages

mikelegg

Well-Known Member
Mar 29, 2005
330
3
166
Every so often bounce messages just pile up in the Exim queue and won't deliver to users mailboxes. If I try to force a delivery I get the error -

Code:
LOG: MAIN
  cwd=/usr/local/cpanel/whostmgr/docroot 6 args: exim -C /etc/exim_outgoing.conf -v -M 1TwviR-001vWf-VB
delivering 1TwviR-001vWf-VB
LOG: MAIN PANIC
  Error in system filter: failed to expand "${lookup{${extract{2}{@}{$recipients}}}lsearch{/etc/localdomains}{yes}{no}}" in filter file: failed to open /etc/localdomains for linear search: Permission denied (euid=510 egid=512)
I've been wrestling for nearly 2 years with this problem (See http://forums.cpanel.net/f5/correct-permissions-etc-localdomains-189321.html) but it just won't go away.

The work around that I used formerly (reset Exim config back to default) is a bit more daunting with all of the reset options in the latest version of cPanel.

There has to be a way to stop it happening but everyone I know is stumped.

Has anyone else encountered this problem?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello :)

What are the permissions/ownership values on the /etc/localdomains file when this issue occurs? You can check this with a command such as:

Code:
# stat /etc/localdomains
Do you have any third-party applications installed that could be modifying the permissions/ownership values on this file?

Thank you.
 

mikelegg

Well-Known Member
Mar 29, 2005
330
3
166
The permissions are
Access: (0640/-rw-r--r--) Uid: ( 0/ root) Gid: ( 12/ mail)

That's what all of our other cPanel servers use without any problems. But on this particular server I have to manually change it to 644 in order for the queued bounce messages to deliver.

cPanel changes it back to 640 every night (which is correct) so for now I'm running a cron that sets the permissions to 644 after upcp runs each night.

The problem isn't that the permissions are wrong, it's that I have to make them "wrong" in order for exim to deliver bounce messages.
 
Last edited:

mikelegg

Well-Known Member
Mar 29, 2005
330
3
166
Sorry, typo on my part, it's ...
Access: (0640/-rw-r-----) Uid: ( 0/ root) Gid: ( 12/ mail)
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello :)

Please open a support ticket so we can take a closer look:

Submit A Ticket

You can post the ticket number here so we can track the issue for you.

Thank you.