Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Excluding SpamAssassin from certain mailboxes

Posted on 2004-09-09
5
Medium Priority
?
341 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 1000 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

688 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