开发者社区 问答 正文

sendmail无法发送邮件

sendmail无法发送邮件
[root@xxxx /etc] 
# echo "mail content"|mail -s  "send_mail_test"  1045246825@qq.com
日志报错信息如下:
 sendmail[27878]: wAEA4cZ2027878: to=1045246825@qq.com, ctladdr=root(1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30230, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (wAEA4dHC027934 Message accepted for delivery)

sendmail[27805]: wAE96G40023539: to=<1045246825@qq.com>, ctladdr=<root@xxxx> (1000/1000), delay=01:04:53, xdelay=00:00:00, mailer=esmtp, pri=300506, relay=mx1.qq.com., dsn=4.0.0, stat=Deferred: Connection timed out with mx1.qq.com.

dns没有问题

展开
收起
l5211314121 2018-11-14 18:19:05 1896 分享
分享
版权
举报
1 条回答
写回答
取消 提交回答
  • 旺旺:nectar2。
    您好,现在开通的ECS实例,基本上都不允许连接外网的25端口了。您可以尝试通过其它方法来发出邮件,如这个:

    在Debian 8 系统里为 postfix 配置外部smtp服务器发邮件 - https://bbs.aliyun.com/read/574322.html?
    2018-11-14 18:38:19 举报
    赞同 评论

    评论

    全部评论 (0)

    登录后可评论