~ $ cat .procmailrc
SHELL=/bin/sh
SPAMFOLDER=${HOME}/mail/spam/spam
POSTMASTER_MAIL=${HOME}/mail/Postmaster#---------------------------------------------------------------------------
# mail handling guide
#
# 1> get rid of obvious junk
#
# 2> make a copy of the inbound email
#
# 3> kill spamassassin tagged email
#
# 4> sic TMDA on the attack
#
# 5> post processing of my .procmail-tmda-delivery is done by tmda, lists, etc
#
#---------------------------------------------------------------------------
# Kill spamassassin tagged mails with lots of points (anything 5 points and higher is devnulled)
:0
* ^X-Spam-Level: \*\*\*\*\*
/dev/null
#--- just in case ----------------------------------------------------------
INCLUDERC=${HOME}/.procmail-backup# block unsubscribes :0 * ^Subject:.*(un[- ]?subscribe|remove (me|my address)) /dev/null
# Anything left that is still tagged as spam, send it to the spam folder :0 * X-Spam-Status: Yes $SPAMFOLDER
:0 * Return-Path: <MAILER-DAEMON> $POSTMASTER_MAIL
## Set the necessary environment variables.
EXTENSION="$1"
:0
* EXTENSION ?? .
{
DELIMITER="+"
}
RECIPIENT="[EMAIL PROTECTED]"
SENDER=`formail -x Return-Path | sed 's/[<>]//g;s/^[ ]*//'`# Run the message through tmda-filter. :0 w | /usr/bin/tmda-filter
# friggen TMDA always sends back 75, 99, etc for anything that didn't go into pending.
EXITCODE=0
# TMDA takes care of final delivery DEFAULT=/dev/null
Rick Mann wrote:
I'm getting more and more spam that has very high statistical spam scores (in my setup, anything remotely spam gets fed to TMDA), but then it has an empty envelop sender, so TMDA lets it through. What's the best solution for this?
On the one hand, I'd like to be able to configure TMDA to react differently for different spam scores (something we've discussed before), so that perhaps it could auotmatically bounce high spam scores while quarantining medium ones and passing low ones. But right now I can only key off of the "Yes" or "No" associated with the spam score added by my bayesian filter (bogofilter).
TIA,
_____________________________________________ tmda-users mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-users
