jump to navigation

amavis on non-existent ipv6 error 14 January 2015

Posted by Maulvi Bakar in : Linux,System , add a comment

amavis-2A weird issue became noticeable when I no longer receiving mails.

Apparently all mails are stuck in the Postfix ‘mailq’. Tell tale clue was –

Jan 13 07:15:23 www postfix/error[13255]: 08EAA1AD2C: to=<<my email addr-removed!>>, relay=none, delay=63574, delays=63572/1.2/0/0.26, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)

Sure enough, port 10024 was not active. Amavisd is dead!

Enabling debug logging shows below –


Jan 13 07:54:05 www amavis[16106]: Net::Server: Binding to TCP port 10024 on host 127.0.0.1 with IPv4
Jan 13 07:54:05 www amavis[16106]: Net::Server: Binding to TCP port 10024 on host ::1 with IPv6
Jan 13 07:54:05 www amavis[16106]: (!)Net::Server: 2015/01/13-07:54:05 Can't connect to TCP port 10024 on ::1 [Cannot assign requested address]\n at line 68 inĀ file /usr/share/perl5/vendor_perl/Net/Server/Proto/TCP.pm
Jan 13 07:54:05 www amavis[16106]: Net::Server: 2015/01/13-07:54:05 Server closing!

No, I disabled ipv6 for my systems.

How do I ensure ipv6 is not enabled in amavisd ?

echo '$inet_socket_bind = '127.0.0.1';' >> /etc/amavisd/amavisd.conf

A restart of Amavisd is required after that.

DISCLAIMER: Your mileage vary..

Enjoy!

π