Solved

Excluding SpamAssassin from certain mailboxes

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
AWS EC2 Linux 1 36
The endless cat and mouse game of fail2ban 4 67
LINUX, CPANEL & WHM 5 25
Trying to make SNMP connection work 7 43
Currently, there is not an RPM package available under the RHEL/Fedora/CentOS distributions that gives you a quick and easy way to allow PHP to interface with Oracle. As a result, I have included a set of instructions on how to do this with minimal …
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,…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now