-----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?

- --
Arturo "Buanzo" Busleiman - Consultor Independiente en Seguridad Informatica
Mail Hosting Seguro y Consultoria - http://www.buanzo.com.ar/pro/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF4tV4AlpOsGhXcE0RAuCwAJ4mT0C7CTHGp9jaX62tHVhoQvmaFQCfZ4Mr
IFuaert/5ojPMH1p0WBQlow=
=GRJv
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to