Disabling IPv6 in postfix is not the best solution, clients will still try to connect via IPv6. A better solution is to disable IPv6 of the box in the DNS, but this is a bit tricky, I had to dig around a bit.
- edit
/etc/mailinabox.conf
, clearing the PUBLIC_IPV6 setting (#
comments do not work here) - restart the box or the daemon (
service mailinabox restart
), so that the new environment gets loaded - force the update of the zone files by
curl -s -d --force --user <user>:<pass> http://127.0.0.1:10222/dns/update
(looked up intools/dns_update
. Await response “updated DNS:xyz” ). Or make a dummy change in the custom DNS via web interface. - wait for DNS propagation
Why so complicated? Is there an easier way if e.g. the IP would change?
Edit: Had to do it again after update.