Set Spam filter to block emails from subdomains

MacWeb

Verified User
Joined
Aug 22, 2012
Messages
24
Hi,

I need to block emails from sender email in a subdomain.

I already try to add *.domain.com on Block mail from an entire domain: but I get an error.

Will subdomains be blocked if we just add domain.com ?

Thanks in advance
 
Hi Alex,

I need to block all emails that come from any subdomain of that domain.

When I try to add email filter in "Block mail from an entire domain:" DA return me this error:

Details:
Invalid domain

Thanks in advance,

Anthony
 
OK, and where exactly do you add it?

How is the domain written there? Is it an internationalized domain or not?

Make sure, you've got no white spaces or tabs after and before.
 
Sorry Alex

Where:
In DA>Email management>Spam Filters "Block mail from an entire domain:"

in "Block mail from an entire domain:" i fill with *.domain_name.com

I fill the real domain name and I get domain is invalid.

Thanks in advance
 
If you have admin access to the server, then blocking is better done in SpamBlocker; then the server doesn't waste time processing emails at all; it just refuses to accept the email based on the subdomain name.

But the way it's written you need to block each subdomain separately.

Jeff
 
Thank for all your help

Just one more question, adding just domain.com in DA will block the domain emails and also subdomain emails ?

I will also try *.domain.com in /etc/virtual/blacklist_domains

Thanks in advance

Anthony
 
Yes, for any mention of domain.com in from, as it adds this line into filter:

Code:
or $header_from: contains "domain.com"
 
Thanks for all your help

Now I understand how that filter works.

I didn´t find any guide explaining DA panel in detail.

I am happy to find helpful people in this forum.

Thanks a lot

Anthony
 
Sorry but this doesn't look correct to me.

@MacWeb: are you referring to the Mail Filter in DirectAdmin control panel, or are you referring to the /etc/virtual/blacklist_domains file?

If the latter, it has nothing to do with filters. I'm not sure if it works the same way or not (and I wrote it); you should test it.

Jeff
 
Sorry, my mistake. Jeff is right, my answer in POST #10 refers to the Mail Filter in DirectAdmin control panel only.
 
Back
Top