Thought this might be helpful to others. This /home/$USER/.mailfilter will
first check for the presents of spam in the subject line that spam assassin
had put there. If it is present then automatically reports to spam cop and
exits. This also prevents a vacation auto-reply to anything tagged as spam.
The second part tests for any words in vacation.msg before it tries to send
an auto-reply. I told my users that they can just rename vacation.msg to
vacation.txt to turn off auto-reply and visa-versa.
cc $DEFAULT
if ( /^Subject:.*(SPAM)+/ )
{
cc "!submit.***YOURUSERNAME@SPAMCOP***spam.spamcop.net"
exit
}
if (`wc -w vacation.msg 2>/dev/null` > 1)
{
xfilter "/usr/lib/courier/bin/reformail -r -t"
/^To:.*/
getaddr($MATCH) =~ /^.*/;
MATCH=tolower($MATCH)
flock "vacation.lock" {
`fgrep -iqx "$MATCH" vacation.lst 2>/dev/null || { \
echo "$MATCH" >>vacation.lst ; \
exit 1 ; \
} `
}
if ( $RETURNCODE == 0 )
exit
to "| ( cat - ; echo ''; cat vacation.msg) | $SENDMAIL"
}
exit
Bernie Robbins
Systems Support Specialist
VLM International, Inc.
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users