RE: How to trigger a script based on header

2019-12-05 Thread Fazzina, Angelo
Hi, to answer your question I messed around even though i don't think this is going to do it for you but it's a start. master.cf filterunix - n n - 0 pipe -o syslog_name=postfix/trigg flags=Fq user=filter null_sender= argv=/usr/local/bin/angelo ${sen

Re: How to trigger a script based on header

2019-12-04 Thread Quasar
Hi Angelo, thanks for your quick reply. I had a look at your solution, but I'd need a filter on the subject, not on sender or recipient. Can your solution be modified to include subject filtering as well? Grazie :-) On Wed, 4 Dec 2019 at 21:20, Fazzina, Angelo wrote: > Hi, AFA I know there is th

Re: How to trigger a script based on header

2019-12-04 Thread Noel Jones
On 12/4/2019 2:01 PM, Quasar wrote: Hi there, I need some help, tried to find the answer googling for it, but no luck. Here's my question: I'd need to trigger a script whenever an email is processed and sent. This trigger should be based on some header fields (e.g. subject). I tried playing wi

RE: How to trigger a script based on header

2019-12-04 Thread Fazzina, Angelo
Hi, AFA I know there is the “argv” parameter in master.cf that can run scripts you create, there may be others. This is my test config: autoreply unix - n n - - pipe flags=DFuser=nobody argv=/usr/local/bin/angelo $sender $recipient $original