Filtering Compound Domain Names

Forum for MailWasher Pro 7 and/or older 2011/2012 versions.
SweaterBaron
Rattled Rabbit
Posts: 3
Joined: Wed Jan 04, 2023 12:11 pm

Filtering Compound Domain Names

Wed Jan 04, 2023 12:25 pm

Recently, a prolific spammer has been creating multiple compound domains each day. By compound domain names I mean "xxxx.beauty" where the xxxx is different each time. My attempts to add the domain name with a wildcard (*.beauty") to my filters hasn't worked. The filtering rule I created is: Filter Type: Spam Domain - Contains - Plain Text = *.beauty or *beauty

Any ideas how better to block these messages?

Thanks,

Scott
User avatar
Digerati
Microsoft MVP
Location: Nebraska, USA
Posts: 1935
Joined: Thu Jul 24, 2008 3:16 pm

Re: Filtering Compound Domain Names

Thu Jan 05, 2023 3:27 am

Did you try just .beauty?
Image Bill (AFE7Ret)
Freedom is NOT Free!
Image Windows and Devices for IT, 2007 - 2018
Heat is the bane of all electronics!
─────────────────────
User avatar
Wizcrafts
Guardian Gecko
Contact:
Location: Flint, Michigan, USA
Posts: 388
Joined: Wed Sep 17, 2008 5:37 am

Re: Filtering Compound Domain Names

Thu Jan 05, 2023 4:47 am

Scott;
Are these domain names in the headers or the message body? If in the body, are they in plain text or base64?

It might help us create a rule if you provide a snippet or two from these spam messages, including the domain you want to detect.
Submitted respectfully by Wiz.
Member of the MailWasher Beta Tester Team
Fighting spam by writing, updating and publishing MailWasher Pro custom filters.
See www.wizcrafts.net/mwp-filters.html
gingbat
Least Evil Firetrust Employee
Posts: 1043
Joined: Mon Jul 28, 2008 4:04 pm

Re: Filtering Compound Domain Names

Thu Jan 05, 2023 10:21 am

Yes, you can only add wildcards to black or friendslists, plain text filters need to be exactly what you want them to filter, eg, as Digerati posted, simply use .beauty in the filter, not the *

OR, another option is to add *.beauty* as a wildcard for blacklist possibly? that would catch any email with .beauty in the senders address....

To do this, click Settings>>Spam Tools>>Blacklist, select, "Wildcard Expression" and type in:

*.beauty*

And click Add.
SweaterBaron
Rattled Rabbit
Posts: 3
Joined: Wed Jan 04, 2023 12:11 pm

Re: Filtering Compound Domain Names

Sun Jan 08, 2023 8:11 am

gingbat, both of your suggestions mentioned above worked. So, I deployed them both. Probably a bit redundant, but don't suppose there's any harm.

1. Created filter for just " .beauty" without the wildcard.
2. Added to blacklist as "*.beauty"

Thank you.
gingbat
Least Evil Firetrust Employee
Posts: 1043
Joined: Mon Jul 28, 2008 4:04 pm

Re: Filtering Compound Domain Names

Mon Jan 09, 2023 5:21 am

Excellent.... :)
User avatar
Wizcrafts
Guardian Gecko
Contact:
Location: Flint, Michigan, USA
Posts: 388
Joined: Wed Sep 17, 2008 5:37 am

Re: Filtering Compound Domain Names

Mon Jan 09, 2023 6:23 am

SweaterBaron wrote:
Wed Jan 04, 2023 12:25 pm
Recently, a prolific spammer has been creating multiple compound domains each day. By compound domain names I mean "xxxx.beauty" where the xxxx is different each time. My attempts to add the domain name with a wildcard (*.beauty") to my filters hasn't worked. The filtering rule I created is: Filter Type: Spam Domain - Contains - Plain Text = *.beauty or *beauty

Any ideas how better to block these messages?

Thanks,

Scott
Scott;
When you need to create wildcard rules in a MailWasher filter, you have to specify the type as Regular Expression, not plain text. The periods, asterisks and plus signs are only special characters in Regular Expressions. So, change your filter to the following:
Filter Type: Spam - Match Any -
Rule #1: Domain - Contains - RegEx = .*\.beauty
Rule #2: From - Contains - RegEx = .*\.beauty

The dot (.) means any one character at all (a letter, number, special character, space, etc). The asterisk (*) means zero or more times. I corrected the code sequence before ".beauty" and added a backslash before the period to escape it so it is treated literally as a dot. My expression works for any number of characters, followed by a dot, then beauty. It even matches no characters before the dot. If there are always some characters before the dot, which makes sense, you can change the * to a +. The + sign means 1 or more times. If you want to do that, your filter rules would be as follows:
Rule #1: Domain - Contains - RegEx = .+\.beauty
Rule #2: From - Contains - RegEx = .+\.beauty
Submitted respectfully by Wiz.
Member of the MailWasher Beta Tester Team
Fighting spam by writing, updating and publishing MailWasher Pro custom filters.
See www.wizcrafts.net/mwp-filters.html

Return to “MailWasher Pro 7”