On Thu, Jan 16, 2014 at 08:47:06AM +0100, Gilles Chehade wrote: > On Wed, Jan 15, 2014 at 10:21:54PM -0200, Jos? Romildo Malaquias wrote: > > Hello. > > > > When trying opensmtpd on my gentoo linux system, I am getting the > > following error message: > > > > # smtpd -vn > > configuration OK > > > > # smtpd -vd > > debug: init ssl-tree > > info: OpenSMTPD 201401061555p1 starting > > debug: bounce warning after 4h > > debug: using "fs" queue backend > > debug: using "ramqueue" scheduler backend > > debug: using "ram" stat backend > > info: startup [debug mode] > > mfa: building simple chains... > > mfa: building complex chains... > > mfa: done building complex chains > > mfa: done building default chain > > debug: queue: done loading queue into scheduler > > libevent 2.0.21-stable (epoll) > > debug: parent_send_config_ruleset: reloading > > debug: parent_send_config_mfa: reloading > > debug: parent_send_config: configuring smtp > > debug: mfa ready > > fatal: smtpd: socket: Address family not supported by protocol > > warn: lka -> smtp: pipe closed > > warn: parent -> smtp: imsg_read: Connection reset by peer > > warn: queue -> smtp: pipe closed > > fatal: exiting: Connection reset by peer > > warn: mfa -> smtp: pipe closed > > warn: control -> smtp: pipe closed > > warn: mta -> lka: pipe closed > > warn: mda -> lka: pipe closed > > warn: scheduler -> queue: pipe closed > > > > Any clues on how to fix this? > > > > Hi, > > Can you provide ifconfig output + configuration file ?
After some searching, I have found that the problem is related to ipv6, which is not used in my system. And the file /etc/hosts had a linei #::1 localhost After removing this line from /etc/hosts opensmtpd works as expected. Romildo