Solved

Excluding SpamAssassin from certain mailboxes

Posted on 2004-09-09
5
339 Views
Last Modified: 2013-12-15
I have installed spamassassin on redhat system-wide and it seems to working ok. But I regularly keep sending mails to members (10K+) and during that time the systems slows down a lot. On running the top command I see that spam assassin is the culprit and it tries to check every outgoing / every bounced mail. So is there any way of configuring spam assassin to not check that particular mailbox ?
0
Comment
Question by:mjeet
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 4

Accepted Solution

by:
marko020397 earned 250 total points
ID: 12051574
SpamAssassin checks every mail. Even if you write "all_spam_to *@mydomain.com" the SpamAssassin will still check the mail and it will not mark is as spam.

The only way I see it you should alter the /etc/procmailrc file. This is the configuration file for procmail which redirects all the mail through SpamAssassin (spamc to be more exact).

You should find these lines in your procmailrc file:
:0fw
* < 200000
| /usr/bin/spamc

Take a look at procmail directives to fine tune your spam processing. Try "man procmail", "man procmailrc", "man procmailex",...

The following rule will check mail for spam only if it is not for "postmaster@mydomain.com":
:0fw
* < 200000
* (^To|^Cc):.*postmaster@mydomain\.com
| /usr/bin/spamc
0
 

Author Comment

by:mjeet
ID: 12051825
Thank you for your reply .. I read through the man pages but in the following examples wouldn't I have to negate the second check


The following rule will check mail for spam only if it is not for "postmaster@mydomain.com":
:0fw
* < 200000
* (^To|^Cc):.*postmaster@mydomain\.com
| /usr/bin/spamc



fo ex to

* !(^To|^Cc):.*postmaster@mydomain\.com

to NOT check the postmater mail for spam ?

and if I negate it will the mail still be delivered to the postmaster mailbox(without checking for spam that is ) ?



Thank you for reply again.
0
 
LVL 4

Expert Comment

by:marko020397
ID: 12051895
Of course. You are right. I copied this line from my procmailrc which is used for something else. The character ^ confused me because it is used as negator sometimes in regular expressions.
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question