Acl rule to block domains .TLD extension ??

bsasninja

Well-Known Member
Sep 2, 2004
527
0
166
I´m receiving lot of spam from .pl domains. I´ve blocked poland ip blocks from my server anyways Im receiving lot of .pl emails from other Ip.

So I want to block al domains containing .pl extension in the domain with a Exim ACL rule. I dont have customers on that country so it doesnt matters.

Should be like this?

deny message = .pl domains are no longer accepted in this server.
senders = *@*.pl

I would like that someone correct me if Im wrong.

Thanks
 

jameshsi

Well-Known Member
Oct 22, 2001
347
0
316
I tested and works fine :)
Can you tell me where did u put these lines to ? and how did u know that it is works find ?

I copy these 2 lines to my Exim Configuration Editor on the top of ACL config and save, and then I type :
tail -f /var/log/exim_mainlog |grep 'domain are no longer'

no result, means it didn't work. Why ?