I'd like to have maildropfilter call spamassassin to reject spam, based
on individual user prefs before accepting messages for delivery.
I've got this working, however to get the spamassasin headers in my
message, I seem to need to call it twice.. once in
.mailfilters/smtpfilter and also in .mailfilter
Is this really the only way to accomplish what I want, or is there some
better way with couriermailfilter, etc? (also, any comments on the
relative merits/dismerits of useing spamc/spamd?)
Thanks.
hozer$ cat /etc/courier/maildroprcs/spamassassin
#
if ($SIZE < 65536)
{
exception {
xfilter "/usr/bin/spamc"
#xfilter "/usr/bin/spamassassin -a"
}
}
hozer$ cat .mailfilter
logfile Maildir/maillog
include "/etc/courier/maildroprcs/spamassassin"
hozer$ cat .mailfilters/smtpfilter
include "/etc/courier/maildroprcs/spamassassin"
import SENDER
if ( /X-Spam-Flag: YES/ )
{
echo "This message has been refused because it appears to be SPAM"
echo "If this is wrong, please email <[EMAIL PROTECTED]>"
EXITCODE = 2
}
--
--------------------------------------------------------------------------
Troy Benjegerdes 'da hozer' [EMAIL PROTECTED]
Somone asked my why I work on this free (http://www.fsf.org/philosophy/)
software stuff and not get a real job. Charles Shultz had the best answer:
"Why do musicians compose symphonies and poets write poems? They do it
because life wouldn't have any meaning for them if they didn't. That's why
I draw cartoons. It's my life." -- Charles Shultz
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users