I created a custom filter in /usr/local/cpanel/etc/exim/sysfilter/options/ to block .date TLD's, but can't get it to work.
spam emails from .date TLD's are still getting through.
Any ideas where I'm going wrong, could it be related to these tld's having a hyphen in the email address ?
eg: frapp-go.date, waltz-or.date, belch-in.date etc etc.
In the short term, i've given .data a huge spam score, but i'd rather these get dropped by exim.
Code:
if first_delivery
and ("$h_to:, $h_cc:" contains ".date")
or ("$h_from:" contains ".date")
then
seen finish
endif
Now go into WHM -> Exim Configuration Manager -> Basic Editor -> Filters, and you should see the new filter listed:
** Custom Filter: inbound_tld_block
If it’s not already enabled, enable it here and then save.
Any ideas where I'm going wrong, could it be related to these tld's having a hyphen in the email address ?
eg: frapp-go.date, waltz-or.date, belch-in.date etc etc.
In the short term, i've given .data a huge spam score, but i'd rather these get dropped by exim.