[Pymilter] pymilter dies on IPv6 addresses

Stuart Gathman stuart at gathman.org
Tue Nov 21 12:41:59 EST 2017


On 11/21/2017 02:56 AM, Attila Nagy wrote:
> Sorry, this is the full backtrace which gdb gives:
> (gdb) bt
> #0  strlen (str=0xffffffffdf3f9d40 <Address 0xffffffffdf3f9d40 out of
> bounds>)
>     at /usr/src/lib/libc/string/strlen.c:100
> #1  0x0000000800ae2ae7 in PyString_FromString ()
>    from /usr/local/lib/libpython2.7.so.1
> #2  0x0000000805a760a7 in milter_wrap_connect ()
>    from /usr/local/lib/python2.7/site-packages/milter.so
So, it looks like postfix/libmilter is passing some garbage for
hostname.  Here is the API:

  http://pythonhosted.org/pymilter/milter_api/xxfi_connect.html

I'm not sure how we can detect that to work around it.  Possibly the
libmilter you are using is the problem.  Are you using libmilter from
postfix?  Or from sendmail?   Try using libmilter from sendmail.  It
should still work with postfix.





More information about the Pymilter mailing list