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