Comments on How to Block Email from certain TLDs (Top Level Domains) in ISPConfig

Spam is an annoyance and there's a multitude of ways to counteract it. However spammers also get smarter and try to bypass filters and stuff. In addition, ICANN has lately approved a great mean gTLDs (generic Top Level Domains), like .biz, .info etc. Some of those gTLDs are, in my opinion, exclusive used by spammers. Lately, I have gotten a lot of spam from the .xyz gTLD. So the question was, how to block email coming from such domains using that gTLD.

5 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Holger

Danke für die Anregung. Bei mir hat folgendes sehr gut funktioniert. Thanks for the suggestion. For me this has worked very well. "BOUNCE_PREFIX"

By: Piotr

Is it possible in the ISPConfig blocking outgoing mail to TLDs domain? In order to block spam for example.

By: MaxT

it should be:

/<.+?@+?spamdomain\.xyz>/

it filters  both  "[email protected]" and "[email protected]",

 

on the contrary, any spammer subdomain would bypass the filter.

 

By: M.Meintjes

@MaxT Not sure how old this thread is but it should actually be something like this:

/@.*\.xyz$/

this will filter out only email addresses and not text located in the subject that could possable be a false positive.

Here's an example --> https://regex101.com/r/2a7vCF/1

By: Ryan M

Surely in order to block subdomains of a domain, along with the domain itself, shouldn't the regex contain an OR condition like so...

<.+?(@|@.*\.)spamdomain\.com>

this should block the following;

[email protected] & [email protected]

But shouldn't block something like [email protected] which is obviously a completely different domain name