我编写了一个包含批量邮件功能的 PHP 应用程序。它使用 Zend Framework 的 SMTP 传输类来发送电子邮件。每封电子邮件都使用我们自己的 SMTP 服务器作为单独的电子邮件发送,我们必须对其进行身份验证。
我们今天测试了我们的第一个群发邮件。我看到很多退回消息,其中错误消息是relaying denied的一些变体。但我不明白中继是如何/在哪里发生的。大多数消息都到达了它们的目的地。
我了解中继是什么以及大多数服务器如何阻止它。但我不明白为什么会在这种情况下发生。错误消息是由收件人邮件服务器生成的,而不是我们发送/来自的服务器。
我尝试了各种搜索,但没有解决这种情况。我完全不知道该尝试什么。
这是一个:
Final-Recipient: rfc822; info@recipient.com
Original-Recipient: rfc822;info@recipient.com
Action: failed
Status: 5.7.1
Remote-MTA: dns; mail.recipient.com
Diagnostic-Code: smtp; 554 5.7.1 <info@recipient.com>: Relay access
denied
Return-Path: <bounces@ourdomain.com>
Received: from localhost (ourdomain.com [xx.xx.xx.xx])
by server.ourdomain.net (Postfix) with ESMTPSA id 555EE1A40A40
for <info@recipient.com>; Wed, 3 Jul 2013 14:30:03 -0400 (EDT)
Date: Wed, 03 Jul 2013 18:30:03 +0000
To: info@recipient.com
From: Jane Doe <profiles@ourdomain.com>
Reply-To: profiles@ourdomain.com
X_Id: 155:20130703183003+0000:info@recipient.com
Subject: Update Your Complimentary Listing - Acme Widgets Ltd.
Content-Type: multipart/mixed;
boundary="=_c7534a079bebc99232f7fc965e3ce207"
MIME-Version: 1.0
Message-Id: <20130703183003.555EE1A40A40@server.ourdomain.net>
还有一个:
Final-Recipient: rfc822; john.smith@recipient.ca
Original-Recipient: rfc822;john.smith@recipient.ca
Action: failed
Status: 5.7.1
Remote-MTA: dns; mail.recipient.ca
Diagnostic-Code: smtp; 550 5.7.1 <john.smith@recipient.ca>... Relaying
denied. Proper authentication required.
Return-Path: <bounces@ourdomain.com>
Received: from localhost (ourdomain.com [xx.xx.xx.xx])
by server.ourdomain.net (Postfix) with ESMTPSA id 2E8161A40A57
for <john.smith@recipient.ca>; Wed, 3 Jul 2013 17:30:05 -0400 (EDT)
Date: Wed, 03 Jul 2013 21:30:05 +0000
To: john.smith@recipient.ca
From: Jane Doe <profiles@ourdomain.com>
Reply-To: profiles@ourdomain.com
X_Id: 2590:20130703213005+0000:john.smith@recipient.ca
Subject: Update Complimentary Listing - Acme Canada Inc.
Content-Type: multipart/mixed;
boundary="=_6e8e745d73ac533aa878237363777974"
MIME-Version: 1.0
Message-Id: <20130703213005.2E8161A40A57@server.ourdomain.net>