mail: Bounce-Abruf liest RFC 6533, All-Inkl-Freitext und ganze INBOX
Befund aus 151 echten Rücklaeufern: 2 SmarterMail-DSNs (message/global-delivery-status) und 2 Freitext-Hinweise des eigenen Relays (X-KASMail-Error, formal auto-replied) fielen durch. Policy- und Quota-Codes zaehlen weich statt hart. Abruf ohne UNSEEN-Filter, weil das Verschieben die Zustandsmarke ist. Dazu Schutz in tests/TestCase.php: Suite bricht ab, wenn ein Config-Cache sie auf die Dev-Datenbank umlenkt. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
6e159ecf06
commit
4cefdf7f5c
9 changed files with 323 additions and 15 deletions
53
tests/Fixtures/bounces/global-delivery-status.eml
Normal file
53
tests/Fixtures/bounces/global-delivery-status.eml
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
Return-Path: <>
|
||||
From: System Administrator <noreply@example.org>
|
||||
To: empfang@example.org
|
||||
Subject: Failed: E-Mail-Adresse =?utf-8?b?YmVzdMOkdGlnZW4gZsO8cg==?= Ihr pressekonto
|
||||
Date: Tue, 15 Sep 2026 07:58:48 -0400
|
||||
Message-ID: <smartermail-4dafebf3@example.org>
|
||||
MIME-Version: 1.0
|
||||
Content-Type: multipart/report;
|
||||
boundary=SmarterMail_NextPart_bea868a207e2438d93f1a587865b9442;
|
||||
report-type=delivery-status
|
||||
|
||||
--SmarterMail_NextPart_bea868a207e2438d93f1a587865b9442
|
||||
Content-Type: multipart/alternative;
|
||||
boundary=SmarterMail_NextPart_c2a1d6d5a7f547e881ec08ee079fab60
|
||||
|
||||
--SmarterMail_NextPart_c2a1d6d5a7f547e881ec08ee079fab60
|
||||
Content-Type: text/plain; charset=utf-8
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
|
||||
Delivery has failed to these recipients:
|
||||
|
||||
weiterleitung@example.net
|
||||
|
||||
Remote Server returned: '550 Sender has been throttled'=
|
||||
|
||||
--SmarterMail_NextPart_c2a1d6d5a7f547e881ec08ee079fab60--
|
||||
|
||||
--SmarterMail_NextPart_bea868a207e2438d93f1a587865b9442
|
||||
Content-Type: message/global-delivery-status; charset=utf-8
|
||||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
Reporting-MTA: dns; mx.example.org
|
||||
|
||||
Original-Recipient: rfc822; weiterleitung@example.net
|
||||
Final-Recipient: rfc822; weiterleitung@example.net
|
||||
Action: failed
|
||||
Status: 5.0.0
|
||||
|
||||
--SmarterMail_NextPart_bea868a207e2438d93f1a587865b9442
|
||||
Content-Type: message/global-headers; charset=utf-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Return-Path: <bounce@pressekonto.com>
|
||||
From: "Service | pressekonto.com" <service@pressekonto.com>
|
||||
To: empfang@example.org
|
||||
Subject: E-Mail-Adresse bestätigen für Ihr pressekonto
|
||||
Message-Id: <e080bfba8cd885ac98a1979708debe2c@pressekonto.com>
|
||||
X-Pk-Ref: user:4711
|
||||
MIME-Version: 1.0
|
||||
Date: Tue, 15 Sep 2026 13:58:45 +0200
|
||||
Content-Type: text/html; charset=utf-8
|
||||
|
||||
--SmarterMail_NextPart_bea868a207e2438d93f1a587865b9442--
|
||||
28
tests/Fixtures/bounces/kas-antispam.eml
Normal file
28
tests/Fixtures/bounces/kas-antispam.eml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
Return-Path: <>
|
||||
X-Original-To: bounce@pressekonto.com
|
||||
From: MAILER-DAEMON@dd19238.kasserver.com (Mail Delivery System)
|
||||
To: bounce@pressekonto.com
|
||||
Auto-Submitted: auto-replied
|
||||
Subject: Undelivered Mail Returned to Sender
|
||||
Message-Id: <20260902102204.844FE5F41C65@dd19238.kasserver.com>
|
||||
Date: Wed, 2 Sep 2026 12:22:04 +0200 (CEST)
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=utf-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
X-KASMail-Error: CFA07A22C8072A03
|
||||
X-KasLoop: m0805a0b
|
||||
|
||||
|
||||
|
||||
This is the anti spam system at host dd19238.kasserver.com.
|
||||
|
||||
I´m sorry to have to inform you that your message could not be delivered to one or more recipients.
|
||||
|
||||
The recipient mailprovider bounced Mails to one or more recipients you tried to contact as not existent in the recent past.
|
||||
|
||||
Please note the following list of non existent recipients:
|
||||
|
||||
presse@example.net
|
||||
info@example.org
|
||||
|
||||
Please check the addresses and try again.
|
||||
41
tests/Fixtures/bounces/policy-5.7.1.eml
Normal file
41
tests/Fixtures/bounces/policy-5.7.1.eml
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
Return-Path: <>
|
||||
From: MAILER-DAEMON@dd19238.kasserver.com (Mail Delivery System)
|
||||
To: bounce@pressekonto.com
|
||||
Subject: Undelivered Mail Returned to Sender
|
||||
Message-Id: <20260915120000.ABC@dd19238.kasserver.com>
|
||||
Date: Tue, 15 Sep 2026 14:00:00 +0200 (CEST)
|
||||
MIME-Version: 1.0
|
||||
Content-Type: multipart/report; report-type=delivery-status;
|
||||
boundary="ABC123.1789473600/dd19238.kasserver.com"
|
||||
|
||||
--ABC123.1789473600/dd19238.kasserver.com
|
||||
Content-Description: Notification
|
||||
Content-Type: text/plain; charset=utf-8
|
||||
|
||||
This is the mail system at host dd19238.kasserver.com.
|
||||
|
||||
--ABC123.1789473600/dd19238.kasserver.com
|
||||
Content-Description: Delivery report
|
||||
Content-Type: message/delivery-status
|
||||
|
||||
Reporting-MTA: dns; dd19238.kasserver.com
|
||||
|
||||
Final-Recipient: rfc822; pr@example.net
|
||||
Original-Recipient: rfc822;pr@example.net
|
||||
Action: failed
|
||||
Status: 5.7.1
|
||||
Remote-MTA: dns; mx.example.net
|
||||
Diagnostic-Code: smtp; 554 5.7.1 <pr@example.net>: Relay access denied
|
||||
|
||||
--ABC123.1789473600/dd19238.kasserver.com
|
||||
Content-Description: Undelivered Message Headers
|
||||
Content-Type: text/rfc822-headers
|
||||
|
||||
Return-Path: <bounce@pressekonto.com>
|
||||
From: "Service | pressekonto.com" <service@pressekonto.com>
|
||||
To: pr@example.net
|
||||
Subject: Ihre Pressemitteilung ist online
|
||||
X-Pk-Ref: pm:99:company:7
|
||||
Message-Id: <abc@pressekonto.com>
|
||||
|
||||
--ABC123.1789473600/dd19238.kasserver.com--
|
||||
Loading…
Add table
Add a link
Reference in a new issue