Re: opensmtpd appears to be IPv4-only

2020-07-26 Thread Harald Dunkel

Hi Slavik,

On 2020-07-22 18:26, Slavik Svyrydiuk wrote:

I do not have any issues with IPv6.
It works for me.

Ubuntu
==
opensmtpd 6.0.3p1-1ubuntu0.2

smtpd.conf lines:
listen on 0.0.0.0 port 25
listen on ::0 port 25

$ netstat -lnt | grep ':25'
tcp0  0 0.0.0.0:25  0.0.0.0:*   LISTEN
tcp6   0  0 :::25   :::*LISTEN



Nice hint, but AFAIU your smtpd is listening on all interfaces.
Thats not the case on my host.


Regards
Harri



Re: opensmtpd appears to be IPv4-only

2020-07-22 Thread Slavik Svyrydiuk
I do not have any issues with IPv6.
It works for me.

Ubuntu
==
opensmtpd 6.0.3p1-1ubuntu0.2

smtpd.conf lines:
listen on 0.0.0.0 port 25
listen on ::0 port 25

$ netstat -lnt | grep ':25'
tcp0  0 0.0.0.0:25  0.0.0.0:*   LISTEN
tcp6   0  0 :::25   :::*LISTEN


OpenBSD
===
version: OpenSMTPD 6.7.0

smtpd.conf lines:
listen on all tls pki example.pki


On Wed, 22 Jul 2020 16:34:25 +0200
Harald Dunkel  wrote:

> Hi folks,
> 
> I've got a problem with IPv6 support for opensmtpd 6.7.1p1 on
> Debian: Apparently opensmtpd seems to ignore IPv6 after a reboot.
> 
> My smtpd.conf says
> 
> :
> xname = "mailhost.example.com"
> pki $xname cert   "/etc/mail/ssl/mailhost.example.com.cert"
> pki $xname key"/etc/mail/ssl/mailhost.example.com.key"
> 
> listen on lo  tls pki $xname
> listen on eth0tls pki $xname
> :
> 
> lsof -p shows that smtpd is listening only on the IPv4 address on
> eth0. The IPv6 addresses bound to eth0 (link-local and global) are
> ignored.
> 
> If I *restart* smtpd, then it is listening on IPv6 as well, up to
> the next prefix change propagated via router advertisement. The
> IPv6 address with the new prefix is ignored. When the old prefix
> expires, then opensmtpd is back to IPv4-only. I have to restart
> it again.
> 
> Can anybody reproduce this?
> 
> 
> Every helpful comment is highly appreciated.
> 
> Regards
> Harri
> 


-- 
with best regards,
Slavik Svyrydiuk



Re: opensmtpd appears to be IPv4-only

2020-07-22 Thread epektasis
On Wed, Jul 22, 2020 at 04:34:25PM +0200, Harald Dunkel wrote:
> Hi folks,
> 
> I've got a problem with IPv6 support for opensmtpd 6.7.1p1 on
> Debian: Apparently opensmtpd seems to ignore IPv6 after a reboot.
> 
> My smtpd.conf says
> 
> :
> xname = "mailhost.example.com"
> pki $xname cert   "/etc/mail/ssl/mailhost.example.com.cert"
> pki $xname key"/etc/mail/ssl/mailhost.example.com.key"
> 
> listen on lo  tls pki $xname
> listen on eth0tls pki $xname
> :
> 
> lsof -p shows that smtpd is listening only on the IPv4 address on
> eth0. The IPv6 addresses bound to eth0 (link-local and global) are
> ignored.
> 
> If I *restart* smtpd, then it is listening on IPv6 as well, up to
> the next prefix change propagated via router advertisement. The
> IPv6 address with the new prefix is ignored. When the old prefix
> expires, then opensmtpd is back to IPv4-only. I have to restart
> it again.
> 
> Can anybody reproduce this?
> 
> 
> Every helpful comment is highly appreciated.
> 
> Regards
> Harri
> 
> 
This is probably a useless comment, but check your ipv6 setting in /etc/hosts.
Not having ipv6 available, I cannot attempt to reproduce your situation.  But
I recall previously that opensmtpd erred when /etc/hosts had generic debian
ipv6 addresses and I lacked such addresses; pounding those out cleared the
problem for me.  Definitely a long shot for a possible obverse setting but
it's something to check.
ep.




opensmtpd appears to be IPv4-only

2020-07-22 Thread Harald Dunkel

Hi folks,

I've got a problem with IPv6 support for opensmtpd 6.7.1p1 on
Debian: Apparently opensmtpd seems to ignore IPv6 after a reboot.

My smtpd.conf says

:
xname = "mailhost.example.com"
pki $xname cert "/etc/mail/ssl/mailhost.example.com.cert"
pki $xname key  "/etc/mail/ssl/mailhost.example.com.key"

listen on lotls pki $xname
listen on eth0  tls pki $xname
:

lsof -p shows that smtpd is listening only on the IPv4 address on
eth0. The IPv6 addresses bound to eth0 (link-local and global) are
ignored.

If I *restart* smtpd, then it is listening on IPv6 as well, up to
the next prefix change propagated via router advertisement. The
IPv6 address with the new prefix is ignored. When the old prefix
expires, then opensmtpd is back to IPv4-only. I have to restart
it again.

Can anybody reproduce this?


Every helpful comment is highly appreciated.

Regards
Harri