Gentoo Archives: gentoo-user

From: "José Romildo Malaquias" <j.romildo@×××××.com>
To: Gilles Chehade <gilles@×××××.org>
Cc: misc@×××××××××.org, gentoo-user@l.g.o
Subject: [gentoo-user] Re: opensmtp fatal error: socket: address family not supported
Date: Sat, 18 Jan 2014 00:50:00
Message-Id: 20140118004940.GC10180@jrm
1 On Thu, Jan 16, 2014 at 08:47:06AM +0100, Gilles Chehade wrote:
2 > On Wed, Jan 15, 2014 at 10:21:54PM -0200, Jos? Romildo Malaquias wrote:
3 > > Hello.
4 > >
5 > > When trying opensmtpd on my gentoo linux system, I am getting the
6 > > following error message:
7 > >
8 > > # smtpd -vn
9 > > configuration OK
10 > >
11 > > # smtpd -vd
12 > > debug: init ssl-tree
13 > > info: OpenSMTPD 201401061555p1 starting
14 > > debug: bounce warning after 4h
15 > > debug: using "fs" queue backend
16 > > debug: using "ramqueue" scheduler backend
17 > > debug: using "ram" stat backend
18 > > info: startup [debug mode]
19 > > mfa: building simple chains...
20 > > mfa: building complex chains...
21 > > mfa: done building complex chains
22 > > mfa: done building default chain
23 > > debug: queue: done loading queue into scheduler
24 > > libevent 2.0.21-stable (epoll)
25 > > debug: parent_send_config_ruleset: reloading
26 > > debug: parent_send_config_mfa: reloading
27 > > debug: parent_send_config: configuring smtp
28 > > debug: mfa ready
29 > > fatal: smtpd: socket: Address family not supported by protocol
30 > > warn: lka -> smtp: pipe closed
31 > > warn: parent -> smtp: imsg_read: Connection reset by peer
32 > > warn: queue -> smtp: pipe closed
33 > > fatal: exiting: Connection reset by peer
34 > > warn: mfa -> smtp: pipe closed
35 > > warn: control -> smtp: pipe closed
36 > > warn: mta -> lka: pipe closed
37 > > warn: mda -> lka: pipe closed
38 > > warn: scheduler -> queue: pipe closed
39 > >
40 > > Any clues on how to fix this?
41 > >
42 >
43 > Hi,
44 >
45 > Can you provide ifconfig output + configuration file ?
46
47 After some searching, I have found that the problem is related to ipv6,
48 which is not used in my system. And the file /etc/hosts had a linei
49
50 #::1 localhost
51
52 After removing this line from /etc/hosts opensmtpd works as expected.
53
54 Romildo