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