[Pymilter] Python3: how to proceed

Stuart D. Gathman stuart at gathman.org
Mon Oct 17 20:03:41 EDT 2016


I pushed changes to milter.patch to master that get me a lot farther. 
Apparently, you do need to call PyType_Ready() in python3.
Log from sample.py (which comes with pymilter):

2016Oct17 16:37:51 [1] connect from [192.168.11.42] at ('192.168.11.42',
40500)
2016Oct17 16:39:03 [1] hello from joy.gathman.org
2016Oct17 16:39:22 [1] mail from <stuart at gathman.org> ()
2016Oct17 16:39:54 [1] rcpt to <stuart at c7.gathman.org> ()
2016Oct17 16:40:19 [1] Subject: test 1

At which point:

Oct 17 16:40:19 c7.gathman.org sendmail[9700]: u9HKbpcL009700: from=<stuart at gathman.org>, size=22, class=0, nrcpts=1, msgid=<201610172039.u9HKbpcL009700 at c7.gathman.org>, proto=SMTP, daemon=MTA, relay=[192.168.11.42]
Oct 17 16:40:19 c7.gathman.org sendmail[9700]: u9HKbpcL009700: Milter: data, reject=451 4.3.0 pymilter: untrapped exception in pythonfilter
Oct 17 16:40:19 c7.gathman.org sendmail[9700]: u9HKbpcL009700: to=<stuart at c7.gathman.org>, delay=00:00:25, pri=30022, stat=pymilter: untrapped exception in pythonfilter


-- 
 	      Stuart D. Gathman <stuart at gathman.org>
"Confutatis maledictis, flamis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.



More information about the Pymilter mailing list