Php

Qmail / Zend Mail - 符合 RFC 5322

  • September 30, 2013

我的公司自己收到垃圾郵件,或者更確切地說是 Qmail,我們有一些使用 Qmail 和 Zend Mail 發送電子郵件的自動化流程。

我不是這兩個方面的專家(我對它們一無所知),並且“垃圾郵件”是 Qmail 告訴我們正在發送的一系列電子郵件不符合 RFC 5322 標準。

有沒有辦法讓我找到生成這些錯誤電子郵件的原因?或者一個我可以找到它試圖發送但不能發送的電子郵件的地方。

這是我們收到的郵件

From: MAILER-DAEMON@www.company.com
[mailto:MAILER-DAEMON@www.company.com]
Sent: 10. september 2013 15:10
To: company@www.company.com
Subject: failure notice

Hi. This is the qmail-send program at www.company.com.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<user@mail.com>:
65.54.188.110 failed after I sent the message.
Remote host said: 550 5.7.0 (BAY0-MC3-F46) Message could not be delivered.
Please ensure the message is RFC 5322 compliant.

--- Below this line is a copy of the message.

Return-Path: <compnay@company.com>
Received: (qmail 25746 invoked by uid 0); 10 Sep 2013 15:10:02 +0200
Message-ID: <20130910131002.25707.qmail@www.company.com>
To: user <user@mail.com>
Subject:
From:
Date: Tue, 10 Sep 2013 15:10:02 +0200
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

您的From:標頭沒有任何價值。這是對 RFC 5322 的公然違反。修復您的應用程序,以便它為標頭提供有效值From:

引用自:https://serverfault.com/questions/542647