Try this: ># Parameter for $SPAMASSASSIN ># -P Pipe message, don't deliver ># -x Disable user config files ># -a Use auto-whitelists ># cat | $SPAMASSASSIN -P -x -a > out.$$ || { echo Message content rejected; exit \ >$EX_UNAVAILABLE; } cat | $SPAMASSASSIN > out.$$ || { echo Message content rejected; \ >exit $EX_UNAVAILABLE; } > >$SENDMAIL -i "$@" < out.$$
# Parameter for $SPAMASSASSIN # -P Pipe message, don't deliver # -x Disable user config files # -a Use auto-whitelists # cat | $SPAMASSASSIN -P -x -a > out.$$ || { echo Message content rejected; exit \ $EX_UNAVAILABLE; } cat | $SPAMASSASSIN > out.$$ || { echo Message content rejected; \ exit $EX_UNAVAILABLE; } $SENDMAIL -i "$@" < out.$$ It looks like you commented out the delivery to spamassassin. You used the '\' continuation but the first line was commented '#'. So it looks like your script was only executing '$SENDMAIL -i "$@" < out.$$'. --Larry >-----Original Message----- >From: mailinglists >> So, the message is being delivered to spamc which sends the message >> to spamd. spamd is not marking the messages but is delivering >> back to Postfix via the Postfix sendmail. Is this correct? Are you >> sure that spamd is running? > >Process list: > >mailbox:/ # ps ax | grep spamd >27532 ? S 0:06 /usr/bin/spamd -d -u filter > > >filter unix - n n - - pipe > user=filter argv=/home/filter/sc/filter.sh -f ${sender} -- >${recipient} > >I cannot remove the '--'. spamd is not invoked if I do. That is interesting. I guess I don't understand why. ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk