How to fix error: 97: Address family not supported by protocol on Zimbra
When starting the zimbra service, you may encounter these error messages:
Starting nginx…nginx: [emerg] socket() [::]:7143 failed (97: Address family not supported by protocol) failed. Starting mta…Failed. postalias: fatal: bad string length 0 < 1: inet_protocols = postfix failed to start
The “97: Address family not supported by protocol” error on Zimbra Collaboration Server occurs because Zimbra (7.1.2) uses IPv6 instead of IPv4, while IPv6 is not enabled on the server. To fix “97: Address family not supported by protocol”, run the commands below.
-
To change an individual server:
[zimbra@EzyMailHosting ~]$ zmprov -l ms `zmhostname` zimbraIPMode ipv4 -
To change the global level:
[zimbra@EzyMailHosting ~]$ zmprov -l mcf zimbraIPMode ipv4
After running the commands above, restart the zimbra service:
[zimbra@EzyMailHosting ~]$ zmcontrol restart