Block Emails Exim Filter

diracuser

Active Member
Oct 22, 2014
41
1
8
cPanel Access Level
Root Administrator
Hello,
I want to block all the email send by a specific website, because all is spam..
The email is like [email protected]
I make the following filter: Exim Configuration Manager--> Filters:


Code:
if first_delivery
and ("$h_from:" contains "[email protected]")
then
headers add "Old-Subject: $h_subject:"
headers remove "Subject"
headers add "Subject: SpamRule: EXIM FILTER userInCpane Block Unwanted Domains (was: $h_old-subject:)"
headers remove "Old-Subject"
deliver "[email protected]"
endif
But it's not working ... Emails already are sended ...

How can I check the custom filters are working correcty ??

Thank you
 
Last edited by a moderator:

keat63

Well-Known Member
Nov 20, 2014
1,958
266
113
cPanel Access Level
Root Administrator
How many emails is the domain sending?

Maybe until you find an answer to your rule, you could slow him down.

Change 'Maximum Hourly Email by Domain Relayed' in Modify Account