Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Thread

IPv6 and unknown family 54

IPv6 and unknown family 54

2017-03-29 by GMX VCU

Hi,

we are using milter-greylist "version 4.6.2" on an CentOS 6 host with sendmail 8.14.7.
The host has an IPv4 and an IPv6 address (dual stack); sendmail was compiled with IPv6 support.

Milter-Greylist works fine with emails from an IPv4 host but when an email from an IPv6 hosts arrives we get back this error messages:

Mar 15 12:53:41 tyr milter-greylist: greylist: connect[140270896260864]: unknown family 54
Mar 15 12:53:41 tyr sendmail[13836]: v2FBrfvM013836: milter_sys_read(greylist): cmd read returned 0, expecting 5
Mar 15 12:53:41 tyr sendmail[13836]: v2FBrfvM013836: Milter (greylist): to error state

Any ideas?

CU

Re: [milter-greylist] IPv6 and unknown family 54

2017-03-29 by John_Damm_S=c3=b8rensen

From this thread it seems to be libmilter compiled without IPv6 support.

https://www.mail-archive.com/dkim-milter-discuss@.../msg01042.html

/john


Den 29-03-2017 kl. 10:51 skrev 'GMX VCU' ucv10@... [milter-greylist]:
Show quoted textHide quoted text
> Hi,
>
> we are using milter-greylist "version 4.6.2" on an CentOS 6 host with 
> sendmail 8.14.7.
> The host has an IPv4 and an IPv6 address (dual stack); sendmail was 
> compiled with IPv6 support.
>
> Milter-Greylist works fine with emails from an IPv4 host but when an 
> email from an IPv6 hosts arrives we get back this error messages:
>
> Mar 15 12:53:41 tyr milter-greylist: greylist: 
> connect[140270896260864]: unknown family 54
> Mar 15 12:53:41 tyr sendmail[13836]: v2FBrfvM013836: 
> milter_sys_read(greylist): cmd read returned 0, expecting 5
> Mar 15 12:53:41 tyr sendmail[13836]: v2FBrfvM013836: Milter 
> (greylist): to error state
>
> Any ideas?
>
> CU
>

Aw: Re: [milter-greylist] IPv6 and unknown family 54

2017-03-29 by GMX VCU

Hi John,
thanks for your reply. I have checked the site.config.m4 file, it supports libmilter with ipv6:
define(`confMAPDEF', `-DNEWDB')
define(`conf_sendmail_ENVDEF', `-DSASL=2')
define(`confINCDIRS', `-I/usr/local/include')
define(`confLIBDIRS', `-L/usr/local/lib')
define(`conf_sendmail_LIBS', `-lsasl2')
APPENDDEF(`confENVDEF', `-DMILTER')
APPENDDEF(`confLIBS', `-ldb')
APPENDDEF(`conf_sendmail_ENVDEF', `-DNETINET6')
APPENDDEF(`conf_libmilter_ENVDEF', `-DNETINET6')
APPENDDEF(`conf_mail_local_ENVDEF', `-DQUEUE_ONLY')
APPENDDEF(`conf_sendmail_ENVDEF', `-DSTARTTLS')
APPENDDEF(`conf_sendmail_ENVDEF', `-D_FFR_TLS_O_T')
APPENDDEF(`conf_sendmail_ENVDEF', `-D_FFR_TLS_1')
APPENDDEF(`conf_sendmail_ENVDEF', `-D_FFR_TLS_TOREK')
APPENDDEF(`conf_sendmail_LIBS', `-lssl -lcrypto')
the Mimedefang milter works fine with IPv6; this should not work as well if libmilter would not support IPv6...
CU
Gesendet:�Mittwoch, 29. M�rz 2017 um 11:06 Uhr
Von:�"John Damm S�rensen john@... [milter-greylist]"
An:�milter-greylist@yahoogroups.com
Betreff:�Re: [milter-greylist] IPv6 and unknown family 54

From this thread it seems to be libmilter compiled without IPv6 support.

https://www.mail-archive.com/dkim-milter-discuss@.../msg01042.html

/john

Den 29-03-2017 kl. 10:51 skrev 'GMX VCU' ucv10@... [milter-greylist]:
Hi,

we are using milter-greylist "version 4.6.2" on an CentOS 6 host with sendmail 8.14.7.
The host has an IPv4 and an IPv6 address (dual stack); sendmail was compiled with IPv6 support.

Milter-Greylist works fine with emails from an IPv4 host but when an email from an IPv6 hosts arrives we get back this error messages:

Mar 15 12:53:41 tyr milter-greylist: greylist: connect[140270896260864]: unknown family 54
Mar 15 12:53:41 tyr sendmail[13836]: v2FBrfvM013836: milter_sys_read(greylist): cmd read returned 0, expecting 5
Mar 15 12:53:41 tyr sendmail[13836]: v2FBrfvM013836: Milter (greylist): to error state

Any ideas?

CU

Re: [milter-greylist] IPv6 and unknown family 54

2017-03-29 by Johann Klasek

On Wed, Mar 29, 2017 at 11:06:55AM +0200, John Damm S\ufffdrensen john@... [milter-greylist] wrote:
> From this thread it seems to be libmilter compiled without IPv6 support.
> 
> https://www.mail-archive.com/dkim-milter-discuss@.../msg01042.html
> >we are using milter-greylist "version 4.6.2" on an CentOS 6 host with 
> >sendmail 8.14.7.
> >The host has an IPv4 and an IPv6 address (dual stack); sendmail was 
> >compiled with IPv6 support.
> >
> >Milter-Greylist works fine with emails from an IPv4 host but when an 
> >email from an IPv6 hosts arrives we get back this error messages:
> >
> >Mar 15 12:53:41 tyr milter-greylist: greylist: 
> >connect[140270896260864]: unknown family 54
> >Mar 15 12:53:41 tyr sendmail[13836]: v2FBrfvM013836: 
> >milter_sys_read(greylist): cmd read returned 0, expecting 5
> >Mar 15 12:53:41 tyr sendmail[13836]: v2FBrfvM013836: Milter 
> >(greylist): to error state
> >
> >Any ideas?

As already mentioned, but with some details on it ...

libmilter is probably statically linked to milter-greylist *and* is not
compiled with NETINET6 support. The libmilter client milter-greylist
tries to gather information about the incoming connection in module
engine.c (command "connectinfo").

Check with (ajust path as needed)
ldd /usr/bin/milter-greylist

Fedora-based systems seem to have linked their applications with the
static libmilter library.

I have a second milter too, which I compiled by myself. This one (similar
as in your case) has libmilter dynamically linked ...
ldd shows
        linux-vdso.so.1 =>  (0x00007fff575ff000)
        libmilter.so.1.0 => /usr/lib64/libmilter.so.1.0 (0x00007f2e96180000) <--- probably missing above
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00000038a8800000)
        libdb-4.8.so => /lib64/libdb-4.8.so (0x00000038ad200000)
        libc.so.6 => /lib64/libc.so.6 (0x00000036df000000)
        /lib64/ld-linux-x86-64.so.2 (0x00000036dec00000)

This may be the cause for the discrepancy you have seen.

Regards,

Johann
Show quoted textHide quoted text
> >
> >CU
> >
>

Re: Aw: Re: [milter-greylist] IPv6 and unknown family 54

2017-03-29 by John_Damm_S=c3=b8rensen

> define(`confMAPDEF', `-DNEWDB')
> define(`conf_sendmail_ENVDEF', `-DSASL=2')
> define(`confINCDIRS', `-I/usr/local/include')
> define(`confLIBDIRS', `-L/usr/local/lib')
> define(`conf_sendmail_LIBS', `-lsasl2')
> APPENDDEF(`confENVDEF', `-DMILTER')
> APPENDDEF(`confLIBS', `-ldb')
> APPENDDEF(`conf_sendmail_ENVDEF', `-DNETINET6')
> APPENDDEF(`conf_libmilter_ENVDEF', `-DNETINET6')
> APPENDDEF(`conf_mail_local_ENVDEF', `-DQUEUE_ONLY')
> APPENDDEF(`conf_sendmail_ENVDEF', `-DSTARTTLS')
> APPENDDEF(`conf_sendmail_ENVDEF', `-D_FFR_TLS_O_T')
> APPENDDEF(`conf_sendmail_ENVDEF', `-D_FFR_TLS_1')
> APPENDDEF(`conf_sendmail_ENVDEF', `-D_FFR_TLS_TOREK')
> APPENDDEF(`conf_sendmail_LIBS', `-lssl -lcrypto')
> the Mimedefang milter works fine with IPv6; this should not work as 
> well if libmilter would not support IPv6...
I wonder if the problem is in one of the underlying shared libraries.
milter-greylist needs these libraries:
   NEEDED               libcurl.so.4
   NEEDED               libGeoIP.so.1
   NEEDED               libpthread.so.0
   NEEDED               libspf2.so.2
   NEEDED               libresolv.so.2
   NEEDED               libmilter.so.1.0
   NEEDED               libc.so.6

mimedefang only needs these libraries:
   NEEDED               libmilter.so.1.0
   NEEDED               libpthread.so.0
   NEEDED               libnsl.so.1
   NEEDED               libc.so.6

Running strings on all of the above mentioned libraries reveals that 
libmilter.so is the only library with the error string:
  # strings /lib64/libmilter.so.1.0 | grep connect'.*'unknown
%s: connect[%ld]: unknown family %d

On my Fedora 25 milter-greylist is dynamically linked:
/usr/sbin/milter-greylist: ELF 64-bit LSB shared object, x86-64, version 
1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, 
for GNU/Linux 2.6.32, 
BuildID[sha1]=04cf4466583553af0ba55ffc3b910e813ae357b8, stripped

/john

Re: [milter-greylist] IPv6 and unknown family 54

2017-03-29 by John_Damm_S=c3=b8rensen

I was wondering whether you have LD_LIBRARY_PATH pointing to a copy of libmilter without IPv6 support?

/john

Show quoted textHide quoted text
Den 29-03-2017 kl. 16:50 skrev Johann Klasek johann@... [milter-greylist]:
\ufffd

On Wed, Mar 29, 2017 at 11:06:55AM +0200, John Damm S\ufffdrensen john@... [milter-greylist] wrote:
> From this thread it seems to be libmilter compiled without IPv6 support.
>
> https://www.mail-archive.com/dkim-milter-discuss@.../msg01042.html
> >we are using milter-greylist "version 4.6.2" on an CentOS 6 host with
> >sendmail 8.14.7.
> >The host has an IPv4 and an IPv6 address (dual stack); sendmail was
> >compiled with IPv6 support.
> >
> >Milter-Greylist works fine with emails from an IPv4 host but when an
> >email from an IPv6 hosts arrives we get back this error messages:
> >
> >Mar 15 12:53:41 tyr milter-greylist: greylist:
> >connect[140270896260864]: unknown family 54
> >Mar 15 12:53:41 tyr sendmail[13836]: v2FBrfvM013836:
> >milter_sys_read(greylist): cmd read returned 0, expecting 5
> >Mar 15 12:53:41 tyr sendmail[13836]: v2FBrfvM013836: Milter
> >(greylist): to error state
> >
> >Any ideas?

As already mentioned, but with some details on it ...

libmilter is probably statically linked to milter-greylist *and* is not
compiled with NETINET6 support. The libmilter client milter-greylist
tries to gather information about the incoming connection in module
engine.c (command "connectinfo").

Check with (ajust path as needed)
ldd /usr/bin/milter-greylist

Fedora-based systems seem to have linked their applications with the
static libmilter library.

I have a second milter too, which I compiled by myself. This one (similar
as in your case) has libmilter dynamically linked ...
ldd shows
linux-vdso.so.1 => (0x00007fff575ff000)
libmilter.so.1.0 => /usr/lib64/libmilter.so.1.0 (0x00007f2e96180000) <--- probably missing above
libpthread.so.0 => /lib64/libpthread.so.0 (0x00000038a8800000)
libdb-4.8.so => /lib64/libdb-4.8.so (0x00000038ad200000)
libc.so.6 => /lib64/libc.so.6 (0x00000036df000000)
/lib64/ld-linux-x86-64.so.2 (0x00000036dec00000)

This may be the cause for the discrepancy you have seen.

Regards,

Johann

> >
> >CU
> >
>


Re: [milter-greylist] IPv6 and unknown family 54

2017-03-29 by John_Damm_S=c3=b8rensen

If your libmilter has IPv6 support you should get this:

# strings /lib64/libmilter.so.1.0 | grep mi_inet_pton
mi_inet_pton
%s: connect[%ld]: mi_inet_pton failed

/john
Show quoted textHide quoted text
Den 29-03-2017 kl. 18:38 skrev John Damm S\ufffdrensen john@... [milter-greylist]:
\ufffd

I was wondering whether you have LD_LIBRARY_PATH pointing to a copy of libmilter without IPv6 support?

/john


Den 29-03-2017 kl. 16:50 skrev Johann Klasek johann@... [milter-greylist]:
\ufffd

On Wed, Mar 29, 2017 at 11:06:55AM +0200, John Damm S\ufffdrensen john@... [milter-greylist] wrote:
> From this thread it seems to be libmilter compiled without IPv6 support.
>
> https://www.mail-archive.com/dkim-milter-discuss@.../msg01042.html
> >we are using milter-greylist "version 4.6.2" on an CentOS 6 host with
> >sendmail 8.14.7.
> >The host has an IPv4 and an IPv6 address (dual stack); sendmail was
> >compiled with IPv6 support.
> >
> >Milter-Greylist works fine with emails from an IPv4 host but when an
> >email from an IPv6 hosts arrives we get back this error messages:
> >
> >Mar 15 12:53:41 tyr milter-greylist: greylist:
> >connect[140270896260864]: unknown family 54
> >Mar 15 12:53:41 tyr sendmail[13836]: v2FBrfvM013836:
> >milter_sys_read(greylist): cmd read returned 0, expecting 5
> >Mar 15 12:53:41 tyr sendmail[13836]: v2FBrfvM013836: Milter
> >(greylist): to error state
> >
> >Any ideas?

As already mentioned, but with some details on it ...

libmilter is probably statically linked to milter-greylist *and* is not
compiled with NETINET6 support. The libmilter client milter-greylist
tries to gather information about the incoming connection in module
engine.c (command "connectinfo").

Check with (ajust path as needed)
ldd /usr/bin/milter-greylist

Fedora-based systems seem to have linked their applications with the
static libmilter library.

I have a second milter too, which I compiled by myself. This one (similar
as in your case) has libmilter dynamically linked ...
ldd shows
linux-vdso.so.1 => (0x00007fff575ff000)
libmilter.so.1.0 => /usr/lib64/libmilter.so.1.0 (0x00007f2e96180000) <--- probably missing above
libpthread.so.0 => /lib64/libpthread.so.0 (0x00000038a8800000)
libdb-4.8.so => /lib64/libdb-4.8.so (0x00000038ad200000)
libc.so.6 => /lib64/libc.so.6 (0x00000036df000000)
/lib64/ld-linux-x86-64.so.2 (0x00000036dec00000)

This may be the cause for the discrepancy you have seen.

Regards,

Johann

> >
> >CU
> >
>



Aw: Re: [milter-greylist] IPv6 and unknown family 54

2017-03-30 by GMX VCU

Hi John,
Thanks for your support. I recompiled Sendmail with libmilter. After that I recompiled Milter-Greylist as well.
I restarted both, Sendmail and Milter-Greylist and it worked fine without errors.
The only thing I changed was the�site.config.m4 , I added this line:
APPENDDEF(`conf_libmilter_ENVDEF',`-DSM_CONF_POLL')
On this server several kernel updates were installed, perhaps this was the reason why Milter-Greylist stopped working with IPv6.
CU
Gesendet:�Donnerstag, 30. M�rz 2017 um 00:55 Uhr
Von:�"John Damm S�rensen john@... [milter-greylist]"
An:�milter-greylist@yahoogroups.com
Betreff:�Re: [milter-greylist] IPv6 and unknown family 54

If your libmilter has IPv6 support you should get this:

# strings /lib64/libmilter.so.1.0 | grep mi_inet_pton
mi_inet_pton
%s: connect[%ld]: mi_inet_pton failed

/john
Den 29-03-2017 kl. 18:38 skrev John Damm S�rensen john@... [milter-greylist]:

I was wondering whether you have LD_LIBRARY_PATH pointing to a copy of libmilter without IPv6 support?

/john

Den 29-03-2017 kl. 16:50 skrev Johann Klasek johann@... [milter-greylist]:

On Wed, Mar 29, 2017 at 11:06:55AM +0200, John Damm S�rensen john@... [milter-greylist] wrote:
> From this thread it seems to be libmilter compiled without IPv6 support.
>
> https://www.mail-archive.com/dkim-milter-discuss@.../msg01042.html
> >we are using milter-greylist "version 4.6.2" on an CentOS 6 host with
> >sendmail 8.14.7.
> >The host has an IPv4 and an IPv6 address (dual stack); sendmail was
> >compiled with IPv6 support.
> >
> >Milter-Greylist works fine with emails from an IPv4 host but when an
> >email from an IPv6 hosts arrives we get back this error messages:
> >
> >Mar 15 12:53:41 tyr milter-greylist: greylist:
> >connect[140270896260864]: unknown family 54
> >Mar 15 12:53:41 tyr sendmail[13836]: v2FBrfvM013836:
> >milter_sys_read(greylist): cmd read returned 0, expecting 5
> >Mar 15 12:53:41 tyr sendmail[13836]: v2FBrfvM013836: Milter
> >(greylist): to error state
> >
> >Any ideas?

As already mentioned, but with some details on it ...

libmilter is probably statically linked to milter-greylist *and* is not
compiled with NETINET6 support. The libmilter client milter-greylist
tries to gather information about the incoming connection in module
engine.c (command "connectinfo").

Check with (ajust path as needed)
ldd /usr/bin/milter-greylist

Fedora-based systems seem to have linked their applications with the
static libmilter library.

I have a second milter too, which I compiled by myself. This one (similar
as in your case) has libmilter dynamically linked ...
ldd shows
linux-vdso.so.1 => (0x00007fff575ff000)
libmilter.so.1.0 => /usr/lib64/libmilter.so.1.0 (0x00007f2e96180000) <--- probably missing above
libpthread.so.0 => /lib64/libpthread.so.0 (0x00000038a8800000)
libdb-4.8.so => /lib64/libdb-4.8.so (0x00000038ad200000)
libc.so.6 => /lib64/libc.so.6 (0x00000036df000000)
/lib64/ld-linux-x86-64.so.2 (0x00000036dec00000)

This may be the cause for the discrepancy you have seen.

Regards,

Johann

> >
> >CU
> >
>

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.