LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Rejecting continuously changing incoming mail in postfix (http://www.linuxquestions.org/questions/linux-software-2/rejecting-continuously-changing-incoming-mail-in-postfix-872879/)

Tarikc 04-04-2011 10:00 AM

Rejecting continuously changing incoming mail in postfix
 
Hey everybody,

I've read many post close to my subject regarding blacklisting incoming emails, but non of them described what I really want:

How can I reject a continuously changing email from my postfix, here is what I mean:

abduooo+bncCIr7stnbBBCssufsBBoEzTHSKg@googlegroups.com
abduooo+bncCMfZgc-iExCKr-fsBBoEMzorbA@googlegroups.com
abduooo+bncCLf5kv6MHRCtmefsBBoEjYnAAQ@googlegroups.com

I think you got what I mean, the thing I've taken from the posts I've read is that I created a sender_access file hashed it and added the:
smtpd_recipient_restrictions = check_sender_access hash:/etc/postfix/sender_access
to postfix main.cf configuration

The sender access file reads:
abduooo*@googlegroups.com REJECT

But that didn't work, I know that there is some magical slashes and dots to be added to the sender_access, but I don't know which.

Can anyone please help me?
Thanks in advance

bigrigdriver 04-05-2011 10:09 AM

Unless you expect to receive mail from some legitimate @googlegroups.com, try simplifying your blacklist to *@googlegroupscom.

Here is an article on Configuring Postifx. Scroll down to "Fighting against SPAM" for an example of what to add to your config. Use www.google.com/linux for further searches on configuring postfix to fight spam.

You may have better luck if you combine postfix with spamassassin. Spamassassin has rulesets to filter spam on a variety of subjects. They are text files which you can edit to your needs, or create your own. You can get them here: http://wiki.apache.org/spamassassin/CustomRulesets


All times are GMT -5. The time now is 05:41 AM.