Amazon AWS PHP和sendmail,未发送的电子邮件

时间:2015-12-06 12:08:19

标签: php amazon-ec2 sendmail

我们刚刚将客户的网站空间移动到具有弹性IP的亚马逊EC2实例。

我在这里已经非常深入了,因为我对linux操作系统并不太了解

该网站已转移,目前正在我们的测试域http://base5.eu

下工作

除了用于发送电子邮件,标准联系表格和申请表格的几种表格外,一切都按预期运作。

php脚本使用sendmail来处理电子邮件的发送。

重要的是要注意,Instance只提供网站,域名的实际邮件帐户都是google邮件帐户。

我们已经设置了指向该域的Google邮件服务器的MX记录。 dns设置为1和1,没有添加PTR记录的选项。

目前正在我们的测试域base5.eu上测试该网站。

似乎发送邮件正在发送邮件,但邮件永远不会被发送。

查看/ var / mail / root时,消息中包含以下内容:

From MAILER-DAEMON@ip-172-31-14-25.eu-west-1.compute.internal  Sat Dec  5 13:42:34 2015
Return-Path: <MAILER-DAEMON@ip-172-31-14-25.eu-west-1.compute.internal>
Received: from localhost (localhost)
        by ip-172-31-14-25.eu-west-1.compute.internal (8.14.4/8.14.4) id tB5DgYhQ007848;
        Sat, 5 Dec 2015 13:42:34 GMT
Date: Sat, 5 Dec 2015 13:42:34 GMT
From: Mail Delivery Subsystem <MAILER-DAEMON@ip-172-31-14-25.eu-west-1.compute.internal>
Message-Id: <201512051342.tB5DgYhQ007848@ip-172-31-14-25.eu-west-1.compute.internal>
To: <apache@ip-172-31-14-25.eu-west-1.compute.internal>
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
        boundary="tB5DgYhQ007848.1449322954/ip-172-31-14-25.eu-west-1.compute.internal"
Subject: Returned mail: see transcript for details
Auto-Submitted: auto-generated (failure)

This is a MIME-encapsulated message

--tB5DgYhQ007848.1449322954/ip-172-31-14-25.eu-west-1.compute.internal

The original message was received at Sat, 5 Dec 2015 13:42:33 GMT
from localhost [127.0.0.1]

   ----- The following addresses had permanent fatal errors -----
<dizzy@base5designs.co.uk>
    (reason: 554-kundenserver.de (mxeue104) Nemesis ESMTP Service not available)

   ----- Transcript of session follows -----
... while talking to mx00.1and1.co.uk.:
<<< 554-kundenserver.de (mxeue003) Nemesis ESMTP Service not available
<<< 554-No SMTP service
<<< 554-Bad DNS PTR resource record.
<<< 554 For explanation visit http://postmaster.1and1.com/en/error-messages?ip=52.19.134.10&c=rdns
... while talking to mx01.1and1.co.uk.:
<<< 554-kundenserver.de (mxeue104) Nemesis ESMTP Service not available
<<< 554-No SMTP service
<<< 554-Bad DNS PTR resource record.
<<< 554 For explanation visit http://postmaster.1and1.com/en/error-messages?ip=52.19.134.10&c=rdns
554 5.0.0 Service unavailable

--tB5DgYhQ007848.1449322954/ip-172-31-14-25.eu-west-1.compute.internal
Content-Type: message/delivery-status

Reporting-MTA: dns; ip-172-31-14-25.eu-west-1.compute.internal
Received-From-MTA: DNS; localhost
Arrival-Date: Sat, 5 Dec 2015 13:42:33 GMT

Final-Recipient: RFC822; dizzy@base5designs.co.uk
Action: failed
Status: 5.5.0
Diagnostic-Code: SMTP; 554-kundenserver.de (mxeue104) Nemesis ESMTP Service not available
Last-Attempt-Date: Sat, 5 Dec 2015 13:42:34 GMT

--tB5DgYhQ007848.1449322954/ip-172-31-14-25.eu-west-1.compute.internal
Content-Type: message/rfc822

Return-Path: <apache@ip-172-31-14-25.eu-west-1.compute.internal>
Received: from ip-172-31-14-25.eu-west-1.compute.internal (localhost [127.0.0.1])
        by ip-172-31-14-25.eu-west-1.compute.internal (8.14.4/8.14.4) with ESMTP id tB5DgXhQ007846
        for <dizzy@base5designs.co.uk>; Sat, 5 Dec 2015 13:42:33 GMT
Received: (from apache@localhost)
        by ip-172-31-14-25.eu-west-1.compute.internal (8.14.4/8.14.4/Submit) id tB5DgX0I007845;
        Sat, 5 Dec 2015 13:42:33 GMT
To: dizzy@base5designs.co.uk
Subject: You sent a message via the ReelFilm Locations website
X-PHP-Originating-Script: 500:mail_php.php
MIME-Version: 1.0
Content-Type: multipart/alternative; charset="UTF-8"; boundary="WAMULTIBREAKWA"
From: film@reelfilmlocations.com
Reply-To: film@reelfilmlocations.com
X-Sender: film@reelfilmlocations.com
X-Priority: 3
Date: Sat, 05 Dec 2015 13:42:33 +0000 (GMT)
Message-ID: <1703740302.bdbd6db1d8cc09a957e86180fda9442a@reelfilmlocations.com>


--WAMULTIBREAKWA
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit

    Message Delivered
Thank you, Dizzy High
 The following message has been sent to reelfilmlocations.
 A member of the reelfilm team will be in contact shotly.
        Message Sent    12-5-2015 | 1:42 PM

        Your Email:     dizzy@base5designs.co.uk
        Subject:        Test email from new Amazon reelfilm server
        Message:
Just a quick test to see if the contact form is working

从环顾四周,我认为它与使用标题的sendmail有关

MAILER-DAEMON@ip-172-31-14-25.eu-west-1.compute.internal

我真的不知道如何解决这个问题,非常感谢任何帮助或建议

0 个答案:

没有答案