From dino.edwards at mydirectmail.net Mon Apr 14 14:43:18 2025 From: dino.edwards at mydirectmail.net (Dionyssios Edwards) Date: Mon, 14 Apr 2025 08:43:18 -0400 Subject: Amavis issue with IPv6 Message-ID: Having an issue with Amavis starting when I set ?$inet_socket_bind = undef;? in an attempt to get Amavis to listen to all interfaces instead of just localhost. The logs show the following errors: 2025-04-13T18:29:06.865009-04:00 873b46bd964d amavis[492]: Net::Server: Resolved [*]:10021 to [::]:10021, IPv6 2025-04-13T18:29:06.865038-04:00 873b46bd964d amavis[492]: Net::Server: Not including resolved host [0.0.0.0] IPv4 because it will be handled by [::] IPv6 2025-04-13T18:29:06.865189-04:00 873b46bd964d amavis[492]: Net::Server: Resolved [*]:10030 to [::]:10030, IPv6 2025-04-13T18:29:06.865209-04:00 873b46bd964d amavis[492]: Net::Server: Not including resolved host [0.0.0.0] IPv4 because it will be handled by [::] IPv6 2025-04-13T18:29:06.867601-04:00 873b46bd964d amavis[492]: Net::Server: Binding to UNIX socket file "/var/lib/amavis/amavisd.sock" 2025-04-13T18:29:06.867787-04:00 873b46bd964d amavis[492]: Net::Server: Binding to TCP port 10021 on host :: with IPv6 2025-04-13T18:29:06.868000-04:00 873b46bd964d amavis[492]: (!)Net::Server: 2025/04/13-22:29:06 Can't connect to TCP port 10021 on :: [Invalid argument]\n at line 66 in file /usr/share/perl5/Net/Server/Proto/TCP.pm 2025-04-13T18:29:06.868050-04:00 873b46bd964d amavis[492]: sd_notify (no socket): STOPPING=1\nSTATUS=Server rundown, notifying child processes. 2025-04-13T18:29:06.868076-04:00 873b46bd964d amavis[492]: Net::Server: 2025/04/13-22:29:06 Server closing! There seems to be an issue trying to bind to IPv6 [::] which is the equivalent of Ipv4 0.0.0.0. I guess the question is why does Amavis insist on using IPv6 instead of IPv4. I don?t have any IPv6 addresses in /etc/hosts. Additionally, how can I go about resolving this. I would appreciate some help on this. -------------- next part -------------- An HTML attachment was scrubbed... URL: From amavis at arcsin.de Wed Apr 16 09:06:14 2025 From: amavis at arcsin.de (Damian) Date: Wed, 16 Apr 2025 09:06:14 +0200 Subject: Amavis issue with IPv6 In-Reply-To: References: Message-ID: <829d812f-b734-44aa-8192-f0f54a3be918@arcsin.de> It looks like your system has general IPv6 support, but not every interface has an address. > root at 84ef201c4887:~# /usr/sbin/amavisd debug > ... > Apr 16 06:59:31.912 mail.example.com /usr/sbin/amavisd[107]: Net::Server: Binding to TCP port 10024 on host :: with IPv6 > Apr 16 06:59:31.912 mail.example.com /usr/sbin/amavisd[107]: (!)Net::Server: 2025/04/16-06:59:31 Can't connect to TCP port 10024 on :: [Invalid argument]\n at line 66 in file /usr/share/perl5/Net/Server/Proto/TCP.pm > Apr 16 06:59:31.912 mail.example.com /usr/sbin/amavisd[107]: sd_notify (no socket): STOPPING=1\nSTATUS=Server rundown, notifying child processes. > root at 84ef201c4887:~# grep . /proc/sys/net/ipv6/conf/*/disable_ipv6 > /proc/sys/net/ipv6/conf/all/disable_ipv6:0 > /proc/sys/net/ipv6/conf/default/disable_ipv6:0 > /proc/sys/net/ipv6/conf/eth0/disable_ipv6:1 > /proc/sys/net/ipv6/conf/lo/disable_ipv6:0 > root at 84ef201c4887:~# echo 0 > /proc/sys/net/ipv6/conf/eth0/disable_ipv6 > root at 84ef201c4887:~# /usr/sbin/amavisd debug > ... > Apr 16 07:01:17.112 mail.example.com /usr/sbin/amavisd[122]: Net::Server: Beginning prefork (2 processes) > Apr 16 07:01:17.112 mail.example.com /usr/sbin/amavisd[122]: sd_notify (no socket): STATUS=Starting child process(es), ready for work.