From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Kevin J. Cummings" Subject: Re: spamassassin configuration problem Date: Thu, 30 Oct 2003 13:20:16 -0500 Sender: linux-admin-owner@vger.kernel.org Message-ID: <3FA15660.8000108@kjchome.homeip.net> References: <026401c39ee4$d23ad930$04c809c0@himalaya> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <026401c39ee4$d23ad930$04c809c0@himalaya> List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Sarvesh Singhal Cc: linux-admin Sarvesh Singhal wrote: > Hi all, > > I have installed spamassassin-2.60 and I wish to integrate it with my > mailserver(sendmail). I am facing numerous question as to configuration of > the same. > > I want to know from where I should start. Can't find any suitable tutorial > or ... I started with the docs on their WWW site. I have a RH-9 system, and I built from the source RPMS for version 2.60-1 and installed them on my system. Next, I used the following as my /etc/procmailrc: > DROPPRIVS=yes > > :0fw > * < 256000 > | spamc > c (Drop the "> "'s) Finally, I wanted to have any obvious sent directly to my own SPAM inbox, so I put the following into my .procmailrc file: > # All mail tagged as spam (eg. with a score higher than the set threshold) > # is moved to "spam.mail". > :0: > * ^X-Spam-Status: Yes > $HOME/spam.mail > > # Work around procmail bug: any output on stderr will cause the "F" in "From" > # to be dropped. This will re-add it. > :0 > * ^^rom[ ] > { > LOG="*** Dropped F off From_ header! Fixing up. " > > :0 fhw > | sed -e '1s/^/F/' > } > Y (Once again, drop the "> "'s) Since all local mail uses procmail for local delivery, spamassassin will check all locally delivered emails and change the headers. Your .procmailrc can then be used to check the headers and do what you want with them. Both of these files were gleemed from the pages at spamassassin.org.... Good Luck (from a recent SpamAssassin convertee....) -- Kevin J. Cummings kjchome@rcn.com cummings@kjchome.homeip.net cummings@kjc386.framingham.ma.us