Skip to content

Instantly share code, notes, and snippets.

@mrkschan
Created September 17, 2011 03:07
Show Gist options
  • Save mrkschan/1223583 to your computer and use it in GitHub Desktop.
Save mrkschan/1223583 to your computer and use it in GitHub Desktop.
Sample Amazon SES bounce notification (Email sent from CiviMail)
Delivered-To: mrkschan@example.com
Received: by 10.220.159.20 with SMTP id h20cs25679vcx;
Fri, 16 Sep 2011 03:52:22 -0700 (PDT)
Received: by 10.52.174.84 with SMTP id bq20mr613772vdc.3.1316170342554;
Fri, 16 Sep 2011 03:52:22 -0700 (PDT)
Return-Path: <>
Received: from a192-92.smtp-out.amazonses.com (a192-92.smtp-out.amazonses.com [199.255.192.92])
by mx.google.com with ESMTP id r8si2177380vcv.204.2011.09.16.03.52.22;
Fri, 16 Sep 2011 03:52:22 -0700 (PDT)
Received-SPF: pass (google.com: best guess record for domain of a192-92.smtp-out.amazonses.com designates 199.255.192.92 as permitted sender) client-ip=199.255.192.92;
Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of a192-92.smtp-out.amazonses.com designates 199.255.192.92 as permitted sender) smtp.mail=
X-Original-To: 0000013271dd9396-fe16f88f-1a83-41fe-92bb-af91dd0260ec-000000@email-bounces.amazonses.com
Delivered-To: 0000013271dd9396-fe16f88f-1a83-41fe-92bb-af91dd0260ec-000000@email-bounces.amazonses.com
Message-Id: <0000013271dd9e74-f34da6af-e051-11e0-900d-bb98aa76c8f3-000000@email.amazonses.com>
Date: Fri, 16 Sep 2011 10:52:22 +0000
To: mrkschan@example.com
From: MAILER-DAEMON@email-bounces.amazonses.com
Subject: Delivery Status Notification (Failure)
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status; boundary="O69cv.4hGoIGaoC.FS/bX.7mP7mpX"
X-AWS-Outgoing: 199.255.192.92
--O69cv.4hGoIGaoC.FS/bX.7mP7mpX
content-type: text/plain;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable
The following message to <neverexist@example.com> was undeliverable.
The reason for the problem:
5.1.0 - Unknown address error 550-"5.1.1 The email account that you tried t=
o reach does not exist. Please try\n5.1.1 double-checking the recipient's e=
mail address for typos or\n5.1.1 unnecessary spaces. Learn more at =
\n5.1.1 http://mail.google.com/support/bin/answer.py?an=
swer=3D6596 fs7si7483456qab.60"
--O69cv.4hGoIGaoC.FS/bX.7mP7mpX
content-type: message/delivery-status
Reporting-MTA: dns; a192-16.smtp-out.amazonses.com
Final-Recipient: rfc822;neverexist@example.com
Action: failed
Status: 5.0.0 (permanent failure)
Remote-MTA: dns; [74.125.93.27]
Diagnostic-Code: smtp; 5.1.0 - Unknown address error 550-"5.1.1 The email account that you tried to reach does not exist. Please try\n5.1.1 double-checking the recipient's email address for typos or\n5.1.1 unnecessary spaces. Learn more at \n5.1.1 http://mail.google.com/support/bin/answer.py?answer=6596 fs7si7483456qab.60" (delivery attempts: 0)
--O69cv.4hGoIGaoC.FS/bX.7mP7mpX
content-type: message/rfc822
Received: from unknown (HELO aws-bacon-delivery-svc-i-35a3475b.us-east-1.amazon.com) ([10.13.210.32])
by na-mm-outgoing-1102-bacon.vdc.amazon.com with ESMTP; 16 Sep 2011 10:36:51 +0000
Return-Path: 0000013271dd9396-fe16f88f-1a83-41fe-92bb-af91dd0260ec-000000@email-bounces.amazonses.com
To: test not exist <neverexist@example.com>
Subject: take2
X-PHP-Originating-Script: 1000:mail.php
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="=_0bcd10d577c0b17f3478390776c4cabe"
Reply-To: r.18.16.239d95384d06dfa2@example.com
From: "KsChan" <mrkschan@example.com>
List-Unsubscribe: <mailto:u.18.16.239d95384d06dfa2@example.com>
X-CiviMail-Bounce: b.18.16.239d95384d06dfa2@example.com
Date: Fri, 16 Sep 2011 10:52:19 +0000
Message-Id: <0000013271dd9396-fe16f88f-1a83-41fe-92bb-af91dd0260ec-000000@email.amazonses.com>
X-AWS-Outgoing: 199.255.192.16
--=_0bcd10d577c0b17f3478390776c4cabe
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=utf-8
this is take 2, dont forward it! Sample Footer for HTML formatted
content
Unsubscribe [1]
Links:
------
[1] http://www.example.com/http://www.example.com/drupal/index.php?q=civicrm/mailing/optout&reset=1&jid=18&qid=16&h=239d95384d06dfa2
--=_0bcd10d577c0b17f3478390776c4cabe
Content-Transfer-Encoding: 8bit
Content-Type: text/html; charset=utf-8
<p>
this is take 2, dont forward it!</p>
Sample Footer for HTML formatted content<br/><a href="http://www.example.com/drupal/index.php?q=civicrm/mailing/optout&amp;reset=1&amp;jid=18&amp;qid=16&amp;h=239d95384d06dfa2">Unsubscribe</a> <br/>
<img src="http://www.example.com/drupal/sites/all/modules/civicrm/extern/open.php?q=16" width='1' height='1' alt='' border='0'>
--=_0bcd10d577c0b17f3478390776c4cabe--
--O69cv.4hGoIGaoC.FS/bX.7mP7mpX--
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment