在一台没有 VPS 关闭了 IPv6 后, 原来正常使用的 Postfix 不能使用, 重新启动也失败, 先查看一下错误信息:
- # systemctl status postfix
看到以下错误:
fatal: parameter inet_interfaces: no local interface found for ::1
看来是关闭了 IPv6 导致这个问题.
解决方法
开启 Postfix 的设定档:
- # vi /etc/postfix/main.cf
找到
inet_interfaces = localhost
改成
inet_protocols = all
储存变更后重新启动 Postfix 便可以解决:
- # systemctl start postfix