Exim Blacklist -> *domain doesn't work
I have a manual filter in the exim. It was done this way:
In section: "CONFIG". I put:
domainlist exim_blacklist lsearch;/etc/eximblacklist
In Section: "PREROUTERS". I put:
driver = redirect
# RBL Blacklist incoming hosts
domains = +exim_blacklist
allow_fail
data = :fail: Connection rejected: SPAM source $domain is manually blacklisted.
So I put a host in each line of the file /etc/eximblacklist. Works perfectly, the emails are blocked.
But sometimes i need to use a "wildcard". For example, I like to block all senders of the .tk domains.
I thought I'd use: * .tk
But it does not work, how do I use the "wildcard"?
-
You can try to create your custom filter in your /usr/local/cpanel/etc/exim/sysfilter/options/ directory and try to enable it through WHM->Exim Configuration Manager->Basic Editor->Filters Create /usr/local/cpanel/etc/exim/sysfilter/options/inbound_tld_block file and add following code if first_delivery and ("$h_to:, $h_cc:" contains ".tld") or ("$h_from:" contains ".tld") then seen finish endif
To disable the filter, you can set it to "Off" in the WHM->Exim Configuration Manager->Basic Editor->Filters : "** Custom Filter: inbound_tld_block"0 -
You can try to create your custom filter in your /usr/local/cpanel/etc/exim/sysfilter/options/ directory and try to enable it through WHM->Exim Configuration Manager->Basic Editor->Filters Create /usr/local/cpanel/etc/exim/sysfilter/options/inbound_tld_block file and add following code
if first_delivery and ("$h_to:, $h_cc:" contains ".tld") or ("$h_from:" contains ".tld") then seen finish endif
To disable the filter, you can set it to "Off" in the WHM->Exim Configuration Manager->Basic Editor->Filters : "** Custom Filter: inbound_tld_block"
Worked fine! Tks so much!0 -
I am happy to see the issue is now resolved. Thank you for updating. 0 -
Hello :) Thank you for taking the time to let us know it worked. I'm marking this thread as resolved. 0
Please sign in to leave a comment.
Comments
4 comments