Multiple addresses in filters

Forum for MailWasher Pro 7 and/or older 2011/2012 versions.
riovistade
Rattled Rabbit
Posts: 4
Joined: Sat Jul 10, 2010 7:44 am

Multiple addresses in filters

Sat Jul 10, 2010 8:48 am

Does anybody know if I can block multiple domain with a single filter?
User avatar
Sidewinder
Weary Womble
Posts: 11676
Joined: Sun Mar 29, 2009 2:05 pm

Re: Multiple addresses in filters

Sat Jul 10, 2010 9:32 am

riovistade wrote:Does anybody know if I can block multiple domain with a single filter?
Yes, with Regex you can use a single rule. Use |as a separator and make sure that any . are preceded by a \
I am not a Firetrust employee. Just a MW User & Volunteer BETA Tester.
Remember "FREEDOM IS NEVER FREE" U.S.N.
DT W7 64 HP SP1 16GB Ram - LT W7 32 HP SP1 4GB Ram - iPad4 64 GB Ram WiFi/Cellular IOS 9.3 Beta 3
User avatar
stan_qaz
Omniscient Kiwi
Location: Gilbert, Arizona
Posts: 8671
Joined: Fri Jul 25, 2008 5:13 am

Re: Multiple addresses in filters

Sat Jul 10, 2010 9:40 am

Single filter... You can have multiple rules in a filter and block one domain per rule with plain text rules.

Single filter, single rule... The regex method is what is needed.


This type of filter is a bit of duplication of the blacklist, if you could describe what you are trying to filter someone might have a good suggestion.
riovistade
Rattled Rabbit
Posts: 4
Joined: Sat Jul 10, 2010 7:44 am

Re: Multiple addresses in filters

Sat Jul 10, 2010 2:30 pm

Thanks to Sidewinder & stan_qaz. I had read about the regex method earlier, and I guess I just didn't get it - I do now.

Avoiding an extremely long list of blocked domains in the blacklist is what prompted this querry. I used to use BLScanPlusPro
to consolidate blocked domains into a filter, eliminating long lists, but it won't work anymore. Everything's xml now. So, I was
looking for an automated way to consolidate in xml format. If anyone hears of a program that can do this, please post or email
me.

Thank you
User avatar
stan_qaz
Omniscient Kiwi
Location: Gilbert, Arizona
Posts: 8671
Joined: Fri Jul 25, 2008 5:13 am

Re: Multiple addresses in filters

Sat Jul 10, 2010 3:52 pm

The sed editor will do it, the syntax for the setup is a bit tricky.

http://www.gnu.org/software/sed/manual/sed.html

How effective are the blocked domains at detecting spam without false positives?

I've done a long list of wildcard country domains that does a great job once you remove any countries you get mail from. I added in a few of the odd four letter domains that sometimes send spam too.
riovistade
Rattled Rabbit
Posts: 4
Joined: Sat Jul 10, 2010 7:44 am

Re: Multiple addresses in filters

Tue Jul 13, 2010 2:34 am

One more question if I may please,
Is there a limit on how many domains can be blocked with a single filter?
User avatar
QuietOne
Omniscient Kiwi
Location: Texas, USA
Posts: 8337
Joined: Thu Jul 24, 2008 3:40 pm

Re: Multiple addresses in filters

Tue Jul 13, 2010 3:20 am

The only limit we're aware of is a limit on the total number of rules allowed in any one filter. No more than 150 rules - at least for the known future. :thumbsup :mrgreen:

WRT the max number of characters IN a given rule: You'd get tired of typing before you hit the max. :facepalm :mrgreen:
Stealth is the Best Weapon.
15" MacBook Pro, OS X 10.14.6, 16GB RAM, Parallels install went kaput so no Windows version, Mozilla Thunderbird. All T'bird accnts: POP3. iPhone Mail Accounts IMAP. Unsubscrbd DNSBL.
And I'm: Just Another βeta-Tester.
User avatar
MrBill
Prudent Pukeko
Contact:
Location: Santa Cruz, CA
Posts: 867
Joined: Sun Jul 27, 2008 4:19 am

Re: Multiple addresses in filters

Tue Jul 13, 2010 6:29 am

QuietOne wrote:The only limit we're aware of is a limit on the total number of rules allowed in any one filter. No more than 150 rules - at least for the known future. :thumbsup :mrgreen:

WRT the max number of characters IN a given rule: You'd get tired of typing before you hit the max. :facepalm :mrgreen:
And I still say that's (150) too small - but I'm holding mine to around 100 Rules. When I hit that number, I start looking for ways to split them up.
Bill Walton
User avatar
stan_qaz
Omniscient Kiwi
Location: Gilbert, Arizona
Posts: 8671
Joined: Fri Jul 25, 2008 5:13 am

Re: Multiple addresses in filters

Tue Jul 13, 2010 12:12 pm

riovistade wrote:Thanks to Sidewinder & stan_qaz. I had read about the regex method earlier, and I guess I just didn't get it - I do now.

Avoiding an extremely long list of blocked domains in the blacklist is what prompted this querry. I used to use BLScanPlusPro
to consolidate blocked domains into a filter, eliminating long lists, but it won't work anymore. Everything's xml now. So, I was
looking for an automated way to consolidate in xml format. If anyone hears of a program that can do this, please post or email
me.

Thank you
Thinking on this more you should be able to open your blacklist.txt file from the old MW and copy/past into the filters.xml file in the new MW with minimal editing, just keep a backup for safety and watch the syntax tags.

I'd build the basic filter and enter a plain text rule with a dummy expression and one for a regex rule with a dummy expression (include two regex OR conditions so you see how they look) to get the basic format in the file to work with.

Exit both versions of MW to make the file safe to edit!

Make several copies of the rule you are going to work with in the xml file.

Copy the domains you want to block in place of the dummy expression,one per rule for the plaint text option. For the regex option separate them as the dummy did with the | symbol.
filter.png
filter.png (24.97 KiB) Viewed 9125 times
There exists a possibility of someone doing some third-party tools to directly access the lists and such as the BLScan app does but so far nobody has been willing to work on that. Nobody probably will do it either, at least until the "feature complete" version is released down the road.
riovistade
Rattled Rabbit
Posts: 4
Joined: Sat Jul 10, 2010 7:44 am

Re: Multiple addresses in filters

Tue Jul 13, 2010 3:26 pm

Thanks everyone for your feedback - it is greatly appreciated.

I had already copied & pasted from the old MWP filters.txt file before it was suggested here (I'm
intuitive that way) but the syntax was wrong. Thanks to you guys I have since corrected this.

The filter has only one rule, and is currently blocking in excess of 890 domains, and counting.

Manually adding domains to the filter will have to do untill someone - Firetrust? - automates the process.

Thanks for all your suggestions.

Return to “MailWasher Pro 7”