<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">This seems to be a postfix problem, as
it does not happen with sendmail - indeed on my servers most mail
traffic is IPv6. EL7 has postfix 2.10, do you know if it has the
problem? I'll try in a bit. What version of pymilter? <br>
<br>
Possibly, postfix passes the args to the connect callback slightly
differently than sendmail, and there may be a work around we could
do in pymilter.<br>
<br>
Your traceback needs to include a function within miltermodule.c
to be useful. It is unlikely that strlen is the problem.<br>
<br>
On 11/20/2017 07:24 AM, Attila Nagy wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAM2hQG8Gi1yJuUW9f17V4vXGehws3D7CSx_07s3s0mHE_jyHZQ@mail.gmail.com">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>Pymilter segfaults when I try to connect to
postfix (3.2) from an IPv6 address.<br>
</div>
</div>
An easy way to reproduce this is to add:<br>
smtpd_authorized_xclient_hosts = <a
href="http://127.0.0.0/8" moz-do-not-send="true">127.0.0.0/8</a><br>
</div>
to postfix <a href="http://main.cf"
moz-do-not-send="true">main.cf</a><br>
</div>
and then do the following:<br>
</div>
$ nc localhost 25<br>
220 localhost ESMTP Postfix<br>
XCLIENT ADDR=IPV6:::1<br>
<br>
pymilter dies with:<br>
Segmentation fault (core dumped)<br>
</div>
<div><br>
</div>
<div>postfix logs this:</div>
<div>warning: milter unix:/tmp/milter.sock: can't read
SMFIC_CONNECT reply packet header: No error: 0<br>
</div>
<div><br>
</div>
gdb says:<br>
#0 strlen (str=0xffffffffdf3f9d40 <Address
0xffffffffdf3f9d40 out of bounds>)<br>
at /usr/src/lib/libc/string/strlen.c:100</div>
</blockquote>
</body>
</html>