Block a tld unless from specific domains?
Hi,
I know this is an Exim issue and not cPanel
I'm using to block Spam from certain tld's but was looking for advice on how I can block all emails from a tld unless it was from specific domains.
For example I want to block emails from .info as these domains send a huge amount of spam but squarespace and screwfix both use .info so I would like to allow them.
I currently have the following in /etc/antivirus.empty
if first_delivery
and (
("$h_from:" matches ".+@.+\\\\.date[^.a-zA-Z0-9_]")
or ("$h_from:" matches ".+@.+\\\\.info[^.a-zA-Z0-9_]")
)
then
headers add "Subject: [EXIM TLD FILTER] (was: $h_subject:)"
deliver "EXIM TLD FILTER "
seen finish
endif
Can someone help with the syntax required to allow squarespace.info and screwfix.info? I'm struggling and don't want to mess up email flow on the server any more.
Thanks.
Please sign in to leave a comment.
Comments
0 comments