In this article you will learn how to set-up Zimbra in dual-stack IP mode.
Prerequisite
First install Zimbra using ipv4 only mode. You can check the current Zimbra IP mode by running the following command as the user`zimbra`:
Then verify if all entries required all present in /etc/hosts file. Here is an example:
Please make sure the localhost entries are as above for both ip4 and ip6 on your system before continuing!
In this example the server name is mail3.zimbra.tech, replace above example with your own domain name. For ip4 the server address for (mail3) your server can be the external IP or the LAN IP if you are in a NAT environment. For ip6 the server address for (mail3) your server should be the external IP in 99% of the cases.
Enable Zimbra in dual stack mode
Run the following command as the user zimbra:
zmiptool can take a bit of time. If zmiptool does not return any error, restart the Zimbra using:
In case zmiptool does return errors, fix them before restarting Zimbra.
Update zimbraMailTrustedIP
After adding ip6 make sure to update the zimbraMailTrustedIP setting see: https://wiki.zimbra.com/wiki/Secopstips#Log_the_correct_origination_IP
Enclose zimbraMailTrustedIP in square brackets (eg. [2a02:1800:1f2:3:0:0:f00:655]) the ipv6 address getting enclosed in zimbraMailTrustedIP should be in long format divided into 8 parts separated by colon. (eg. 2a02:1800:1f2:3::f00:655 should be written like [2a02:1800:1f2:3:0:0:f00:655]). The IPv6 addresses can be copy/pasted directly from mailbox.log.
Gotchas
If you use DNSMASQ or any other DNS cache on the Zimbra system, you need to restart DNSMASQ after changing /etc/hosts file using:
The post Configuring Zimbra in dual stack ip4/ip6 mode appeared first on Zimbra : Blog.