On 01.08.22 17:36, Leandro Santiago wrote:
I'm using Postfix 3.6.4 on Debian and would like to know if it's possible to execute some custom code **after** postfix successfully delivers an email (postfix/smtp status=sent).

The reason is that for a given host there are some important bits of information in the destination server response I believe for the DATA command ("250 Ok: <information here>"), the one that postfix logs) that I would like to intercept.

The way I've be started doing it is to have an external system that analyzes the postfix logs,


I'm afraid this the proper approach.

but this approach has shown not to be suitable as I'd like to process the response as soon as postfix has them.

do you have any reason to believe they are logged much later?


What I'd like to have is some kind of "hook" that is executed just after the queue is delivered (so I have the server response), but before the queue is deleted.

I've been using milters extensively, but they are executed before a message is delivered, but maybe it's possible to repurpose them.

no.

Any thoughts on it or on alternative approaches?

--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
   One OS to rule them all, One OS to find them,
One OS to bring them all and into darkness bind them

Reply via email to