Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/email/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 为什么我能';配置send mail以使用gmail作为SMTP邮件中继后,请不要将邮件发送到gmail_Linux_Email_Networking_Sendmail_Centos6 - Fatal编程技术网

Linux 为什么我能';配置send mail以使用gmail作为SMTP邮件中继后,请不要将邮件发送到gmail

Linux 为什么我能';配置send mail以使用gmail作为SMTP邮件中继后,请不要将邮件发送到gmail,linux,email,networking,sendmail,centos6,Linux,Email,Networking,Sendmail,Centos6,我正在使用centos 6.4,并按照本博客中给出的说明安装了sendmail 我相信(不确定)我已经用gmail id和password成功地配置了sendmail,现在我只能向本地域发送邮件,比如说我的域名是example.com,所以我可以向example.com的任何用户发送邮件,但如果我试图发送到其他域,请说user@gmail.com或user@yahoo.com我收到错误消息延迟:与alt4.smtp.in.goo的连接超时 我尝试了ping和telent两个端口25和587都失

我正在使用centos 6.4,并按照本博客中给出的说明安装了sendmail

我相信(不确定)我已经用
gmail id
password
成功地配置了sendmail,现在我只能向本地域发送邮件,比如说我的域名是
example.com
,所以我可以向
example.com
的任何用户发送邮件,但如果我试图发送到其他域,请说
user@gmail.com
user@yahoo.com
我收到错误消息
延迟:与alt4.smtp.in.goo的连接超时

我尝试了
ping
telent
两个端口
25
587
都失败了,我甚至无法ping到google.com

     $ ping google.com
     PING google.com (74.125.236.174) 56(84) bytes of data.
     ^C
     --- google.com ping statistics ---
     37 packets transmitted, 0 received, 100% packet loss, time 36287ms

     $ telnet smtp.gmail.com 25
     Trying 74.125.25.108...
     Trying 74.125.25.109...
     Trying 2607:f8b0:400e:c03::6c...
     telnet: Unable to connect to remote host: Network is unreachable

     $ telnet smtp.gmail.com 587
     Trying 74.125.25.108...
     Trying 74.125.25.109...
     Trying 2607:f8b0:400e:c03::6c...
     telnet: Unable to connect to remote host: Network is unreachable

可能是什么问题?是否与我的主机上的iptables相关?我应该联系网络管理员吗?

完全同意-存在网络问题。 1.尝试检查您的IP地址和默认GW。 2.ping默认GW,然后重试:
traceroute google.com

您目前的问题不是sendmail。底层网络连接或配置肯定有问题。这个问题更可能是在。