To simply divert messages to the request-address that don't come from current subscribers you can use the same mechanism smartlist uses to restrict postings, i.e. formail/multigram and the dist file (define $SPAMTRAP to be a file of your choice) :0: * !? formail -X"From " -xFrom: -xReply-To: -xSender: -xResent-From: \ -xResent-Reply-To: -xResent-Sender: -xReturn-Path: | \ multigram -b1 -m -l$submit_threshold -L$domain \ -x$listaddr -x$listreq dist $SPAMTRAP if you want to be a little less restrictive you can use (as was mentioned by Jim Osborn) an approach which uses SpamAssassin (SA) to check for the spamishness of messages that aren't from subscribers: WHITEU=dist FROM = `formail -IReply- -rtzxTo:` :0 * ! ? fgrep -i $FROM $WHITEU { INCLUDERC=spamcheck.rc } -- where spamcheck.rc is tuned to whatever spam-finding package you prefer, for instance a simple-minded (and low-volume) SA approach could be: :0fw | /usr/local/bin/spamassassin :0: * ^X-Spam-Status: Yes $SPAMTRAP Rich
** Reply to message from rgball@ellerbach.com on Mon, 10 Jan 2005 13:57:35 -0500 (EST)
To simply divert messages to the request-address that don't come from current subscribers you can use the same mechanism smartlist uses to restrict postings, i.e. formail/multigram and the dist file
(define $SPAMTRAP to be a file of your choice)
:0: * !? formail -X"From " -xFrom: -xReply-To: -xSender: -xResent-From: \ -xResent-Reply-To: -xResent-Sender: -xReturn-Path: | \ multigram -b1 -m -l$submit_threshold -L$domain \ -x$listaddr -x$listreq dist $SPAMTRAP
If I understand the above correctly, this is a snippet intended to examine an incoming message, and determine if there is an address in any of the named headers that is identical to an address in the dist file, and, if not, to throw it into a file called . SPAMTRAP (I think the "$" is not part of the filename; is that correct? I hope someone will correct me if I am wrong (I don't even know the name of the language in which thise scripts are written, so anything is possible). I think there is more to its main paragraph that than, because I can't account for all the terms. I am not clear what to do with the sentence "(define $SPAMTRAP to be a file of your choice)". How define? In what file is this piece of script intended to go? And does it matter where in that file it is located? -- Stan Goodman Qiryat Tiv'on Israel "When your enemy falls, do not rejoice." -- Proverbs 24:17
participants (2)
-
rgball@ellerbach.com
-
Stan Goodman