Hi,
I'm trying to create a custom exim filter that will reject outgoing emails with specific text in the subject line.
I've created a new filter /usr/local/cpanel/etc/exim/sysfilter/options/server_custom_filter
And restart exim, but it's not blocking the outound emails.
Do I need to rebuild /etc/cpanel_exim_system_filter, If so how? I don't see any refrence to my new rule in there .
Here's the settings in WHM.

Thanks
I'm trying to create a custom exim filter that will reject outgoing emails with specific text in the subject line.
I've created a new filter /usr/local/cpanel/etc/exim/sysfilter/options/server_custom_filter
Code:
if ("$h_subject:" contains "Custom Text")
then
fail text "Email subject blocked by keyword"
seen finish
endif
Do I need to rebuild /etc/cpanel_exim_system_filter, If so how? I don't see any refrence to my new rule in there .
Here's the settings in WHM.

Thanks
Last edited: