I am using the cpanel_exim_system_filter_custom file to filter out hundreds of spams a day and it works great.
I am having trouble with the syntax of this rule and wonder if anyone knows how to fix it? I want to filter out all emails from Vxxx except the ones to certain email addresses.
It is not working
It did work until i added the second email address. I probably have the brackets in the wrong place but i have tried variations without success.
Thanks
I am having trouble with the syntax of this rule and wonder if anyone knows how to fix it? I want to filter out all emails from Vxxx except the ones to certain email addresses.
It is not working
It did work until i added the second email address. I probably have the brackets in the wrong place but i have tried variations without success.
Code:
#Vxxx from
if
$h_from: contains "Vxxx"
and
($h_to: does not contain "[email protected]"
or
$h_to: does not contain "[email protected]")
then
headers add "SpamRule: EXIM FILTER Vxxx (was: $h_subject:)"
deliver "Global Spam <[email protected]>"
seen finish
endif