Solved

Excluding SpamAssassin from certain mailboxes

Posted on 2004-09-09
5
338 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

738 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