View Single Post
Old 14 Jun 2020, 07:06 AM   #6
BritTim
The "e" in e-mail
 
Join Date: May 2003
Location: mostly in Thailand
Posts: 3,095
Quote:
Originally Posted by hadaso View Post
If you use subdomains of your own domain, and you want to block a whole subdomain, then there are two other option that work in such a way that not only mail to that subdomain doesn't reach your Trash or any other folder, it doesn't even get to the Sieve script. It's just not accepted.


Method one: for subdomain.mydomain.tld make the alias subdomain@mydomain.tld and disable this alias. This would block all mail to that alias including al subdomain addresses for that alias.


Method 2: In the DNS make fake mx records for the subdomain (that route all the mail for the subdomain to a "black hole".


One additional advantage is that legitimate senders that might try to contact you through the disabled addresses would get an erroer message that mail was not sent' so they would try to contact you using some other method.
I believe another similar (but easier) solution is to forward emails sent to the subdomain to an email address at the contoso.com domain (a Microsoft testing domain) such as DiscardThis@contoso.com.
BritTim is offline   Reply With Quote