Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

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.

Test Email filter error

Discussion in 'E-mail Discussions' started by EneTar, Sep 14, 2017.

Tags:
  1. EneTar

    EneTar Well-Known Member

    Joined:
    Dec 19, 2015
    Messages:
    70
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    I think that since I updated in 66 version I can't test any email filter from cPanel. I get an error like this

    Code:
    Error: The “/usr/sbin/sendmail” command (process 20084) reported error number 1 when it ended.
    What is the correct way to debug this, where should I start searching? Google wasn't impressed with my queries..
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,127
    Likes Received:
    1,366
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I'm currently unable to reproduce this issue on a test system running cPanel version 66. It's possible this stems from an invalid filter rule configured for the affected account. Could you open a support ticket so we can take a closer look?

    Thank you.
     
  3. EneTar

    EneTar Well-Known Member

    Joined:
    Dec 19, 2015
    Messages:
    70
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    Thank you Michael for your reply I would prefer to try first and debug this before opening a ticket. Opening the
    Code:
    /usr/local/cpanel/logs/error_log
    I noticed at the same time of the error this:
    Code:
    failed to expand "${lookup{$interface_address}lsearch{/etc/mail_reverse_dns}{$value}{$primary_hostname}}" (smtp_active_hostname): failed to open /etc/mail_reverse_dns for linear search: Permission denied
    The permissions of /etc/mail_reverse_dns are set to 640 (root/mail == user/group)

    Does it seem like a system permissions issue?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,127
    Likes Received:
    1,366
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    On a test system, the permissions on this file are set to 0644 and the ownership is "root:root".

    Thank you.
     
    EneTar likes this.
  5. EneTar

    EneTar Well-Known Member

    Joined:
    Dec 19, 2015
    Messages:
    70
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    Changing only the permissions to 0644 resolved this issue. I've left the user group as it is (Should I change it?) I'm wondering what caused this in the first place and set it to 0640. I'm on CENTOS 6.9 kvm, WHM v66.0.19
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,127
    Likes Received:
    1,366
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    We stopped supporting the use of the /etc/mail_reverse_dns file as of cPanel version 50:

    11.50 Release Notes - 11.50 Documentation - cPanel Documentation

    Do you have a custom entry in your Exim configuration that makes use of the file?

    Thank you.
     
  7. EneTar

    EneTar Well-Known Member

    Joined:
    Dec 19, 2015
    Messages:
    70
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    The only instance of this is at smtp_active_hostname which is set to
    Code:
    ${lookup{$interface_address}lsearch{/etc/mail_reverse_dns}{$value}{$primary_hostname}}
    How should this line be?
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,127
    Likes Received:
    1,366
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    That value is left unset by default. I believe you'd need to continue using that file should you want to keep that custom entry. Otherwise, you can reset Exim to the default configuration using the "Reset" tab in "WHM >> Exim Configuration Manager".

    Thank you.
     
Loading...

Share This Page