Email filter logging (account and user level filtering logs)

movielad

Well-Known Member
May 14, 2003
109
2
168
cPanel Access Level
Root Administrator
Twitter
Hello,

I was wondering if it's possible to add a logging feature to the Exim filters within the Advanced Exim Configuration Editor to help diagnose filters as and when required (probably a feature request - but if there is a workaround in the mean time, I'd sure like to hear it!).

The AEC doesn't allow me to directly alter the filters.

Code:
logwrite "$tod_log $message_id processed"
logfile $home/filter.log
The alternative would be to add them directly to the Exim file itself, but obviously that's liable to get overridden during updates, etc.

Regards,

Martyn
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
Hello :)

Have you tried adding that entry to the filter file itself? The global filter file is located at:

Code:
/etc/cpanel_exim_system_filter
However, you can copy this to a new file and configure Exim to use the custom filter file via the following option under the "Filters" tab in "WHM Home » Service Configuration » Exim Configuration Manager":

"System Filter File"

Thank you.