手机用户2602879667 发布于 2017-05-14 14:04
环境centos7
yum install sendmail
systemctl enable sendmail
systemctl start sendmail
PHP代码

输出的是true,可测试了很多次,都没有收到邮件(163邮箱)。

sendmail 状态
[root@flxx2 web]# systemctl status sendmail
sendmail.service - Sendmail Mail Transport Agent
   Loaded: loaded (/usr/lib/systemd/system/sendmail.service; enabled)
   Active: active (running) since Thu 2015-08-20 08:04:54 CST; 22min ago
  Process: 14364 ExecStart=/usr/sbin/sendmail -bd $SENDMAIL_OPTS $SENDMAIL_OPTARG (code=exited, status=0/SUCCESS)
  Process: 14358 ExecStartPre=/etc/mail/make aliases (code=exited, status=0/SUCCESS)
  Process: 14355 ExecStartPre=/etc/mail/make (code=exited, status=0/SUCCESS)
 Main PID: 14368 (sendmail)
   CGroup: /system.slice/sendmail.service
           └─14368 sendmail: accepting connections

Aug 20 08:08:50 flxx2 sendmail[14399]: t7K08o9M014399: from=, size=304, class=0, nrcpts=1, msgid=<201508200008.t7K08o...7.0.0.1]
Aug 20 08:08:53 flxx2 sendmail[14401]: STARTTLS=client, relay=163mx01.mxmail.netease.com., version=TLSv1/SSLv3, verify=FAIL, cipher...=256/256
Aug 20 08:08:53 flxx2 sendmail[14401]: t7K08o9M014399: to=, ctladdr= (48/48), delay=00:00:03, xdela...vailable
Aug 20 08:08:53 flxx2 sendmail[14401]: t7K08o9M014399: t7K08r9M014401: DSN: Service unavailable
Aug 20 08:08:54 flxx2 sendmail[14401]: t7K08r9M014401: to=root, delay=00:00:01, xdelay=00:00:01, mailer=local, pri=31513, dsn=2.0.0, stat=Sent
Aug 20 08:19:52 flxx2 sendmail[14422]: t7K0JqeO014422: from=, size=304, class=0, nrcpts=1, msgid=<201508200019.t7K0Jq...7.0.0.1]
Aug 20 08:19:55 flxx2 sendmail[14424]: STARTTLS=client, relay=163mx01.mxmail.netease.com., version=TLSv1/SSLv3, verify=FAIL, cipher...=256/256
Aug 20 08:19:55 flxx2 sendmail[14424]: t7K0JqeO014422: to=, ctladdr= (48/48), delay=00:00:03, xdela...vailable
Aug 20 08:19:55 flxx2 sendmail[14424]: t7K0JqeO014422: t7K0JteO014424: DSN: Service unavailable
Aug 20 08:19:55 flxx2 sendmail[14424]: t7K0JteO014424: to=root, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31513, dsn=2.0.0, stat=Sent
Hint: Some lines were ellipsized, use -l to show in full.
[root@flxx2 web]#
1 个回答
  • 错误点在:
    DSN: Service unavailable

    2017-05-14 16:41 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
活跃用户
  • 1
    问道摩托
  • 2
    袁广龙976丶
  • 3
    逍遥子
  • 4
    亮仔
  • 5
    芙蓉花
  • 6
    作小die_syj
  • 7
    王丽珠景平怡伦_621
  • 8
    adfa3sd5f6a
  • 9
    欣欣大妮
  • 10
    sfasfs
PHP1.CN | 中国最专业的PHP中文社区 | PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | PHP问答
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved PHP1.CN 第一PHP社区 版权所有