You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Alyssa Ross <hi...@alyssa.is> on 2019/10/06 10:31:43 UTC

Re: bad arg length for Socket::unpack_sockaddr_in

"@lbutlr" <kr...@kreme.com> writes:

>> May 21 23:20:56 mail spamd[22787]: spamd: error: Bad arg length for Socket::unpack_sockaddr_in, length is 28, should be 16 at /usr/local/lib/perl5/5.28/mach/Socket.pm line 848.
>> May 21 23:20:56 mail spamd[22787]:  , continuing at /usr/local/bin/spamd line 1419.
>
> I have completely removed SpamAssassin and spamass-milter and
> reinstalled them via ports and there has been no change. Same error,
> no additional logging.

Did you ever figure this out?  I'm having the same issue on NixOS Linux
with perl 5.30.0 and spamassassin 3.4.2.

Re: bad arg length for Socket::unpack_sockaddr_in

Posted by Alyssa Ross <hi...@alyssa.is>.
Eric Wong <e...@80x24.org> writes:

> Missing the Socket6 module?  Length of 28 indicates an IPv6 address.

Yes, that was it!  Thanks very much, Eric.

Re: bad arg length for Socket::unpack_sockaddr_in

Posted by Eric Wong <e...@80x24.org>.
Alyssa Ross <hi...@alyssa.is> wrote:
> "@lbutlr" <kr...@kreme.com> writes:
> 
> >> May 21 23:20:56 mail spamd[22787]: spamd: error: Bad arg length for Socket::unpack_sockaddr_in, length is 28, should be 16 at /usr/local/lib/perl5/5.28/mach/Socket.pm line 848.
> >> May 21 23:20:56 mail spamd[22787]:  , continuing at /usr/local/bin/spamd line 1419.
> >
> > I have completely removed SpamAssassin and spamass-milter and
> > reinstalled them via ports and there has been no change. Same error,
> > no additional logging.
> 
> Did you ever figure this out?  I'm having the same issue on NixOS Linux
> with perl 5.30.0 and spamassassin 3.4.2.

Missing the Socket6 module?  Length of 28 indicates an IPv6 address.

Fwiw, Perl 5.14+ has Socket::unpack_sockaddr_in6 in the 'Socket'
module; but maybe SpamAssassin prefers to keep the same codepath
for all Perl 5.x it supports so it requires the non-standard
Socket6 module.