无法通过php邮件,AWS ubuntu实例,sendmail发送邮件

时间:2018-11-12 19:58:06

标签: php email amazon-ec2 server sendmail

我有AWS ubuntu实例。我正在尝试通过PHP邮件功能发送简单邮件。邮件功能返回true,但邮件既未传递到gmail也未传递到我的主机。我也尝试通过命令发送电子邮件,但这也不起作用。我在这里附加sendmail服务状态。请帮助我解决此问题。

  1. gmail的发送状态:

Nov 12 14:41:23 ip-172-31-51-198 sm-mta[21446]: STARTTLS=client, relay=gmail-smtp-in.l.google.com., version=TLSv1.2, verify=FAIL, cipher=ECDHE-RSA-AES128-GCM-SHA256, bits=128/128 Nov 12 14:41:23 ip-172-31-51-198 sm-mta[21446]: wACJfNOM021444: to=<mymail@gmail.com>, ctladdr=<www-data@ip-172-31-51-198.ec2.internal> (33/33), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, Nov 12 14:41:23 ip-172-31-51-198 sm-mta[21446]: wACJfNOM021444: wACJfNOM021446: DSN: Service unavailable Nov 12 14:41:23 ip-172-31-51-198 sm-mta[21446]: wACJfNOM021446: to=<www-data@ip-172-31-51-198.ec2.internal>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30000, dsn=2.0.0, stat=Sent

  1. 发送mydomain.com的邮件状态

    Nov 12 14:40:02 ip-172-31-51-198 systemd[1]: Stopped LSB: powerful, efficient, and scalable Mail Transport Agent. Nov 12 14:40:02 ip-172-31-51-198 systemd[1]: Starting LSB: powerful, efficient, and scalable Mail Transport Agent... Nov 12 14:40:02 ip-172-31-51-198 sendmail[21348]: * Starting Mail Transport Agent (MTA) sendmail Nov 12 14:40:02 ip-172-31-51-198 sm-mta[21388]: starting daemon (8.15.2): SMTP+queueing@00:10:00 Nov 12 14:40:04 ip-172-31-51-198 sendmail[21348]: ...done. Nov 12 14:40:04 ip-172-31-51-198 systemd[1]: Started LSB: powerful, efficient, and scalable Mail Transport Agent. Nov 12 14:40:17 ip-172-31-51-198 sm-mta[21408]: wACJeHlI021408: <myemail@mydomain.com>... User unknown Nov 12 14:40:17 ip-172-31-51-198 sm-mta[21408]: wACJeHlI021408: from=<www-data@ip-172-31-51-198.ec2.internal>, size=596, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1] Nov 12 14:40:17 ip-172-31-51-198 sm-mta[21408]: wACJeHlK021408: from=<>, size=2592, class=0, nrcpts=1, msgid=<201811121940.wACJeHpa021407@ip-172-31-51-198.ec2.internal>, proto=ESMTP, daemon=MTA, r Nov 12 14:40:17 ip-172-31-51-198 sm-mta[21409]: wACJeHlK021408: to=<www-data@ip-172-31-51-198.ec2.internal>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32835, dsn=2.0.0, stat=Sent

0 个答案:

没有答案
相关问题