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.

Exim Can't Deliver Bounce Messages

Discussion in 'General Discussion' started by mikelegg, Jan 23, 2013.

  1. mikelegg

    mikelegg Well-Known Member

    Joined:
    Mar 29, 2005
    Messages:
    330
    Likes Received:
    0
    Trophy Points:
    16
    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?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  3. mikelegg

    mikelegg Well-Known Member

    Joined:
    Mar 29, 2005
    Messages:
    330
    Likes Received:
    0
    Trophy Points:
    16
    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.
     
    #3 mikelegg, Jan 29, 2013
    Last edited: Jan 29, 2013
  4. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    How can this be?
    0640 == "-rw-r-----"
     
  5. mikelegg

    mikelegg Well-Known Member

    Joined:
    Mar 29, 2005
    Messages:
    330
    Likes Received:
    0
    Trophy Points:
    16
    Sorry, typo on my part, it's ...
    Access: (0640/-rw-r-----) Uid: ( 0/ root) Gid: ( 12/ mail)
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page