¿procmail?

Kenneth
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, but this approach has shown not to be suitable as I'd like to process the response as soon as postfix has them.

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.

Any thoughts on it or on alternative approaches?

--
Regards,

Leandro Santiago
Software Craftsman at Lightmeter
https://lightmeter.io

Attachment: OpenPGP_0xAB5F702209190A96.asc
Description: OpenPGP public key

Reply via email to