Block domains

User Help for Mozilla Thunderbird
Post Reply
John K Marshall
Posts: 2
Joined: January 19th, 2022, 3:25 pm

Block domains

Post by John K Marshall »

Thunderbird badly needs a simple way to block a domain. I have a domain (not just a sender) that sends me several ads a day (and they are for the same supposed products). This is driving me nuts! Do I need to stop using Thunderbird for Linux and go to Evolution or another email program to get real, simple domain blocking? Thanks...
User avatar
tanstaafl
Moderator
Posts: 49647
Joined: July 30th, 2003, 5:06 pm

Re: Block domains

Post by tanstaafl »

You could use a message filter to test if the sender's email address includes that domain. If the sender's domain was spammer.com you could use:

"Sender" "contains" "@spammer.com"

"Move Message To:" "Junk"


You want to use "contains" rather than an exact match such as "is". You could configure the rule to delete the message but its safer to move it to a folder like junk in case you make a mistake.

http://kb.mozillazine.org/Message_Filters
https://support.mozilla.org/en-US/kb/or ... ng-filters

The FiltaQuilla add-on lets you add more powerful string comparisons such as regular expressions. However, you want to be careful not to re-invent the wheel. While messages filters can be used to test for spam there are nowhere as powerful as something like SpamAssassin. And many spammers change both the email address and the domain they use periodically.

Unfortunately none of the current add-ons seem to support checking whether a sender is on a dns block list such as spamhaus. That would avoid you needing to keep updating your message filters. I don't know whether SpamPal at http://www.spampal.org still works. You'd configure it to be a proxy that is called when connecting to the mail server. https://win10fix.com/spampal/ looks like it might be a version of SpamPal updated for Windows 10 . It looks like its also available at https://apps4win.com/spampal.html
John K Marshall
Posts: 2
Joined: January 19th, 2022, 3:25 pm

Re: Block domains

Post by John K Marshall »

Thanks for your reply. Can I use "contains" "@*.spammer.com" where the "*" represents anything before ".spammer.com. The common part is the "spammer.com" but after the "@" and before "spammer.com" varies. Will Mozilla undertake to change Thunderbird to simply block a domain or a partial domain by right clicking on the message. I am 72 years old and your procedure does not seem simple. Thanks...
User avatar
tanstaafl
Moderator
Posts: 49647
Joined: July 30th, 2003, 5:06 pm

Re: Block domains

Post by tanstaafl »

"contain" doesn't support wild cards. However, "contains" "@spammer.com" will work with both joe@spammer.com and bubba.smith@spammer.com as both have a "@.spammer.com" substring as part of the email address. i.e. you get the equivalent of testing whether the email address matches *@spammer.com.

contains "@spammer.com" won't work with fred@host1.spammer.com. If you need to deal with that than you test against just contains "spammer.com"
Post Reply