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.
<firstname.lastname@example.org> (expanded from <email@example.com>): host email-smtp.us-west-2.amazonaws.com[188.8.131.52] 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; firstname.lastname@example.org
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.