(The following subject to correction)
update:
I found this and tried it out on our site: http://www.xnote.com/howto/postfix-spamassassin.html. It seems to have everything necessary and appears to be working. It's been edited to match what we have set up locally.
#!/bin/bash /usr/local/bin/spamc | /usr/sbin/sendmail -i "$@" exit $?
chmod 755 /usr/local/bin/spamfilter.sh
and make sure you have it executable:
ls -als /usr/local/bin/spamfilter.sh
example: useradd -m -d /home/spamfilter -s /bin/false spamfilter
chown spamfilter:users /usr/local/bin/spamfilter.sh
//NOTE there are two lines that have smtp. Make sure it is the inet line (Usually the first occurrence)//
# ----------------------------------------------------------------------------------- smtp inet n - n - - smtpd -o content_filter=spamfilter:dummy # -----------------------------------------------------------------------------------
# ----------------------------------------------------------------------------------- spamfilter unix - n n - - pipe flags=Rq user=spamfilter argv=/usr/local/bin/spamfilter.sh -f ${sender} -- ${recipient} # -----------------------------------------------------------------------------------