This seems to get me about 80% of the way there. I can send from a specific 
mailbox, so the response will be delivered to that mailbox, and I can check it 
programmatically. So that's great.

It still leaves me with the question of: how do I associate this particular 
reply with a notification that I sent? My initial idea was to use X-Header and 
stuff a unique ID in that header, so I could make the association, but this 
documentation appears to say: "I'm not going to send you X-Headers back... or 
body content".

So, what are your suggestions on associating the reports to the original notif? 
Where can I stuff an ID to do this?

Michael Munger, dCAP, MCPS, MCNPS, MBSS
High Powered Help, Inc.
Microsoft Certified Professional
Microsoft Certified Small Business Specialist
Digium Certified Asterisk Professional
mich...@highpoweredhelp.com

-----Original Message-----
From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] 
On Behalf Of Wietse Venema
Sent: Wednesday, May 20, 2015 11:03 AM
To: Postfix users
Subject: Re: Capture / Filter Remote Server Responses?

Michael Munger:
> tldr:
> 
>     I want to be able to stick a filter / milter AFTER smtp(8) so I can
>     save the remote server response code and associate it with an email
>     that was sent so my PHP application can display the status of a
>     notification sent to a user.

Postfix has an option to record SMTP remote server responses, and to mail that 
back to the sender, formatted as a standard internet delivery status 
notification.

You request this with "/usr/sbin/sendmail -v recipient...".  See 
http://www.postfix.org/ADDRESS_REWRITING_README.html#debugging
for an example and narrative text.

There currently is no option to request this in SMTP submissions.
This should be an access-restricted feature for obvious reasons.

        Wietse

Reply via email to