Postfix不发送电子邮件问题

我们试图运行后缀,只是尝试一个简单的命令来发送电子邮件

$ echo "test-1" | mail -s "TEst1" ****@gmail.com 

以下是mailq的结果。

 C110D80654 462 Sat Dec 29 13:33:34 [email protected] (Host or domain name not found. Name service error for name=gmail.com type=MX: Host not found, try again) 

Tcp traceroute结果在5停止

 tcptraceroute -n alt2.gmail-smtp-in.l.google.com 587 Selected device eth0, address 192.168.2.10, port 60399 for outgoing packets Tracing the path to alt2.gmail-smtp-in.l.google.com (74.125.140.27) on TCP port 587 (submission), 30 hops max 1 192.168.2.1 1.241 ms 0.228 ms 0.227 ms 2 219.93.218.177 36.792 ms 37.132 ms 31.471 ms 3 219.93.217.77 29.509 ms 33.459 ms 32.473 ms 4 10.55.37.18 74.351 ms 38.381 ms 40.092 ms 5 * * * tcptraceroute -n alt2.gmail-smtp-in.l.google.com 25 Selected device eth0, address 192.168.2.10, port 54214 for outgoing packets Tracing the path to alt2.gmail-smtp-in.l.google.com (74.125.137.26) on TCP port 25 (smtp), 30 hops max 1 192.168.2.1 0.317 ms 0.234 ms 0.224 ms 2 219.93.218.177 31.854 ms 33.550 ms 32.728 ms 3 * 

最好的部分我可以百胜更新,安装,甚至做wget。 这里可能是什么问题?

这是postifx无法parsinggmail.com:

C110D80654 462 Sat Dec 29 13:33:34 [email protected](主机或域名未find名称服务错误名称= gmail.com

这是能够parsingalt2.gmail-smtp-in.l.google.com的系统parsing器:

追踪到alt2.gmail-smtp-in.l.google.com(74.125.140.27)的path

您正在chroot(master.cf中的第三列)中运行postfix smtp(8),并且没有将chroot的resolv.conf与系统resolv.conf同步:

 cp /etc/resolv.conf /var/spool/postfix/etc/resolv.conf