Page MenuHomeDevCentral

Postfix on ysul.nasqueron.org doesn't listen on IPv6
Open, LowPublic

Description

$ telnet -4 ysul.nasqueron.org 25
Trying 212.83.187.132...
Connected to ysul.nasqueron.org.
Escape character is '^]'.
220 ysul.nasqueron.org ESMTP Postfix
HELO orin.dereckson.drake
250 ysul.nasqueron.org
QUIT
221 2.0.0 Bye
Connection closed by foreign host.
$ telnet ysul.nasqueron.org 25
Trying 2001:470:1f13:9e1:0:c0ff:ee:1...

Event Timeline

This comment was removed by dereckson.
dereckson renamed this task from Mail server on ysul.nasqueron.org doesn't listen on IPv6 to Inet server (and so postfix) on ysul.nasqueron.org doesn't listen on IPv6.Apr 1 2017, 08:58
dereckson renamed this task from Inet server (and so postfix) on ysul.nasqueron.org doesn't listen on IPv6 to Postfix on ysul.nasqueron.org doesn't listen on IPv6.

Configuration change

Per http://www.postfix.org/IPV6_README.html:

diff --git a/postfix/main.cf b/postfix/main.cf
index 33f51c1..32a5629 100644
--- a/postfix/main.cf
+++ b/postfix/main.cf
@@ -672,6 +672,8 @@ sample_directory = /usr/local/etc/postfix
 # readme_directory: The location of the Postfix README files.
 #
 readme_directory = /usr/local/share/doc/postfix
-inet_protocols = ipv4
+inet_protocols = ipv4, ipv6
 meta_directory = /usr/local/libexec/postfix
 shlib_directory = /usr/local/lib/postfix
+
+smtp_bind_address6 = 2001:470:1f13:9e1:0:c0ff:ee:1

Mitigated result

Listens to localhost, not world currently:

Ysul
$ sockstat | grep postfix | grep ':25'
postfix  smtpd      92724 6  tcp4   *:25                  *:*
postfix  smtpd      92724 7  tcp6   *:25                  *:*
$ telnet -6 localhost 25
Trying ::1...
Connected to localhost.
Escape character is '^]'.
220 ysul.nasqueron.org ESMTP Postfix
HELO localhost
250 ysul.nasqueron.org
QUIT
221 2.0.0 Bye
Connection closed by foreign host.