开发者社区> 问答> 正文

阿里云通过mail命令无法发送邮件

在系统里通过邮件发告警信息,无法连接外部服务器的25端口,如:
Sep  2 22:16:10 monitor postfix/smtp[17582]: connect to mxbiz1.qq.com[163.177.89.176]:25: Connection timed out
Sep  2 22:16:14 monitor postfix/smtp[18061]: connect to mxbiz2.qq.com[163.177.89.176]:25: Connection timed out
[root@monitor nagios]# telnet 163.177.89.176 25
Trying 163.177.89.176...
^C
[root@monitor nagios]# telnet 163.177.89.176 25
Trying 163.177.89.176...
^C
[root@monitor nagios]# ping 163.177.89.176
PING 163.177.89.176 (163.177.89.176) 56(84) bytes of data.
64 bytes from 163.177.89.176: icmp_seq=1 ttl=52 time=6.27 ms
64 bytes from 163.177.89.176: icmp_seq=2 ttl=52 time=6.26 ms
^C
--- 163.177.89.176 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 6.266/6.268/6.271/0.079 ms
[root@monitor nagios]# telnet 211.155.27.23 25
Trying 211.155.27.23...
telnet: connect to address 211.155.27.23: Connection timed out
[root@monitor nagios]# ping 211.155.27.23
PING 211.155.27.23 (211.155.27.23) 56(84) bytes of data.
64 bytes from 211.155.27.23: icmp_seq=1 ttl=50 time=6.97 ms
64 bytes from 211.155.27.23: icmp_seq=2 ttl=50 time=6.46 ms
^C
--- 211.155.27.23 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 6.461/6.718/6.975/0.257 ms
[root@monitor nagios]# 

展开
收起
gzidc 2018-09-02 22:26:46 2041 0
1 条回答
写回答
取消 提交回答
  • 全栈工程师、十年公益项目义务程序员
    管理控制台,安全管控,申请解封25端口
    2018-09-02 22:30:11
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
阿里云云原生 Serverless 技术实践营 PPT 演讲 立即下载
阿里云产品十月刊 立即下载
基于阿里云构建博学谷平台实时湖仓 立即下载