[courier-users] BLOCK2 from within pythonfilter

This is a discussion on [courier-users] BLOCK2 from within pythonfilter within the Courier-Imap forums, part of the Mail Servers and Related category; -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 People, I've configured Courier to use the dnsbl.sorbs.net blacklist which I ...


Go Back   Usenet Forums > Mail Servers and Related > Courier-Imap

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2007
Arturo 'Buanzo' Busleiman
 
Posts: n/a
Default [courier-users] BLOCK2 from within pythonfilter

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

iD8DBQFF4tV4AlpOsGhXcE0RAuCwAJ4mT0C7CTHGp9jaX62tHV hoQvmaFQCfZ4Mr
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?p...rge&CID=DEVDEV
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/.../courier-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:58 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0