Gordon Messmer wrote:

I've begun testing a Courier filter that implements dial-back address authentication, and I'd like to offer it for testing and discussion. It can be found here:

http://phantom.dragonsdawn.net/~gordon/courier-patches/courier-pythonfilter/


pythonfilter.py implements the Courier filtering mechanism for python filters. It should be installed in /usr/lib/courier/libexec/filters. Before starting the filter, create the directory /usr/lib/courier/libexec/filters/python-filter/ for the filter modules.


dialback.py requires the python DNS module, and by extension, python 2. pydns packages are included at the above location for Red Hat linux 7.3 and 9. If your platform's /usr/bin/python is not python 2, then you'll need to change the shebang to the path of your python 2 binary. Install this module in the "python-filter" directory.

Use "filterctl start pythonfilter.py" to start the python filter. Errors and status will be logged in the maillog.

I need to prevent it from running on SMTP connections from my internal mail hub - also a Courier server.


Since I don't see a way within courierfilter to do this, I am looking into modifying either of the python scripts with some kind of "if [ip != x.x.x.x]; then dofilter" logic.

Recommend where to make the change? (sorry - new to python...:-)

And rather than hard-code the IP (which I'll do for now), I forsee something more elegant - var, or config file perhaps?

Thanks,
jerry



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to