Re: sendmail with mailscanner
On Fri, 11 Apr 2003, LeVA wrote:
> Hello!
>
> Anybody has a howto for configuring sendmail with mailscanner (or at
> least spamassassin), because in the mailscanner package there is a very
> outdated howto, which is not working.
>
> Thanks.
>
> Levai Daniel
> leva@ecentrum.hu
>
For spamassassin:
Install the packages spamassassin and razor.
Change the /etc/default/spamassassin ENABLED from 0 to 1:
# Change to one to enable spamd
ENABLED=1
Add this to your .procmailrc:
################
# Spamassassin #
################
# SpamAssassin sample procmailrc
#
# Pipe the mail through spamassassin (replace 'spamassassin' with 'spamc'
# if you use the spamc/spamd combination)
#
# 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.
#
# The lock file ensures that only 1 spamassassin invocation happens
# at 1 time, to keep the load down.
#
:0fw: spamassassin.lock
* < 256000
| spamc
# Mails with a score of 15 or higher are almost certainly spam (with 0.05%
# false positives according to rules/STATISTICS.txt). Let's put them in a
# different mbox. (This one is optional.)
:0:
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
caughtspam
# All mail tagged as spam (eg. with a score higher than the set threshold)
# is moved to "probably-spam".
:0:
* ^X-Spam-Status: Yes
caughtspam
# 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/'
}
Oliver
--
... don't touch the bang bang fruit
http://www.wreckingpit.com
http://www.wattzap.com
http://www.rocknrollpurgatory.com
http://home.arcor.de/oliverfuchs1/debian/muttrc.html
Reply to: