【问题标题】:why I can't send mail to gmail after configuring send mail to use gmail as SMTP mail relay为什么我在配置发送邮件以使用 gmail 作为 SMTP 邮件中继后无法向 gmail 发送邮件
【发布时间】:2014-06-25 22:01:33
【问题描述】:

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

http://www.mavinerc.com/home/2012/04/29/howto-configure-linux-sendmail-to-use-gmail-as-smtp-mail-relay/

我相信(不确定)我已经使用gmail idpassword 成功配置了sendmail,现在我可以只向本地域发送邮件,例如我的域名是example.com,所以我可以发送邮件给example.com 的任何用户,但如果我尝试发送到其他域说user@gmail.comuser@yahoo.com 我收到错误消息Deferred : Connection timed out with alt4.smtp.in.goo

我尝试了pingtelent 两个端口25587 都失败了,我什至无法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 相关?我应该联系网络管理员吗?

【问题讨论】:

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

标签: linux email networking sendmail centos6


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 2018-09-13
    • 2018-11-13
    • 2014-09-13
    • 2021-04-06
    • 2017-02-09
    • 1970-01-01
    • 2017-11-14
    • 2015-07-25
    • 2015-06-29
    相关资源
    最近更新 更多