Page 1 of 3

Email filtering

Posted: Thu Feb 16, 2012 1:52 pm
by dja
Just wondering, is procmail hit first, or is spam filtering hit first. If I have a rule that blacklists messages in my spam filtering, will my procmail have a chance to process the messages before they are dropped by spam filtering?

Re: Email filtering

Posted: Thu Feb 16, 2012 5:21 pm
by augie
Use a ".procmailrc-first" file if you want your procmail rules to be applied before spam filtering.

Re: Email filtering

Posted: Thu Feb 16, 2012 10:53 pm
by dja
that's a pretty easy fix... thanks!

Re: Email filtering

Posted: Mon Feb 20, 2012 8:49 pm
by boss
I have a question about email filtering.

I am getting a lot of spam from .ru domains. And from what I'm seeing on the email's 'cc', so are a lot of other sonic users.

Did you guys do something to anger some Russians? Kidding :-)

My question is, what's the most effective way of blocking this? Right now I'm blacklisting. But I'm not sure I'm doing it right.
Can I blacklist all .ru email?
Can I blacklist everything from any "@mail.ru" or any other "@pickaname.ru" ?

Or do I have to continue to blacklist every email address that sends me spam?

Thanks

Re: Email filtering

Posted: Mon Feb 20, 2012 10:15 pm
by dja
You can blacklist, or you can use procmail. Procmail lets you use regular expressions and therefor can be a much more powerful tool. But, for ease of use, blacklisting is the way to go. For my work email address, I've actually blacklisted *.* and then whitelisted only email's coming from my companies domain name.

Re: Email filtering

Posted: Tue Feb 21, 2012 5:39 am
by boss
So, if I add @mail.ru to my blacklist I will block all email addresses containing @mail.ru. Is this right? Bc it's not working.

I've never heard of procmail. Where can I read about this?

Thanks again

Re: Email filtering

Posted: Tue Feb 21, 2012 11:45 am
by kgc
For your example, you'd blacklist *@mail.ru

Procmail allows for advanced programmatic processing of email upon delivery. You can use it to do things like discard email when a set of rules are matched or conditionally forward mail. For more inforamation see http://www.procmail.org/

Re: Email filtering

Posted: Tue Feb 21, 2012 9:04 pm
by boss
Thanks kgc and dja for your help.

Re: Email filtering

Posted: Wed Feb 22, 2012 1:40 am
by virtualmike
boss wrote:So, if I add @mail.ru to my blacklist I will block all email addresses containing @mail.ru. Is this right? Bc it's not working.
*@mail.ru

Re: Email filtering

Posted: Wed Feb 22, 2012 5:54 pm
by boss
Ok. I think you are saying to add the asterisk before the @