Gordon Messmer <[EMAIL PROTECTED]> writes: > Lloyd Zusman wrote: >> How can courier-pythonfilter+SPF be set up to offer this differing >> behavior? >> In other words, is there a way to get a courierfilter module to know >> whether it's running via a port 25 connection or a port 587 connection, >> and then to offer differing SPF logic? > > Write a whitelist module (might as well base it on "whitelist.py") that > returns an OK for senders who use AUTH on any submission service. As > best I can figure, you'd have to open up the data file and examine the > first received header for that information. It doesn't seem to be > recorded in the control files...
Thanks for this info. This brings up a question: given the fact that the dofilter method only takes the message body and a list of control files as its arguments, how do I determine the name of the data file from within this method? Do I have to recursively grep through the entire COURIERTOP/var/msgs tree and look for the file that contains the string that begins with "M" in the control file? That would be quite inefficient. There's got to be a better way. Thanks again. -- Lloyd Zusman [EMAIL PROTECTED] God bless you. ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
