How to block all email from particular TLD easily?

ccto

Verified User
Joined
Feb 24, 2005
Messages
142
Location
Hong Kong
Hello everyone,

It seems the cost of .xyz domain registration is very low (US$1 or even lower), some users are suffering from .xyz domain spam emails.

If I have no friends from .xyz ,
Q1) how can I easily block this TLD on individual domain level ?
Q2) how can I easily block this TLD on server level ?

Thank you very much for your advice.

Regards
George
 

Richard G

Verified User
Joined
Jul 6, 2008
Messages
5,254
Location
Maastricht
If you want to block it at helo time, you might have a look at
/etc/virtual/blacklist_domains and /etc/virtual/bad_sender_hosts
there is a difference between the two, just don't remember it.

I've got in both like this:
Code:
*.xyz
and don't receive .xyz mail anymore.

Don't forget to reload or restart Exim afterwards.

However this might not prevent spoofing with those addresses. Be sure to also use the latest spamblocker exim.conf file, Easy Spam Fighter and Blockcracking next to Spamassassin.
 
Top