On Wed, 22 Feb 2017, Peter wrote:
Yes, at least for a linux box and possibly other unix hosts. You will
want to make sure that /etc/host.conf has the setting, "multi on", then
you can list multiple IPv4 and IPv6 addresses for the same name in
/etc/hosts and use those names in your master.cf file instead of the IP
addresses, so for example:
I already use multiple domain names per IP in /etc/hosts and it also works
fine with Apache. Setting "multi on" did not change anything.
main.cf:
inet_interfaces = localhost, mail.stoecker.eu
Just remove the above, so it defaults to, "all".
That assumes that mail.stoecker.eu is the only external IPv6 address.
The advantage of IPv6 is that each service can have an own address, so
that server has many addresses and they should not offer port 25 or 587
:-)
As above works fine for binding mail.stoecker.eu I rechecked everything.
The name localhost is only assigned to IPv4 and I tested most stuff with
localhost (easier name to type :-). Works now (still without "multi on").
It's disturbing that the localhost definition default is system depending.
Seems the newer systems don't assign ::1 to localhost anymore to reduce
trouble with old software. Because of the fallbacks to IPv4 I didn't
recognize this until now, as everything works fine.
inet_protocols = ipv4, ipv6
Same, just remove this and let it default to, "all".
IPv6 wasn't default always. Removed it now.
Now I only need to switch the remaining old users submitting with SASL on
port 25 to submit port 587 and all is perfect (until I find the next issue
:-)
Ciao
--
http://www.dstoecker.eu/ (PGP key available)