thank you for the idea. Will try that :-)

On 8/1/22 18:27, Wietse Venema wrote:
Leandro Santiago:

Checking application/pgp-signature: FAILURE
-- Start of PGP signed section.
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.

You can configure Milters that inspect message BEFORE delivery.

You can configure a command with (r)syslog.conf that triggers AFTER
a status=sent (or whatever) event.

You cannot 'pause' Postfix deliveries and grope the queue.

        Wietse

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

Content-Description: OpenPGP public key

[ Attachment, skipping... ]
-- End of PGP section, PGP failed!

--
Regards,

Leandro Santiago
Software Craftsman at Lightmeter
https://calendly.com/leandro-santiago
https://lightmeter.io

Attachment: OpenPGP_0xAB5F702209190A96.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to