I'm thinking someone has probably already seen this and wondering if
anyone has a work around (other than send the bounce somewhere else
which may or may not be possible in my current situation, still
investigating that).
In brief if a Postfix bounce message is sent through Amazon SES, and the
bounce message contains a third part with the Content-Type:
text/rfc822-headers, and the original message (and therefore the body
part of the text/rfc822-headers message) included a multipart
Content-Type header, Amazon rejects the bounce message with "554
Transaction failed: Missing start boundary." I'm guessing this is an
error on Amazon's part; they shouldn't be expecting actual inner
boundary delimiters in the text/rfc822-headers part of the message.
(Should they?)
I'll include the setup I used to test this below in case I'm missing
something on my end but if not, is there a way around this? I.E., maybe
some way to exclude that header from the text/rfc822-headers part of the
message (for my particular usage I probably won't need it on a bounce;
and if it's between that and getting the message delivered I'd rather it
be delivered).
I have a support request in to Amazon as well but wanted to try here in
case someone can shed some light on it.
To test, I basically followed the process below. The "mini_bounce" file
I refer to came from a real bounce and then I just stripped it
down/redacted it to what I felt like was necessary to convey the issue.
Thank you in advance!
Dan
# cat good_mini_bounce.txt
From: ad...@mydomain.com
Subject: Undelivered Mail Returned to Sender
To: sen...@mydomain.com
Content-Type: multipart/report; report-type=delivery-status;
boundary="480A5B8B67.1700153227/dev.mydomain.com"
This is a MIME-encapsulated message.
--480A5B8B67.1700153227/dev.mydomain.com
Content-Description: Notification
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Your message bounced. Deal with it.
--480A5B8B67.1700153227/dev.mydomain.com
Content-Description: Delivery report
Content-Type: message/delivery-status
Action: Bounce-o-rama
--480A5B8B67.1700153227/dev.mydomain.com
Content-Description: Undelivered Message Headers
Content-Type: text/rfc822-headers
Content-Transfer-Encoding: 8bit
From: sen...@mydomain.com
To: recipi...@otherdomain.com
Subject: Testing SES Bounces
Content-Type: text/plain; charset=ISO-8859-1
--480A5B8B67.1700153227/dev.mydomain.com--
# sendmail -f ad...@mydomain.com -- sen...@mydomain.com <
good_mini_bounce.txt
(above sent ok)
# diff -uw good_mini_bounce.txt bad_mini_bounce.txt
--- good_mini_bounce.txt 2023-11-16 14:06:48.132974201 -0500
+++ bad_mini_bounce.txt 2023-11-16 14:11:28.080021179 -0500
@@ -27,6 +27,6 @@
From: sen...@mydomain.com
To: recipi...@otherdomain.com
Subject: Testing SES Bounces
-Content-Type: text/plain; charset=ISO-8859-1
+Content-Type: multipart/mixed; boundary="TESTING.12345"
--480A5B8B67.1700153227/dev.mydomain.com--
# sendmail -f ad...@mydomain.com -- sen...@mydomain.com <
bad_mini_bounce.txt
(host said: 554 Transaction failed: Missing start boundary (in reply to
end of DATA command))
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org