A small addition is needed to deal with bounces:

if (!$SENDER)
{
    SENDER = "<>";
}

I also check my mail with SpamAssassin from within maildrop. TMDA +
SpamAssassin is a nice combination, since some junk still comes trough
mailing lists.

<spamcheck>
SPAM_SCORE = `spamc -c`;
$SPAM_SCORE =~ /^.*!\/!.*$/;
SPAM_SCORE = $MATCH;
IS_SPAM = $MATCH > $MATCH3;

if ($SPAM_SCORE > 10)
{
    to "Maildir/.Spam";
}
</spamcheck>

The final .mailfilter that does both TMDA and SA checks may look like
this:

<mailfilter>
import SENDER;
import RECIPIENT;
import EXTENSION;

if (!$SENDER)
{
    SENDER = "<>";
}

SPAM_SCORE = `spamc -c`;
$SPAM_SCORE =~ /^.*!\/!.*$/;
SPAM_SCORE = $MATCH;
IS_SPAM = $MATCH > $MATCH3;

if ($SPAM_SCORE > 10)
{
    to "Maildir/.Spam";
}

cc "|/local/tmda/bin/tmda-filter";
if ($EXITCODE == 111)
{   
    EXITCODE = 75;
    exit;
}
if ($EXITCODE != 0)
{   
    EXITCODE = 0;
    exit;
}

to "Maildir";
</mailfilter>

-- 
Kirill

_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to