Discussion:
amavisd failing to connect to ::1
(too old to reply)
Bob Jones
2014-12-02 06:29:00 UTC
Permalink
Hello,

I am not receiving any emails for couple of weeks because of the following error in amavisd startup -

Dec 1 20:26:40 host amavis[1300]: starting. /usr/sbin/amavisd at host amavisd-new-2.9.1 (20140627), Unicode aware
Dec 1 20:26:40 host amavis[1301]: (!)Net::Server: 2014/12/01-20:26:40 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

The server has been configured not to have ipv6, which has not changed for a while. Nor is 10024 used any anyone else. Assuming that if I disable ipv6 loopback for amavisd this will go away, how can I "tell" amavisd to not do any ipv6 loopback connection at all and just listen on ipv4 only ?

Thanks
Patrick Ben Koetter
2014-12-02 08:00:08 UTC
Permalink
Post by Bob Jones
Hello,
I am not receiving any emails for couple of weeks because of the following error in amavisd startup -
Dec 1 20:26:40 host amavis[1300]: starting. /usr/sbin/amavisd at host amavisd-new-2.9.1 (20140627), Unicode aware
Dec 1 20:26:40 host amavis[1301]: (!)Net::Server: 2014/12/01-20:26:40 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
The server has been configured not to have ipv6, which has not changed for a while. Nor is 10024 used any anyone else. Assuming that if I disable ipv6 loopback for amavisd this will go away, how can I "tell" amavisd to not do any ipv6 loopback connection at all and just listen on ipv4 only ?
@listen_sockets = (
'127.0.0.1:10024',
"$MYHOME/amavisd.sock"
);
Post by Bob Jones
Thanks
--
[*] sys4 AG

https://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein
Bob Jones
2014-12-03 05:15:36 UTC
Permalink
Patrick, that did not work. I still see the same error. Any other ideas ?


--------------------------------------------
On Tue, 12/2/14, Patrick Ben Koetter <***@sys4.de> wrote:

Subject: Re: amavisd failing to connect to ::1
To: amavis-***@amavis.org
Date: Tuesday, December 2, 2014, 12:00 AM
Post by Bob Jones
Hello,
I am not receiving any emails for couple
of weeks because of the following error in amavisd startup
-
Post by Bob Jones
Dec  1
20:26:40 host amavis[1300]: starting. /usr/sbin/amavisd at
host amavisd-new-2.9.1 (20140627), Unicode aware
(!)Net::Server: 2014/12/01-20:26:40 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
Post by Bob Jones
The server has been
configured not to have ipv6, which has not changed for a
while. Nor is 10024 used any anyone else. Assuming that if I
disable ipv6 loopback for amavisd this will go away,  how
can I "tell" amavisd to not do any ipv6 loopback
connection at all and just listen on ipv4 only ?


@listen_sockets = (
   
'127.0.0.1:10024',
   
"$MYHOME/amavisd.sock"
    );
Thanks

--
[*] sys4 AG

https://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft:
München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc
Schiffbauer
Aufsichtsratsvorsitzender:
Florian Kirstein
Quanah Gibson-Mount
2014-12-03 06:05:42 UTC
Permalink
--On Tuesday, December 02, 2014 9:15 PM -0800 Bob Jones
Post by Bob Jones
Patrick, that did not work. I still see the same error. Any other ideas ?
Do you have an entry for ::1 in /etc/hosts?

--Quanah



--

Quanah Gibson-Mount
Platform Architect
Zimbra, Inc.
--------------------
Zimbra :: the leader in open source messaging and collaboration
Noel Jones
2014-12-03 06:11:32 UTC
Permalink
Find everywhere you have configured "localhost" in your amavisd
config. Replace "localhost" with "127.0.0.1".
Post by Bob Jones
Patrick, that did not work. I still see the same error. Any other ideas ?
--------------------------------------------
Subject: Re: amavisd failing to connect to ::1
Date: Tuesday, December 2, 2014, 12:00 AM
Post by Bob Jones
Hello,
I am not receiving any emails for couple
of weeks because of the following error in amavisd startup
-
Post by Bob Jones
Dec 1
20:26:40 host amavis[1300]: starting. /usr/sbin/amavisd at
host amavisd-new-2.9.1 (20140627), Unicode aware
(!)Net::Server: 2014/12/01-20:26:40 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
Post by Bob Jones
The server has been
configured not to have ipv6, which has not changed for a
while. Nor is 10024 used any anyone else. Assuming that if I
disable ipv6 loopback for amavisd this will go away, how
can I "tell" amavisd to not do any ipv6 loopback
connection at all and just listen on ipv4 only ?
@listen_sockets = (
'127.0.0.1:10024',
"$MYHOME/amavisd.sock"
);
Thanks
--
[*] sys4 AG
https://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München
München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc
Schiffbauer
Florian Kirstein
Quanah Gibson-Mount
2014-12-03 19:41:34 UTC
Permalink
--On Wednesday, December 03, 2014 12:11 AM -0600 Noel Jones
Post by Noel Jones
Find everywhere you have configured "localhost" in your amavisd
config. Replace "localhost" with "127.0.0.1".
Or just remove ::1 localhost from /etc/hosts, since he explicitly said he
doesn't want to support ipv6. Then it'll stop trying to bind to ::1.

--Quanah



--

Quanah Gibson-Mount
Platform Architect
Zimbra, Inc.
--------------------
Zimbra :: the leader in open source messaging and collaboration
Benny Pedersen
2014-12-03 22:49:04 UTC
Permalink
Post by Quanah Gibson-Mount
Post by Noel Jones
Find everywhere you have configured "localhost" in your amavisd
config. Replace "localhost" with "127.0.0.1".
Or just remove ::1 localhost from /etc/hosts, since he explicitly said
he doesn't want to support ipv6. Then it'll stop trying to bind to
::1.
and his version of glibc do prefer ipv6 first, this can be changed in
/etc/gai.conf
Bob Jones
2014-12-05 06:24:30 UTC
Permalink
Yes. I do not want to mess with that however since there are some obvious users of ipv6 on this server.

Each daemon has been tweaked not to use ipv6 unless things broke (and we reverted back).

--------------------------------------------
On Tue, 12/2/14, Quanah Gibson-Mount <***@zimbra.com> wrote:

Subject: Re: amavisd failing to connect to ::1
To: "Bob Jones" <***@yahoo.com>, amavis-***@amavis.org
Date: Tuesday, December 2, 2014, 10:05 PM

--On Tuesday, December
02, 2014 9:15 PM -0800 Bob Jones
Post by Bob Jones
Patrick, that
did not work. I still see the same error. Any other ideas
?

Do you have an
entry for ::1 in /etc/hosts?

--Quanah
Bob Jones
2014-12-05 06:25:46 UTC
Permalink
There is no reference to localhost in the amavisd.conf.

There is one line that uses localhost, but that line is commented.

@mynetworks had a reference to ::1 but removing that and doing a "service amavisd restart" did not seem to change this behavior either. There were
few other ipv6 addressed in @mynetworks and removing those did not help either.

--------------------------------------------
On Tue, 12/2/14, Noel Jones <***@megan.vbhcs.org> wrote:

Subject: Re: amavisd failing to connect to ::1
To: amavis-***@amavis.org
Date: Tuesday, December 2, 2014, 10:11 PM

Find everywhere you have
configured "localhost" in your amavisd
config.  Replace "localhost" with
"127.0.0.1".
Bob Jones
2014-12-05 06:27:53 UTC
Permalink
Benny,

I think that is a bit too extreme experiment and will affect pretty much anything running on the box.

--------------------------------------------
On Wed, 12/3/14, Benny Pedersen <***@junc.eu> wrote:

Subject: Re: amavisd failing to connect to ::1
To: amavis-***@amavis.org
Date: Wednesday, December 3, 2014, 2:49 PM

Quanah Gibson-Mount skrev den
Post by Quanah Gibson-Mount
Post by Noel Jones
Find everywhere you have configured "localhost" in
your amavisd
Post by Quanah Gibson-Mount
Post by Noel Jones
config.  Replace "localhost" with
"127.0.0.1".
Post by Quanah Gibson-Mount
Or just remove ::1 localhost from /etc/hosts, since he
explicitly said
Post by Quanah Gibson-Mount
he doesn't want to support ipv6.  Then it'll stop
trying to bind to
Post by Quanah Gibson-Mount
::1.
and his version of glibc do prefer ipv6 first, this can be
changed in
/etc/gai.conf
Patrick Ben Koetter
2014-12-05 07:16:18 UTC
Permalink
Post by Bob Jones
There is no reference to localhost in the amavisd.conf.
There is one line that uses localhost, but that line is commented.
@mynetworks had a reference to ::1 but removing that and doing a "service amavisd restart" did not seem to change this behavior either. There were
I suggest you increase the log level and try to find out at which stage
amavisd calls for ::1. Just like the others I anticipate a reference to
localhost or some other hostname that locally resolves to ::1.
Post by Bob Jones
--------------------------------------------
Subject: Re: amavisd failing to connect to ::1
Date: Tuesday, December 2, 2014, 10:11 PM
Find everywhere you have
configured "localhost" in your amavisd
config.  Replace "localhost" with
"127.0.0.1".
--
[*] sys4 AG

https://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein
Benny Pedersen
2014-12-05 11:08:19 UTC
Permalink
Post by Bob Jones
I think that is a bit too extreme experiment and will affect pretty
much anything running on the box.
there is a number of options to make it incorrect :=)

http://askubuntu.com/questions/309461/how-to-disable-ipv6-permanently

compile of own kernel can just disable ipv6, but make a ipv6 only, only
is imho supported in freebsd

no matter of how, one get dirty hands
Mauricio Jose T. Tecles
2014-12-05 13:40:29 UTC
Permalink
----- Mensagem de Bob Jones <***@yahoo.com> ---------
Data: Thu, 4 Dec 2014 22:25:46 -0800
De: Bob Jones <***@yahoo.com>
Assunto: Re: amavisd failing to connect to ::1
Post by Bob Jones
There is no reference to localhost in the amavisd.conf.
There is one line that uses localhost, but that line is commented.
@mynetworks had a reference to ::1 but removing that and doing a
"service amavisd restart" did not seem to change this behavior
either. There were
help either.
If there is no ::1 in your configuration and amavis is trying to use
it, it is using a default configuration since you use IPv6 in your
system. Try configuring variables that are not in your configuration
file, like:

@mynetworks = qw( 127.0.0.0/8 );
$inet_socket_bind = '127.0.0.1';
@inet_acl = qw( 127.0.0.1 );
$forward_method = 'smtp:[127.0.0.1]:10025'; # 10025 or whatever port
number you use (10024?)
$requeue_method = 'smtp:[127.0.0.1]:25';
$notify_method = 'smtp:[127.0.0.1]:10025'; # 10025 or whatever port
number you use (10024?)

How it looks your MTA configuration to use amavis?

Mauricio
Post by Bob Jones
--------------------------------------------
Subject: Re: amavisd failing to connect to ::1
Date: Tuesday, December 2, 2014, 10:11 PM
Find everywhere you have
configured "localhost" in your amavisd
config.  Replace "localhost" with
"127.0.0.1".
----- Final da mensagem de Bob Jones <***@yahoo.com> -----




Maurício José T. Tecles
Núcleo de Informática
Instituto de Biofísica Carlos Chagas Filho - UFRJ
***@biof.ufrj.br
Tel.: (21) 3938-6526 ou 3938-6544
--
This mail was scanned by BitDefender
For more information please visit http://www.bitdefender.com/frams/
b***@gmail.com
2014-12-28 06:31:54 UTC
Permalink
Bob Jones於 2014年12月2日星期二UTC+8下午2時32分19秒寫道:
Post by Bob Jones
Hello,
I am not receiving any emails for couple of weeks because of the following error in amavisd startup -
Dec 1 20:26:40 host amavis[1300]: starting. /usr/sbin/amavisd at host amavisd-new-2.9.1 (20140627), Unicode aware
Dec 1 20:26:40 host amavis[1301]: (!)Net::Server: 2014/12/01-20:26:40 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
The server has been configured not to have ipv6, which has not changed for a while. Nor is 10024 used any anyone else. Assuming that if I disable ipv6 loopback for amavisd this will go away, how can I "tell" amavisd to not do any ipv6 loopback connection at all and just listen on ipv4 only ?
Thanks
$inet_socket_bind = '127.0.0.1';

add this in your amavisd.conf will do.
j***@gmail.com
2016-03-14 00:22:35 UTC
Permalink
Post by b***@gmail.com
Bob Jones於 2014年12月2日星期二UTC+8下午2時32分19秒寫道:
Post by Bob Jones
Hello,
I am not receiving any emails for couple of weeks because of the following error in amavisd startup -
Dec 1 20:26:40 host amavis[1300]: starting. /usr/sbin/amavisd at host amavisd-new-2.9.1 (20140627), Unicode aware
Dec 1 20:26:40 host amavis[1301]: (!)Net::Server: 2014/12/01-20:26:40 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
The server has been configured not to have ipv6, which has not changed for a while. Nor is 10024 used any anyone else. Assuming that if I disable ipv6 loopback for amavisd this will go away, how can I "tell" amavisd to not do any ipv6 loopback connection at all and just listen on ipv4 only ?
Thanks
$inet_socket_bind = '127.0.0.1';
add this in your amavisd.conf will do.
Yes this fixes the issue, also after applying the latest Perl-Net-Server update.
Loading...