Mailinglist Archive: opensuse (3996 mails)

< Previous Next >
Re: [BULK] Re: [SLE] Proper way to hook spamassassin into sendmail
  • From: Chris Worley <cworley@xxxxxxxx>
  • Date: Sat, 25 Sep 2004 11:12:46 -0600
  • Message-id: <1096132366.6664.61.camel@xxxxxxxxxxxxxxxxx>
That worked. Thanks.

Chris
On Sat, 2004-09-25 at 03:12, John Andersen wrote:
> On Friday 24 September 2004 09:34 pm, Chris Worley wrote:
> > I've got spamassassin installed, and spamd running... but it doesn't do
> > anything.
> >
> > My sendmail recieves mail, but does not use spamc as a filter.
> >
> > I found some general rules at:
> >
> > http://www.uk-dave.com/tutorials/linux/spamassassin.shtml
> >
> > But, the SuSE spamassassin/spamc doesn't hook in that way, I get
> > /var/log/mail errors like:
> >
> > Sep 24 23:09:07 xserver sendmail[10106]: i8P597ct010106: Milter
> > (spamassassin): error connecting to filter: Connection refused by
> > /var/run/sendmail/spamass.sock Sep 24 23:09:07 xserver sendmail[10106]:
> > i8P597ct010106: Milter (spamassassin): to error state
> >
> > This is true using spamassassin or spamc.
> >
> > What's the proper filter to hook into sendmail?
>
> procmail
>
> A sample procmailrc:
> DROPPRIVS=yes
> # SpamAssassin sample procmailrc
> :0fw
> * < 256000
> | spamc
>
> :0 H
> * ! ^From[ ]
> * ^rom[ ]
> {
> LOG="*** Dropped F off From_ header! Fixing up. "
>
> :0 fhw
> | sed -e 's/^rom /From /'
> }
>
> :0e
> {
> EXITCODE=$?
> }
>
> :0
> * ^X-Spam-Status:.*hits=[1-9][0-9]
> {
>
> :0
> /dev/null
> }


< Previous Next >
Follow Ups