Create "White List" containing wild cards?

User Help for Mozilla Thunderbird
Post Reply
InfoLight
Posts: 8
Joined: January 13th, 2017, 10:55 am

Create "White List" containing wild cards?

Post by InfoLight »

Hello, and thanks for the help;

I would like to setup a "White List" to only ACCEPT email addresses ending with certain extensions.
All others would be deleted/trashed/junked.

I understand that Thunderbird can be setup to only accept emails contained in the address book.
Unfortunately, an address book only lists EXACT addresses, not addresses with WILD CARDS.
I need wild cards, because I don't know all of the valid email addresses that I will ever receive.
But I do know most of their email extensions.

For example, I want to use a "White List" of:
*.com
*.net
*.org
*.edu
*.biz
This "White List" would block emails with addresses which do NOT have these extensions.
For example, many SPAM addresses end with ".ru", ".ca", etc. They would be blocked with this "White List".

I've looked at "White List" addons. But they appear to be primitive; and/or targeted towards Firefox, not Thunderbird.
I've also looked at using filters. Unfortunately, while "Black Listing" is easy; "White Listing" is complex, especially if you want to apply additional filtering for other purposes.

So, is there a simple method to create a "White List" containing wild cards for Thunderbird?

Again, thanks for the help.
User avatar
tanstaafl
Moderator
Posts: 49647
Joined: July 30th, 2003, 5:06 pm

Re: Create "White List" containing wild cards?

Post by tanstaafl »

You don't need wild cards to test for domains. Test whether "From" "contains" ".edu" rather than "From" "is" "username@college.edu"

See the FiltaQuilla add-on at https://addons.mozilla.org/en-US/thunde ... la/?src=ss and http://mesquilla.com/extensions/filtaquilla/ if you want to add support for regular expressions. https://developer.mozilla.org/en-US/doc ... cts/RegExp defines the regular expression syntax. That is a superset of using wild cards.

However, it seems like you are trying to use message filters to detect spam. That is re-inventing the wheel, and becomes hard to maintain as you try to get rid of more spam. See http://kb.mozillazine.org/Junk_Mail_Controls for some alternatives such as telling the junk mail controls to trust SpamPal or SpamAssassins judgement what is spam. SpamPal is pretty lightweight and uses DNS Blacklists. You can choose whose you want to use. You can even even configure it to black list mail from specific countries (though that is risky). SpamAssassin is very powerful but is heavy weight and has a steep learning curve. Ideally you'd like to have your email provider run SpamAssassin on the server and you just tweak the settings to tell the junk mail controls what custom headers SpamAssassin used to indicate whether something is spam. You can configure the SpamAssassin setting to support whatever anti-spam program your email provider uses, you just need to know how they flag a message as spam. Some for example add several '*' as a prefix to the Subject. Others add custom headers, such as X-Spam-score: 0.0. Use view -> message source or Control-U to see all of the headers.
User avatar
tanstaafl
Moderator
Posts: 49647
Joined: July 30th, 2003, 5:06 pm

Re: Create "White List" containing wild cards?

Post by tanstaafl »

"For example, many SPAM addresses end with ".ru", ".ca", etc. They would be blocked with this "White List"."

A lot of foreign spam avoids using those domains in order to make it harder to filter them. Keep in mind that its trivial to spoof the From: address. A pink contract is a service contract offered by an ISP which offers bulk email service to spamming clients, in violation of that ISP's publicly posted acceptable use policy. You need to worry about that too, especially for overseas ISPs. https://en.wikipedia.org/wiki/Pink_contract
InfoLight
Posts: 8
Joined: January 13th, 2017, 10:55 am

Re: Create "White List" containing wild cards?

Post by InfoLight »

Thank you "tanstaafl" for the information.
I'm investigating your suggestions.
You've been very helpful.
Again, thank you.
Post Reply