If you’re web host uses cPanel there’s a great function which is not often used where you can filter messages prior to being delivered to anyone’s inbox.
If you’re among the many, many people receiving spam which has as it’s subject “It’s name : )” where name is a different name every time, you can write a regular expression in cPanel’s email filter which will stop those emails from being delivered.
I know I lost some of you with the term “regular expression” but you don’t really need to understand it to use it. Here’s what you need to do:
Login to your cpanel and click on the “Mail” icon.
Click on “Email Filtering.”
Click on “Add Filter.”
In the Filter line the default should be “Subject.” Leave that the way it is. Change the box that defaults as “contains” to “matches regex.” In the input box, type: It\’s (.*) \:
Click the “Activate” button.
This will filter out any email which starts with “It’s” and then contains text and then has a colon. I tested this filter, and if I used the subject, “It’s a doozie” that message was still delivered, while “It’s Alan : )” was discarded. The filter works properly.
Of course if someone actually sends you an email like that it will filter it out, too, but it’s pretty unlikely they would start it with “It’s” and have a : later in the subject line.
So that little filter should greatly reduce the spam you’re getting if you’ve been hit with the “It’s name : )” spam deluge that’s been rocking the web.
How would I modify this filter for the “David wrote:” SPAM?
George
November 28th, 2006
“(.*) wrote:” would be the regular expression, without the quotes.
I tested it to confirm that would get rid of the various name wrote: spam that’s been going around lately.
Alan
November 28th, 2006
Thanks for the tip Allan. I just used the filters and have to say that they work great. I had always searched for something like that in the spam assassin section of cpanel but never understood why I couldn’t write my rules there.
George: I was getting a whole bunch of those same emails. Fortunately there was similar text in the body, and I just wrote a rule for that. Works perfectly!
Josh
November 29th, 2006