【问题标题】:Retrieve bounce notification / report in php在 php 中检索退回通知/报告
【发布时间】:2012-07-24 12:43:11
【问题描述】:

我正在设计一个从邮箱中捕获错误传递消息的应用程序,我对此进行了一些研究,但我仍然无法过滤掉它们,似乎有没有标准,所以我无法获得/过滤它们?:

  1. 如何区分普通邮件(例如,我的朋友给我发了一封带有“失败”短语的邮件和实际的退回通知邮件?

  2. 如果问题 1 不能轻易解决,那么我创建一个单独的帐户来处理这个问题,但是有什么方法可以处理报告吗? (我只能使用普通快递来获取失败的投递目的地并使用'失败''代码'作为过滤器吗?)

感谢您的帮助。我对这种工作没有经验?

雅虎

    Sorry, we were unable to deliver your message to the following address.

<foodil@dddddd.com>:
Mail server for "dddddd.com" unreachable for too long

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

Received: from [106.10.166.120] by nm22.bullet.mail.sg3.yahoo.com with NNFMP; 29 Feb 2012 09:04:06 -0000
Received: from [106.10.167.232] by tm9.bullet.mail.sg3.yahoo.com with NNFMP; 29 Feb 2012 09:04:06 -0000
Received: from [127.0.0.1] by smtp205.mail.sg3.yahoo.com with NNFMP; 29 Feb 2012 09:04:06 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.hk; s=s1024; t=1330506246; bh=znnAxTAuKSnliGq49apM7Ii1ERAlZxBv4cYit3wgR/g=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Message-ID:Date:Subject:From:To:MIME-Version:Content-Type; b=RXRjooHw6FSIX3zGXno0Uc0LLDwmfASQUP+6/1ZqNSHCLcEWzdfVitC0GhxzzwgVwoGxYAxyej/fagjOYUG1V476IKvLFwT2mc7V73nlLmFdo9UV185+QufcC9SFz+/qlgzy1vVYwrKo2Xm7/xZOFVVikFo1sbn0EKjus5GglnI=
X-Yahoo-Newman-Id: 523716.94781.bm@smtp205.mail.sg3.yahoo.com
X-Yahoo-Newman-Property: ymail-3
X-YMail-OSG: PB_6KyYVM1mf3BcmrbsDUUD94qa2mYVScNnQNXoaj.YxW7w
8yXbdApm_0pTB_sYvXKZZQq8JLeGZi4kAeFTwI4U52w9O5G4LJFXiSDEg6O5
2X8Bu8y84ZpZSa5qCi.1cjMWo7cV7CLX5SzG4CijG41iSFpIhwna1U.z9dx1
8shvWd28JkxnLtU7PaRdxPURHFm1nV8kYyWIqYLBp5wM0qUrJJo9XsRY.Bg8
EwEnqvdsYvejJ9YIGDZHn6FzBsyfYmSxnrxrM9M.TS7pDZTKDoPYi7VUOwM_
aoLMYr6UrNmQyOBQIRB_5CBV920o_6tnpeXKCMT1OJrM.pZEU6Uoow581AZU
AVdmW7zvK2JC_hU.zL1J8LGuNdzV2T65etkN3WT.3Olm81AG.AzK1odnTIuT
o
X-Yahoo-SMTP: zNQ.D62swBB.riCml7vVOaU.Pw--
Received: from [::1] (foodil@168.70.100.57 with login)
        by smtp205.mail.sg3.yahoo.com with SMTP; 29 Feb 2012 01:04:06 -0800 PST
Message-ID: <1330506198.4f4de9d6a922e@localhost>
Date: Wed, 29 Feb 2012 10:03:17 +0100
Subject: ttt
From: tester <foodil@yahoo.com.hk>
To: foodil@dddddd.com
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="_=_swift_v4_13305061974f4de9d591f49_=_"


--_=_swift_v4_13305061974f4de9d591f49_=_
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

test in plain text

--_=_swift_v4_13305061974f4de9d591f49_=_
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hello , ttttt,Here is a testing mail , ttttt, Unsubscribe from <a href=3Dl=
ocalhost/fyp/unsub.php?code=3DcQfSoQmeopetSvVCNWMRqFQmxqhllOUH0zo4MqdN> li=
nk</a>

--_=_swift_v4_13305061974f4de9d591f49_=_--

Gmail

    Delivery to the following recipient failed permanently:

    sewdcxerqerer23@hotmail.com

Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 550 550 Requested action not taken: mailbox unavailable (state 14).

----- Original message -----

Received-SPF: pass (google.com: domain of foodilnew@gmail.com designates 10.68.228.193 as permitted sender) client-ip=10.68.228.193;
Authentication-Results: mr.google.com; spf=pass (google.com: domain of foodilnew@gmail.com designates 10.68.228.193 as permitted sender) smtp.mail=foodilnew@gmail.com; dkim=pass header.i=foodilnew@gmail.com
Received: from mr.google.com ([10.68.228.193])
       by 10.68.228.193 with SMTP id sk1mr4178326pbc.60.1330506479278 (num_hops = 1);
       Wed, 29 Feb 2012 01:07:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
       d=gmail.com; s=gamma;
       h=message-id:date:subject:from:to:mime-version:content-type;
       bh=mTAZjN0yOMSZvZ93QlxjKHpcMuoOOMgF3ae4S5LrPpM=;
       b=f1B4X5p0Unf+Yx3G+BHwsc6mn5x793Ezm60qIxoTX5Xb7fmORq5tPiihiNLNef0d7V
        5+g6iVIa1MduQKbtrVKUFmkc163rSRpC2nzW+RERE8KhY/4BVY1tvR1pI4sqcljXzWZm
        +sDvEotPrmn+m/AdRnPaCN44eGZ6xDv2SPUUE=
Received: by 10.68.228.193 with SMTP id sk1mr3539133pbc.60.1330506479252;
       Wed, 29 Feb 2012 01:07:59 -0800 (PST)
Return-Path: <foodilnew@gmail.com>
Received: from [::1] ([168.70.100.57])
       by mx.google.com with ESMTPS id f6sm2760781pbt.4.2012.02.29.01.07.56
       (version=SSLv3 cipher=OTHER);
       Wed, 29 Feb 2012 01:07:58 -0800 (PST)
Message-ID: <1330506428.4f4deabc28e7e@localhost>
Date: Wed, 29 Feb 2012 10:06:58 +0100
Subject: ttt
From: tester <foodilnew@gmail.com>
To: sewdcxerqerer23@hotmail.com
MIME-Version: 1.0
Content-Type: multipart/alternative;
 boundary="_=_swift_v4_13305064184f4deab2410ee_=_"

test in plain text

【问题讨论】:

  • 没有实用/万无一失的方法来捕获退回邮件,因为退回邮件的格式取决于退回邮件的服务器。格式没有标准。

标签: php email


【解决方案1】:

大部分操作是为发送的邮件设置一个ReturnPath地址,任何发往该地址的邮件都是由服务器而不是人返回的,因此请扫描服务器添加的错误消息.

【讨论】:

  • 广告信不小心发到那个邮箱怎么办?
  • 不应该,但您可以尝试对与自动回复模式不匹配的电子邮件进行处理。
猜你喜欢
  • 2012-03-15
  • 2017-02-27
  • 1970-01-01
  • 2021-07-16
  • 1970-01-01
  • 2013-04-25
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多