fetchmail ans spamassassin
Jean Magnan de Bornier
jm.bornier at free.fr
Thu Oct 16 21:03:58 CEST 2003
Le 10/16/03 Jack Coates <jack at monkeynoodle.org> a écrit notamment:
>> > > Anyways, you can configure procmail to filter stuff using spamassassin.
>> > Yes I know, but then spamassassin does not work as a daemon (or am I wrong
>> > on this?)
Thanks Jack, but if I do that spamassassin is not running as daemon, which
what I was asking for
>
> let's take this all the way into left field with some more procmail
> advice...
> # Create a backup cache of 50 most recent messages in case of mistakes
> LOGABSTRACT=no
> :0 c
> $PMSRC/backupmail
> :0 ci
> | cd $PMSRC/backupmail && rm -f dummy `ls -t msg.* | sed -e 1,50d`
>
> # Anti-spam measures.
> # SpamAssassin rule
> # The condition line ensures that only messages smaller than 250 kB
> # (250 * 1024 = 256000 bytes) are processed by SpamAssassin. Most spam
> # isn't bigger than a few k and working with big messages can bring
> # SpamAssassin to its knees.
> # Sourceforge and some other sites have started to run SpamAssassin on
> # their own mail, so this rule lets us skip re-running it here.
> :0fw
> * < 256000
> * !^X-Spam-Flag: YES
> | /usr/bin/spamc
>
> # Mails with a score of 15 or higher are almost certainly spam (with 0
> # false positives according to rules/STATISTICS.txt). Let's put them i
> # safe place, like /dev/null
> # After a few days, I'm adjusting this down to 10.
> :0:
> * ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*
> /dev/null
--
Jean Magnan de Bornier
3 Cours Victor Hugo, 13980 Alleins France
Tel: 04 90 59 33 94 Port: 06 09 17 35 87
mèl: jm.bornier*at*free.fr
More information about the Xfce
mailing list