postfix发送gmail等邮箱出现Network is unreachable解决方案
用postfix发送邮件到gmail之类的邮箱出现
connect to gmail-smtp-in.l.google.com[2404:6800:4008:c03::1a]:25: Network is unreachable
提示,但我服务器没有IPv6的地址。
需要修改postfix的inet_protocols参数为ipv4.
# Enable both IPv4 and/or IPv6: ipv4, ipv6, all.
inet_protocols = ipv4
然后重启postfix服务即可。
发表评论
Want to join the discussion?Feel free to contribute!