[faq] How do I blacklist an email address domain?

Using regular expressions it is possible to blacklist all emails from a specific domain. In the examples below, the domain we want to block is spammerdomain.com. Follow the steps below to add a blacklist filter:

The regular expression ^\S+@spammerdomain\.com$ can be broken down as follows:

If you want to filter a domain and any possible subdomains (for example: user@spammerdomain.com, user@sub1.spammerdomain.com, user@sub2.spammerdomain.com, etc) you can use the following: ^\S+@(?:\S+\.)*domain\.com$

Date: July 29th 2004

buy mxORB online  try mxORB for 30 days