6 messages in net.sourceforge.lists.courier-usersRe: [courier-users] BLOCK2 from withi...
FromSent OnAttachments
Arturo 'Buanzo' BusleimanFeb 26, 2007 4:41 am 
Jay LeeFeb 26, 2007 5:12 am 
Arturo 'Buanzo' BusleimanFeb 26, 2007 5:20 am 
Gordon MessmerFeb 26, 2007 8:46 am 
Arturo 'Buanzo' BusleimanFeb 26, 2007 9:44 am 
Sam VarshavchikFeb 26, 2007 3:13 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] BLOCK2 from within pythonfilterActions...
From:Jay Lee (jl@pbu.edu)
Date:Feb 26, 2007 5:12:32 am
List:net.sourceforge.lists.courier-users

Arturo 'Buanzo' Busleiman wrote:

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

People,

I've configured Courier to use the dnsbl.sorbs.net blacklist which I know my
computer's dynamically assigned ip is in, but using BLOCK2.

Why? because I'm writing a pythonfilter. The problem is that neither using
os.getenv or os.environ the BLOCK2 env var (which i know should be set, because dnsbl.sorbs.net IS
blocking my IP).

Probably the env var is not available to courierfilters, or pythonfilter is not
forwarding it to my environment, I don't know, but the Courier docs for esmtpd.BLACKLIST state that:

# The BLOCK environment variable is automatically enforced by submit. # Nobody really does anything about BLOCK2, this is mainly for use by # plug-in mail filters. If you want Courier to unilaterally block # mail from IP addresses listed on the RBL and RSS, and you have a separate # filter that keys off BLOCK2, uncomment the following.

And this is my setting:

BLACKLISTS="-block=dnsbl.sorbs.net,BLOCK2"

My IP, as you can tell from my message headers, is: 200.89.180.209

Confirmation that it IS blacklisted: ~ $ host -t a 209.180.89.200.dnsbl.sorbs.net 209.180.89.200.dnsbl.sorbs.net has address 127.0.0.10

Am I wrong to believe that BLOCK2 should be accesible within my pythonfilter?

When you talk about your IP address that is blacklisted are you talking about the server or the smtp client? What are you trying to do?

Jay