Error in system filter: failed to open filter log file “/var/log/filter.log”
I was facing the following mentioned error for emails on the server and the emails were discarded with following message.
Error in system filter: failed to open filter log file “/var/log/filter.log”: Permission denied (euid=506 egid=559)
The Above mentioned error is basically due to improper ownership assigned to the file “/var/log/filter.log” .
To sort the error you can do the following:
1) Check the ownership assigned for the file
[root@server ~]# ls -l /var/log/filter.log
-rw-r–r– 1 root root 1004191 Feb 1 07:23 /var/log/filter.log
2) The ownership of this file must be cpaneleximfilter instead of root.
3) change the ownership of the file as follows:
[root@server ~]# chown cpaneleximfilter.cpaneleximfilter /var/log/filter.log
4)Now just restart the exim service on the server. This should sort your issue.