开发者社区> 问答> 正文

centos7.3不能发邮件postfixHost or domain name not found.


Welcome to Alibaba Cloud Elastic Compute Service !


[root@chao1gu ~]# mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
447016223C    28351 Fri Jun 16 11:03:59  root@cha**u.com
(Host or domain name not found. Name service error for name=126.com type=MX: Host not found, try again)
                                         mei** guo@126.com


-- 27 Kbytes in 1 Request.
[root@chao1gu ~]# (Host or domain name not found. Name service error for name=126.com type=MX: Host not found, try again)
-bash: Host: command not found
[root@chao1gu ~]# vim /etc/resolv.conf
[root@chao1gu ~]# vim /etc/hosts
[root@chao1gu ~]# reboot

展开
收起
bunengxiugai 2017-06-16 11:26:13 8230 0
2 条回答
写回答
取消 提交回答
  • 回 1楼魔咒626的帖子
    root@chao1gu ~]# service postfix status -l
    Redirecting to /bin/systemctl status  -l postfix.service
    ● postfix.service - Postfix Mail Transport Agent
       Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled)
       Active: active (running) since Fri 2017-06-16 11:20:16 CST; 7min ago
    Main PID: 745 (master)
       CGroup: /system.slice/postfix.service
               ├─ 745 /usr/libexec/postfix/master -w
               ├─ 746 pickup -l -t unix -u
               ├─ 747 qmgr -l -t unix -u
               ├─2126 smtp -t unix -u
               ├─2147 showq -t unix -u
               ├─2152 cleanup -z -t unix -u
               ├─2153 trivial-rewrite -n rewrite -t unix -u
               ├─2154 smtp -t unix -u
               └─2156 bounce -z -n defer -t unix -u

    Jun 16 11:25:46   postfix/smtp[2126]: connect to 126mx02.mxmail.netease.com[220.181.15.153]:25: Connection timed out
    Jun 16 11:26:16 c  postfix/smtp[2126]: connect to 126mx03.mxmail.netease.com[220.181.15.192]:25: Connection timed out
    Jun 16 11:26:46 c  postfix/smtp[2126]: connect to 126mx02.mxmail.netease.com[220.181.15.152]:25: Connection timed out
    Jun 16 11:27:16 c  postfix/smtp[2126]: connect to 126mx01.mxmail.netease.com[220.181.15.138]:25: Connection timed out
    Jun 16 11:27:17 c  postfix/pickup[746]: A862A62258: uid=0 from=<root>
    Jun 16 11:27:17 c  postfix/cleanup[2152]: A862A62258: message-id=<20170616032717.A862A62258@cha**.com>
    Jun 16 11:27:17 c  postfix/qmgr[747]: A862A62258: from=<root@cha**u.com>, size=28352, nrcpt=1 (queue active)
    Jun 16 11:27:46 c  postfix/smtp[2126]: connect to 126mx01.mxmail.netease.com[220.181.15.136]:25: Connection timed out
    Jun 16 11:27:46 c  postfix/smtp[2126]: 447016223C: to=<mei** uo@126.com>, relay=none, delay=1427, delays=1277/0.01/150/0, dsn=4.4.1, status=deferred (connect to 126mx01.mxmail.netease.com[220.181.15.136]:25: Connection timed out)
    Jun 16 11:27:47 chao1gu.com postfix/smtp[2154]: connect to mx3.qq.com[183.57.48.35]:25: Connection timed out

    -------------------------

    Recentos7.3不能发邮件postfixHost or domain name not found.
    域名解析过了的
    2017-06-16 11:32:14
    赞同 展开评论 打赏
  • 需要到dns解析邮件的相关协议。

    -------------------------

    我的意思是你在万网控制台那里有没有把邮件的解析加进去。

    -------------------------

    不是域名,是邮件的POP和SMTP协议。

    2017-06-16 11:30:37
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
CentOS Nginx PHP JAVA 多语言镜像使用手 立即下载
CentOS Nginx PHP JAVA多语言镜像使用手册 立即下载
低代码开发师(初级)实战教程 立即下载