Test Email filter error

EneTar

Well-Known Member
Dec 19, 2015
156
12
18
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..
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,216
463
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.
 

EneTar

Well-Known Member
Dec 19, 2015
156
12
18
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?
 

EneTar

Well-Known Member
Dec 19, 2015
156
12
18
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,216
463
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
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.
 

EneTar

Well-Known Member
Dec 19, 2015
156
12
18
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?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,216
463
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.