On Sun, 24 Feb 2002, Marc G. Fournier wrote: > On Mon, 25 Feb 2002, Daniel Pittman wrote: >> On Sun, 24 Feb 2002, Marc G. Fournier wrote:
[... spamassassin with postfix ...] >> > if so, how do you have it setup? >> >> I followed the instructions for the simple filtering, using a shell >> script to pipe the messages through spamc and back into sendmail. [...] > Could you send over the shell script you created? It and the relevant lines from my postfix configuration are attached to this mail. Daniel NB: I reformatted your message so your text was below mine. It's much nicer to get email formatted that way and with irrelevant bits trimmed. :)
#!/bin/busybox sh # # Process mail through SpamAssassin, adding the results, then feed it back into # the PostFix process. user="$1" shift exec spamc -u "${user}" | /usr/sbin/sendmail -i $@
[...] smtp inet n - - - - smtpd -o content_filter=spam: [...] # Add my local content filter... spam unix - n n - - pipe flags=Rq user=mailfilter argv=/home/mailfilter/spam-filter ${user} -f ${sender} -- ${recipient}
-- A child becomes an adult when he realizes he has a right not only to be right but also to be wrong. -- Thomas Szasz, _The Second Sin_, 1974