Hi spamassassin-talk, This is a bit tricky to explain so here I go..
I am using spamassassing through postfix by using the following entry in master.cf smtp inet n - n - - smtpd -o content_filter=filter: filter unix - n n - - pipe user=filter argv=/usr/local/anomy/filter.sh -f ($sender) -- ($recipient) This works except that mail sent to me from mailing lists disappears! I am using procmailrc to redirect mailings from these lists in IN-listname. If I use the standard smtp entry (without the content filtering) then it all works but I can not run spamassassin! The filter file contains === start #!/bin/sh # # filter.sh # # Simple filter to plug Anomy Sanitizer and SpamAssassin # into the Postfix MTA # # From http://advosys.ca/papers/postfix-filtering.html # Advosys Consulting Inc., Ottawa # # For use with: # Postfix 20010228 or later # Anomy Sanitizer revision 1.49 or later # SpamAssassin 2.31 or later # INSPECT_DIR=/var/spool/filter SENDMAIL=/usr/lib/sendmail ANOMY=/usr/local/anomy ANOMY_CONF=/usr/local/anomy/anomy.conf SPAMASSASSIN=/usr/bin/spamassassin export ANOMY # Exit codes from <sysexits.h> EX_TEMPFAIL=75 EX_UNAVAILABLE=69 cd $INSPECT_DIR || { echo $INSPECT_DIR does not exist; exit $EX_TEMPFAIL; } # Clean up when done or when aborting. trap "rm -f in.$$; rm -f out.$$" 0 1 2 3 15 cat | $SPAMASSASSIN -P -x -a | $ANOMY/bin/sanitizer.pl $ANOMY_CONF 2>>/tmp/anomy.log > out.$$ || { echo Message content rejected; exit $EX_UNAVAILABLE; } $SENDMAIL "$@" < out.$$ exit $? ==== stop I have looked on the anomy sanitizer and spamassassin sites for more help. I might try running them via procmailrc if possible but I am posting here incase anyone can get the current way working. -- Regards, Chris Willard [EMAIL PROTECTED] ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk