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. From dino.edwards at mydirectmail.net Thu Apr 17 19:50:34 2025 From: dino.edwards at mydirectmail.net (Dino Edwards) Date: Thu, 17 Apr 2025 13:50:34 -0400 Subject: Amavis issue with IPv6 In-Reply-To: <829d812f-b734-44aa-8192-f0f54a3be918@arcsin.de> References: <829d812f-b734-44aa-8192-f0f54a3be918@arcsin.de> Message-ID: <039c01dbafc1$38b1ffe0$aa15ffa0$@mydirectmail.net> Thanks. Setting "$inet_socket_bind = '0.0.0.0';" resolved the issue. Additionally setting "@inet_acl = qw(127.0.0.1 172.16.32.0/24);" locked it down. -----Original Message----- From: amavis-users On Behalf Of Damian Sent: Wednesday, April 16, 2025 3:06 AM To: amavis-users at amavis.org Subject: Re: Amavis issue with IPv6 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. From dino.edwards at mydirectmail.net Thu Apr 17 19:55:19 2025 From: dino.edwards at mydirectmail.net (Dino Edwards) Date: Thu, 17 Apr 2025 13:55:19 -0400 Subject: no anti-spam and no anti-virus code loaded Message-ID: <039e01dbafc1$e2085f30$a6191d90$@mydirectmail.net> Hello, Receiving the following errors in amavis: 2025-04-17T11:28:42.644581-04:00 fe042be7120a amavis[494]: (00494-01) no anti-virus code loaded, skipping virus_scan 2025-04-17T11:28:42.644608-04:00 fe042be7120a amavis[494]: (00494-01) no anti-spam code loaded, skipping spam_scan As a result no spam headers are inserted into the e-mail messages and I'm assuming no antivirus scans are performed either. Both ClamAV and Spamassassin are installed. At the very least, I was under the impression that Amavis integrated with Spamassassin with no special configuration. Not really sure where to check for any issues. The logs don't seem to indicate any problems. I would appreciate some help. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From xavier at groumpf.org Fri Apr 18 08:24:23 2025 From: xavier at groumpf.org (Xavier Humbert) Date: Fri, 18 Apr 2025 08:24:23 +0200 Subject: amavisd refuse to start after upgrade to perl 5.40 Message-ID: <0242f357-d03f-48eb-9dfe-b367205bd4c7@groumpf.org> Hi, Just upgraded my perl from 5.36 to 5.40 then amavis fails to start : > [root at numenor ~]# amavisd > panic: XSUB Time::HiRes::gettimeofday (HiRes.c) failed to extend arg > stack: base=826d8e018, sp=826d8e030, hwm=826d8e028 I've forced upgrade of all perl recursive dependencies, including p5-Time-HiRes, obviously This is FreeBSD 13.5 Regards, Xavier -- Xavier HUMBERT - Unix/Win/MacOSX Sysadmin/Network Engineer https://www.amdh.fr From herbert at gojira.at Fri Apr 18 09:46:39 2025 From: herbert at gojira.at (Herbert J. Skuhra) Date: Fri, 18 Apr 2025 09:46:39 +0200 Subject: amavisd refuse to start after upgrade to perl 5.40 In-Reply-To: <0242f357-d03f-48eb-9dfe-b367205bd4c7@groumpf.org> References: <0242f357-d03f-48eb-9dfe-b367205bd4c7@groumpf.org> Message-ID: On Fri, Apr 18, 2025 at 08:24:23AM +0200, Xavier Humbert wrote: > Hi, > > Just upgraded my perl from 5.36 to 5.40 then amavis fails to start : > > > [root at numenor ~]# amavisd > > panic: XSUB Time::HiRes::gettimeofday (HiRes.c) failed to extend arg > > stack: base=826d8e018, sp=826d8e030, hwm=826d8e028 > > I've forced upgrade of all perl recursive dependencies, including > p5-Time-HiRes, obviously > > This is FreeBSD 13.5 1. Is devel/p5-Time-HiRes installed or not? 2. Does it make a difference if the port is installed or not? (I've installed security/amavisd-new (still 2.12.3) on FreeBSD 15-CURRENT with perl5.40.2 and I don't get this error when I simply start amavisd.) From me at junc.eu Fri Apr 18 13:10:47 2025 From: me at junc.eu (Benny Pedersen) Date: Fri, 18 Apr 2025 13:10:47 +0200 Subject: amavisd refuse to start after upgrade to perl 5.40 In-Reply-To: <0242f357-d03f-48eb-9dfe-b367205bd4c7@groumpf.org> References: <0242f357-d03f-48eb-9dfe-b367205bd4c7@groumpf.org> Message-ID: <91369caf89dbc534cb4f2307438224d0@junc.eu> Xavier Humbert skrev den 2025-04-18 08:24: > Just upgraded my perl from 5.36 to 5.40 then amavis fails to start : > >> [root at numenor ~]# amavisd >> panic: XSUB Time::HiRes::gettimeofday (HiRes.c) failed to extend arg >> stack: base=826d8e018, sp=826d8e030, hwm=826d8e028 > > I've forced upgrade of all perl recursive dependencies, including > p5-Time-HiRes, obviously > > This is FreeBSD 13.5 in my memmory in freebsd 4.9 it was resolved with perl-cleaner --all is that now brokken ? :=) with gentoo it works with perl-cleaner --all From xavier at groumpf.org Fri Apr 18 14:59:07 2025 From: xavier at groumpf.org (Xavier Humbert) Date: Fri, 18 Apr 2025 14:59:07 +0200 Subject: amavisd refuse to start after upgrade to perl 5.40 In-Reply-To: <91369caf89dbc534cb4f2307438224d0@junc.eu> References: <0242f357-d03f-48eb-9dfe-b367205bd4c7@groumpf.org> <91369caf89dbc534cb4f2307438224d0@junc.eu> Message-ID: <2648c0e9-4840-4f6f-9912-8609e5e6afbb@groumpf.org> Le 18/04/2025 13:10, Benny Pedersen a ?crit : > Xavier Humbert skrev den 2025-04-18 08:24: > >> Just upgraded my perl from 5.36 to 5.40 then amavis fails to start : >> >>> [root at numenor ~]# amavisd >>> panic: XSUB Time::HiRes::gettimeofday (HiRes.c) failed to extend arg >>> stack: base=826d8e018, sp=826d8e030, hwm=826d8e028 >> >> I've forced upgrade of all perl recursive dependencies, including >> p5-Time-HiRes, obviously >> >> This is FreeBSD 13.5 > > in my memmory in freebsd 4.9 it was resolved with perl-cleaner --all > > is that now brokken ? :=) > > with gentoo it works with perl-cleaner --all > Since perl 5.40 exhibits other problem, I downgraded to 5.36.3, which was my previous (working) version. Now th big pain is to reinstall 472 dependant ports ;-) Xavier -- Xavier HUMBERT - Unix/Win/MacOSX Sysadmin/Network Engineer https://www.amdh.fr From amavis at arcsin.de Sat Apr 26 12:48:31 2025 From: amavis at arcsin.de (Damian) Date: Sat, 26 Apr 2025 12:48:31 +0200 Subject: no anti-spam and no anti-virus code loaded In-Reply-To: <039e01dbafc1$e2085f30$a6191d90$@mydirectmail.net> References: <039e01dbafc1$e2085f30$a6191d90$@mydirectmail.net> Message-ID: <45e03c0f-27df-4b48-a351-3a92473a6d2b@arcsin.de> > 2025-04-17T11:28:42.644581-04:00 fe042be7120a amavis[494]: (00494-01) no > anti-virus code loaded, skipping virus_scan > > 2025-04-17T11:28:42.644608-04:00 fe042be7120a amavis[494]: (00494-01) no > anti-spam code loaded, skipping spam_scan Is this Debian? Then have a look at [1]. [1] /etc/amavis/conf.d/15-content_filter_mode From uhlar at fantomas.sk Sat Apr 26 18:20:08 2025 From: uhlar at fantomas.sk (Matus UHLAR - fantomas) Date: Sat, 26 Apr 2025 18:20:08 +0200 Subject: no anti-spam and no anti-virus code loaded In-Reply-To: <45e03c0f-27df-4b48-a351-3a92473a6d2b@arcsin.de> References: <039e01dbafc1$e2085f30$a6191d90$@mydirectmail.net> <45e03c0f-27df-4b48-a351-3a92473a6d2b@arcsin.de> Message-ID: >>2025-04-17T11:28:42.644581-04:00 fe042be7120a amavis[494]: >>(00494-01) no anti-virus code loaded, skipping virus_scan >> >>2025-04-17T11:28:42.644608-04:00 fe042be7120a amavis[494]: >>(00494-01) no anti-spam code loaded, skipping spam_scan On 26.04.25 12:48, Damian wrote: >Is this Debian? Then have a look at [1]. > >[1] /etc/amavis/conf.d/15-content_filter_mode but make changes in /etc/amavis/conf.d/50-user -- Matus UHLAR - fantomas, uhlar at fantomas.sk ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. I feel like I'm diagonally parked in a parallel universe.