On 10/30/2013 02:42 PM, Wietse Venema wrote: > Andy Howell: >> I was using telnet on the host to test it out, ie >> >> telnet localhost 10025 >> >> That is resolving localhost to ::1. Doing: >> >> telnet 127.0.0.1 10025 >> >> works fine. > > Not to criticize you in particular, but why was IPv6 enabled in > main.cf? Is this a mis-feature of your Linux distribution? > > Postfix from postfix.org turns off IPv6 during installation, > to avoid these and other surprises. > > Wietse >
Wietse, Feel free to critcise! I setup postfix 5+ years, but didn't keep up with various upgrades. Upgrading the exising server is problematic at best. I'm putting together a new server, and thus re-learning my long lost postfix knowledge :) I'm using openSuSE 13.1 system, running as a virtual machine. I'm not married to that disto. I started with CentOS 6.4, but the postfix there is 3+ years old. I wanted an RPM based disto with more recent versions. SuSE 13.1 seemed reasonable. I find the debian package management too painful to work with. RPM is much easier when its necessary to build something from source. Postfix is listening to ip6: netstat -an|grep 10025 tcp 0 0 127.0.0.1:10025 0.0.0.0:* LISTEN tcp 0 0 ::1:10025 :::* LISTEN I should probably just disable ipv6 on the interfaces, as its not needed. In main.cf, I have inet_interfaces = all. The only place I see a ipv6 address in in mydestination. I added that while troubleshooting. mydestination = $myhostname, localhost.$mydomain, localhost, localhost[::1] I removed that and restarted postfix. Its still listening on ::1. I'm not sure why telnet is trying ipv6 first. In my /etc/hosts file, I have: grep localhost /etc/hosts 127.0.0.1 localhost ::1 localhost ipv6-localhost ipv6-loopback Thanks, Andy