LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-04-2011, 10:00 AM   #1
Tarikc
Member
 
Registered: May 2009
Posts: 49

Rep: Reputation: 2
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
 
Old 04-05-2011, 10:09 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,745

Rep: Reputation: 301Reputation: 301Reputation: 301Reputation: 301
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
 
  


Reply

Tags
postfix


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix rejecting mail from Outlook grob115 Linux - Server 8 03-26-2011 07:42 AM
Rejecting mail where sender matches recipient in postfix Gethyn Linux - Server 3 08-23-2009 10:51 AM
postfix / smtpd is rejecting all incoming emails alitrix Linux - Server 2 06-06-2008 04:10 PM
postfix incoming mail problem punker22 Linux - Networking 1 07-17-2004 12:45 AM
Postfix mail server not accepting incoming mail from the external interface rexmundi Linux - Networking 7 12-22-2003 03:41 PM


All times are GMT -5. The time now is 11:26 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration