On Wednesday 16 June 2004 18:40, Eicke might have typed:
> Postfix master.cf:
>
> smtp inet n - n - - smtpd
> -o content_filter=clamav:clamav
> clamav unix - n n - - pipe
> flags=Rq user=clamav argv=/usr/libexec/postfix/clamav-filter.sh -f
> ${sender} -- ${recipient}
>
>
> In /usr/libexec/postfix/clamav-filter.sh there is a variable:
>
> SENDMAIL=/usr/bin/spamc -f -e /usr/sbin/sendmail -i
>
> The result is something like this:
>
> /usr/bin/spamc -f -e /usr/sbin/sendmail -i -f sender -- recipient
1) The example you later posted shows a score of 0. So that wasn't a spam.
2) That line just says run spamc on the mail, and send any output to sendmail.
So if a mail is spam, it'll get sent on (unless you have a bit of logic later
on that was in another mail).
spamc/spamassassin are merely filters. You have to put logic in place after
the call to spamc/spamassassin to determine whether the mail was spam, and
handle it appropriately. I use amavisd-new to call clamav and spamassassin -
IMAP users then have a .mailfilter file with a rule that sends all mail
tagged as spam to their spam folder. Users who are just aliases have to deal
with the spam tagging in their mail client.