Postfix how to triggering my script when outgoing email status is sent?

Posted by Laszlo Malina on Server Fault See other posts from Server Fault or by Laszlo Malina
Published on 2014-06-12T19:30:40Z Indexed on 2014/06/12 21:27 UTC
Read the original article Hit count: 260

Filed under:
|

I want to run a program when postfix has successfully sent out a mail (local or remote). I would like to pass the headers to program and if possible also the destination ip or address (exclude spam filter delivery).

I just have an idea: Delivery Status Notification processing via uniqe transport program, but I'd prefer the above.

My goal is to be recorded lifetime (events) of email: it came, it went out (from, to, subject, datetime, message id, message status: bounce, sent). I would only need the state of the outgoing mail, because incoming and bounce program is working.

It is possible to trigger a program (similar to a transport pipe/spawn) or DSN "cheat" stay?

Thanks in advance for any reply!

© Server Fault or respective owner

Related posts about linux

Related posts about postfix