[Pymilter] pymilter dies on IPv6 addresses

Attila Nagy nagy.attila at gmail.com
Mon Nov 20 07:24:22 EST 2017


Hi,

Pymilter segfaults when I try to connect to postfix (3.2) from an IPv6
address.
An easy way to reproduce this is to add:
smtpd_authorized_xclient_hosts = 127.0.0.0/8
to postfix main.cf
and then do the following:
$ nc localhost 25
220 localhost ESMTP Postfix
XCLIENT ADDR=IPV6:::1

pymilter dies with:
Segmentation fault (core dumped)

postfix logs this:
warning: milter unix:/tmp/milter.sock: can't read SMFIC_CONNECT reply
packet header: No error: 0

gdb says:
#0  strlen (str=0xffffffffdf3f9d40 <Address 0xffffffffdf3f9d40 out of
bounds>)
    at /usr/src/lib/libc/string/strlen.c:100
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gathman.org/pipermail/pymilter/attachments/20171120/e6061a60/attachment.html>


More information about the Pymilter mailing list