[Pymilter] Python3: how to proceed

Tom Hendrikx tom at whyscream.net
Mon Oct 17 03:30:55 EDT 2016



On 17-10-16 03:46, Stuart D. Gathman wrote:
> On Sun, 16 Oct 2016, Tom Hendrikx wrote:
> 
>> - created a virtualenv with python3.5
>> - cloned the pymilter master branch
>> - patched extension using 'patch miltermodule.c milter.patch'
>> - ran 'pip install -e .'
>>
>> All of this was succesful
>>
>> Then I created a minimal milter runner that runs the builtin
>> logging-only milter:
> 
> That should work.  But I'm just getting started testing
> the py3 conversion.  I'm testing with python3.4 in CentOS-7 and
> sendmail.  I'm getting a systemd service going and get an
> error in xxfi_negotiate, gathering details now.

Postfix is reporting also something with negotiate I think:

Oct 16 21:56:30 alison postfix-in/smtpd[9674]: warning: milter
unix:/tmp/python3-test-milter.sock: can't read SMFIC_OPTNEG reply packet
header: Success
Oct 16 21:56:30 alison postfix-in/smtpd[9674]: warning: milter
unix:/tmp/python3-test-milter.sock: read error in initial handshake
Oct 16 21:56:30 alison postfix-in/smtpd[9674]: NOQUEUE: milter-reject:
CONNECT from unknown[2001:980:cfb1:1:c450:9e2b:a0b0:7196]: 451 4.7.1
Service unavailable - try again later; proto=SMTP

It seems we're stuck on the same error ;/

> 
> If it can't find getpriv, then obviously I didn't follow the insns fully
> for the py3 context method table...
> 




More information about the Pymilter mailing list