On Wed, 22 Feb 2017, Peter wrote:
On 22/02/17 09:18, Dirk Stöcker wrote:
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 :-)
The issue is that you're forcing it to do a DNS lookup for
mail.stoecker.eu, a DNS lookup that could fail, btw, and cause problems.
No. As said, the name mail.stoecker.eu is defined in /etc/hosts. If it
would lookup DNS it would fail always, as the external and internal IPv4
addresses don't match :-)
If you're specifying the IP in master.cf anyways then postfix will only
bind to what is in master.cf even if this is set to all. Try it and
check your binds with netstat or ss.
Yes, for 25. But for 587 the inet_interfaces will still be used, as these
aren't separated in master.cf.
Ciao
--
http://www.dstoecker.eu/ (PGP key available)