Gordon Messmer wrote:
Johannes Erdfelt wrote:

If I use an on-disk file (and I'm pretty sure that I will), it'll be GDBM. In python, gdbm behaves basically like a dictionary, so there's very little code difference between what I've already got and what gdbm requires.


I just uploaded a fresh copy of dialback.py to:
http://phantom.dragonsdawn.net/~gordon/courier-patches/courier-pythonfilter/

It uses the anydbm module to store the hashes in /var/state/dialback/. If you use the dialback module, you *must* create this directory.


Looking at the code, one thing I think you should do is use the null
envelope instead of postmaster@<local hostname>. You should also check
the return code of MAIL FROM:<>


Interesting idea. I'll definitely look into using that.


This one didn't pan out. If you give smtplib an empty string as the "from" address, it used the string "None", for some reason. I could send the mail from command manually, and I'll consider doing so in the future.


You may also want to return which mailserver gave the response that
you're returning to Courier.


Thanks, will look at that as well.


If the lookup isn't cached, the response will include the MX that gave a 5XX code. If it is cached, then only the 5XX code is sent.




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