Almost solved! This is my new /etc/courier/maildroprcs/spamassassin:
# Run SpamAssassin
#
# ---headers Only adds the spam headers to an email. Otherwise,
# a spam report that contains the original message as
# an attachment would be generated.
# --exit-code Makes SpamAssassin return 1 if the email is identified
# as spam and 0 if it is genuine (or an error occured)
#
exception {
xfilter "spamc --headers --exitcode"
}
if ( $RETURNCODE == 1 )
{
echo
"###########################################################"
echo "# Your email appears to be spam and was rejected"
echo "#"
echo "# If this is a false positive, please send your email"
echo "# once more, this time including the word 'mapson'"
echo "# somewhere in its text. Sorry for the inconvenience."
echo
"###########################################################"
EXITCODE=97
exit
}
Spam is rejected with a prominent error message that genuine sender will
hopefully spot, normal mail gets through.
However, SpamAssassin's headers aren't added to the messages that end up
in my mailbox.
Is this not possible when running maildrop in embedded mode?
-Markus-
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users