Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 12 of 12
  1. #1
    Member
    Join Date
    Mar 2005
    Posts
    317

    Default Correct Permissions for /etc/localdomains ?

    The exim panic log on one of my servers contains hundreds of these entries ...

    2011-02-03 11:31:56 1Pko3A-00031m-9Z 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)

    The only way to prevent this is to change the permissions on /etc/localdomains to 644.

    But cPanel keeps changing it back to 640 which I believe is all it should really require, but this causes the problem to re-occur.

    The permissions are currently ... -rw-r--r-- 1 root mail 8476 Feb 2 22:26 localdomains

    But soon it will revert to -rw-r----- 1 root mail 8476 Feb 2 22:26 localdomains

    This causes the queue to fill with undeliverable mail.

    Has anyone else ever encountered this before?
    Last edited by mikelegg; 02-02-2011 at 07:48 PM. Reason: typo

  2. #2
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Correct Permissions for /etc/localdomains ?

    Hello,

    Do you have any idea what email is triggering the error? You might try running /scripts/eximup --force to see if that corrects the issue, but it's likely some email is invalidly triggering the message. You should be able to check the message ID (1Pko3A-00031m-9Z in the provided example) to see what is happening with that email:

    Code:
    exigrep 1Pko3A-00031m-9Z /var/log/exim_mainlog
    Thanks.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  3. #3
    Member
    Join Date
    Mar 2005
    Posts
    317

    Default Re: Correct Permissions for /etc/localdomains ?

    Hi Tristan

    Every entry in the log has a different message ID, it's not just related to a single message.

  4. #4
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Correct Permissions for /etc/localdomains ?

    Hello,

    I didn't believe it was related to a single message, but to a set type of message. Have you reviewed the logs as indicated to see if the same type of scenario is causing this such as sending to a non-existent address causing a bounce back to the main hostname account on the server (for a failure of some sort). The idea is that it is being triggered by a set situation, which can only be determined by checking exim_mainlog for a few message IDs to see what is happening with those messages.

    Thanks.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  5. #5
    Member
    Join Date
    Mar 2005
    Posts
    317

    Default Re: Correct Permissions for /etc/localdomains ?

    Sorry, I see what you mean now.

    I'll check it out.

  6. #6
    Member
    Join Date
    Mar 2005
    Posts
    317

    Default Re: Correct Permissions for /etc/localdomains ?

    I checked 4 messages from different dates/times and they were all bounce messages, from remote servers to local addresses.

    2011-02-03 11:31:56 1Pko3A-00031m-9Z <= <> R=1Pko38-00031C-4j U=mailnull P=local S=2415 T="Mail delivery failed: returning message to sender" for xxx@yyy.net

    2011-02-03 11:31:02 1Pko2I-0002ve-RE <= <> R=1Pko2G-0002ut-3s U=mailnull P=local S=2234 T="Mail delivery failed: returning message to sender" for xxx@yyy.net.au

    2011-02-02 11:56:57 1PkRxp-0000lp-ME <= <> H=titan.sslserver.net.au [118.127.52.72] P=esmtps X=TLSv1:AES256-SHA:256 S=6279 id=t1e8cRSZN000353c8@bay0-mc4-f24.Bay0.hotmail.com T="Delivery Status Notification (Failure)" for xxx@xxx.com

    2011-02-03 08:33:07 1PklG7-0000hx-Qq <= <> H=mx02.appspoint.com.au (mx01.appspoint.com.au) [118.102.106.36] P=esmtps X=TLSv1:RC4-MD5:128 S=8407 id=ebd1603e-7967-4d68-a8db-0e2e939c12f4 T="Undeliverable: Vacancy - apply online" for xxx@yyy.com.au

    So it looks like it is related to a single type of message.

    I think I know the cause of the problem now, I recently asked my sys admins to see what we could do about backscatter on that server and the changes they made may have affected inbound bounce messages as well as outgoing bounce messages.

    I'll get them to reverse the changes made and see if that helps.

    Thanks Tristan.

  7. #7
    Member
    Join Date
    Mar 2005
    Posts
    317

    Default Re: Correct Permissions for /etc/localdomains ?

    The sys admins say that the recent change wouldn't have caused this problem.

    So we're going to try /scripts/eximup --force
    Last edited by mikelegg; 02-03-2011 at 12:58 AM.

  8. #8
    Member
    Join Date
    Mar 2005
    Posts
    317

    Default Re: Correct Permissions for /etc/localdomains ?

    /scripts/eximup --force hasn't fixed the problem.

    The other thing that has changed recently is we started using "Send outgoing mail from the IP that matches the domain name in /etc/mailips" so perhaps this is the cause of the problem.

    I think I'll lodge a support ticket.

  9. #9
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Correct Permissions for /etc/localdomains ?

    Once you've opened the support ticket, please post the ticket number here if you are willing to do that. I think a support ticket would be helpful so we can log into the system to review the settings.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  10. #10
    Member
    Join Date
    Mar 2005
    Posts
    317

    Default Re: Correct Permissions for /etc/localdomains ?

    Hi Tristan

    I lodged the ticket and Matt got me to reset the exim configuration to default (Main >> Service Configuration >> Exim Configuration Editor > Advanced > Reset all configs to default.)

    This fixed the problem.

  11. #11
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Correct Permissions for /etc/localdomains ?

    Did this change end up unselecting "Send outgoing mail from the IP that matches the domain name in /etc/mailips" as an option? I'm just curious.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  12. #12
    Member
    Join Date
    Mar 2005
    Posts
    317

    Default Re: Correct Permissions for /etc/localdomains ?

    Quote Originally Posted by cPanelTristan View Post
    Did this change end up unselecting "Send outgoing mail from the IP that matches the domain name in /etc/mailips" as an option? I'm just curious.
    Interestingly, it didn't!

    So I'm not sure what exactly got set to default.

Similar Threads & Tags
Similar threads

  1. correct permissions of .rnd
    By rs-freddo in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 06-25-2009, 05:53 AM
  2. Replies: 0
    Last Post: 10-11-2008, 11:33 AM
  3. RHEL3 + Exim: correct permissions for /mail directoy?
    By benlancaster in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-06-2005, 10:46 AM
  4. making sure php has correct permissions
    By EMS in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-30-2003, 01:50 PM
  5. Domain Parking does not correct permissions
    By bert in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 04-23-2002, 04:56 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube