amavisd-new-2.8.1-rc1 release candidate is available

Mark Martinec Mark.Martinec+amavis at ijs.si
Mon Apr 29 01:04:31 CEST 2013


Ralf,

Thanks for trying out the new version!

> p0f-analyzer.pl fails here with:
>
> root at mail:/usr/src/amavisd-new-2.8.1-rc1# p0f -i eth0 'tcp dst port 25' 2>&1 | p0f-analyzer.pl 2345
> Unexpected keys - V6Only at /usr/sbin/p0f-analyzer.pl line 365
> root at mail:/usr/src/amavisd-new-2.8.1-rc1# /usr/sbin/p0f -l 'tcp dst port 25 and dst host 141.42.202.200' 2>&1 | /usr/sbin/p0f-analyzer.pl 2345
> Unexpected keys - V6Only at /usr/sbin/p0f-analyzer.pl line 365
>
> AH!
>            V6Only => 1,  # understood by IO::Socket::IP since 0.09
>
> Apr 28 19:08:59 mail amavis[17549]: socket module IO::Socket::IP, protocol families available: INET, INET6
> Apr 28 19:08:59 mail amavis[17549]: Module IO::Socket::INET6   2.69
> Apr 28 19:08:59 mail amavis[17549]: Module IO::Socket::IP      0.07
>
> Maybe I should update :)
>
> ii  libio-socket-ip-perl        0.07-1                      module for using IPv4 and IPv6 sockets in a protocol-independent way
>
> Phew, when building IO::Socket::IP from CPAN:
> Socket version 1.97 required--this is only version 1.94 at /root/IO-Socket-IP-0.21/blib/lib/IO/Socket/IP.pm line 27.
>
> And when I try to build IO::Socket:
> IO::Socket is a standard module. Will not build without --core-ok.
>
> Is there a workaround for users of Ubuntu LTS 12.04?
> (for now I just commented out the "V6Only => 1," line)

Good analysis and good workaround!

I guess I never noticed this because the systems where I tried it
either didn't have IO::Socket::IP at all (so it fell back to older
module IO::Socket::INET6 which doesn't mind unrecognized extra options),
or I had a recent enough version of perl with its sufficiently
recent core module Socket.

Your temporary solution / workaround is alright. If an absence of
V6Only=>1 would cause any problems, you'd notice this by failure
of binding to a second socket in case on wants to be able to
accept connections on both protocol families using two dedicated
sockets, e.g. one bound to 127.0.0.1 and the other to ::1 .

   Mark


More information about the amavis-users mailing list