Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Feb 2015 11:42:32 +0100
From:      Cedric Berger <cedric@precidata.com>
To:        misc@opensmtpd.org, freebsd-ports@freebsd.org
Subject:   opensmtpd 5.4.4 in freebsd 9 jail
Message-ID:  <54EC5598.9030805@precidata.com>

next in thread | raw e-mail | index | archive | help
Hello,

Since I upgraded my freebsd 9 jail with the latest opensmtpd 5.4.4_1,1 port,
smtp-out refuse to send any email to the outside world.

I've seen a similar issue reported by "Meutel" here, but with no apparent
solution:

http://blog.gmane.org/gmane.mail.opensmtpd.general/day=20150211, 2nd post.

Based on ktrace analysis, I believe the faulty code starts at line 210 of
getaddrinfo_async.c in libasr:

https://github.com/OpenSMTPD/libasr/blob/libasr-1.0.1/src/getaddrinfo_async.c

This code returns EAI_NONAME if there is no non-loopback interface 
configured
in the jail. This is my case, as a jail by default has only loopback
interfaces configured (this doesn't prevent connecting to the outside 
world).

If my analysis is correct, I believe that if no non-loopback interface is
found, the code should also (in a second step) consider loopback interfaces
when selecting IPv4 versus IPv6, instead of just bailing out.

That would make the code more robust.

Thanks,
Cedric

-- 
Cedric Berger
Precidata Sarl
Maladière 71c
2000 Neuchâtel
cedric@precidata.com
032 930 29 62
079 934 11 02




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54EC5598.9030805>