How do I get postfix to log the entirety of inbound and outbound SMTP sessions? (Including the STARTTLS payload.)
I've mostly solved my mail-delivery problems by routing most (but not all) of my outbound mail through Amazon SES. But when I send a message that happens to bounce, the bounce is bouncing. I'm having a hard time understanding the thing that "notify_classes = 2bounce" is sending me.
<email@example.com> (expanded from <firstname.lastname@example.org>): host email-smtp.us-west-2.amazonaws.com[18.104.22.168] said: 501 Invalid MAIL FROM address provided (in reply to MAIL FROM command)
Reporting-MTA: dns; cerebrum.dnalounge.com
X-Postfix-Sender: rfc822; MAILER-DAEMON@cerebrum.dnalounge.com
Final-Recipient: rfc822; email@example.com
Remote-MTA: dns; email-smtp.us-west-2.amazonaws.com
Diagnostic-Code: smtp; 501 Invalid MAIL FROM address provided
It looks like it's saying that SES rejected my "MAIL FROM" address, but I definitely have dnalounge.com and jwz.org on the list of verified, allowed domains. So I don't know how to tell what address it is complaining about. I've tried debug_peer_list but it is confusing and does not appear to answer my question.