I am trying to figure out how to filter out spam mails using the
blacklists feature in esmtpd.

I have added the following to etc/esmtpd file:
BLACKLISTS='-block=blackholes.mail-abuse.org,BLOCK2
-block=relays.mail-abuse.org,BLOCK2'


Is it correctly understood that when maildrop gets the mail for
delivery, there should be a $BLOCK2 variable if the mail was cought in
the blacklists?

My intention is to add an extra mailheader (for later filtering) if the
$BLOCK2 variable is present. Is it enough just to test if the $BLOCK2
variable is present or should I test if it contains something?

if($BLOCK2)
{
   echo "blacklisted "
   xfilter "/home/courier/bin/reformail -a'X-Spam: true'"
}

or 

if($BLOCK2 ne "")
{
 ..
 ..
} 


Is there any way to check that Courier is actualy using the blacklists ?

 

Many thanks in advance,

Mark Nellemann

-- 

Mark Nellemann <[EMAIL PROTECTED]> - Unix Geek
Rosenorns Alle 11, DK-1970 Frederiksberg C, Denmark
GPG: C40E C37F 171F 5079 7A2B  AA14 7373 9E2B 4696 1513



_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to