Use procmail to deliver to stdout and a second server
- by Halfgaar
I would like a Postfix server to deliver each message to a certain transport as well as relay to a second server. In master.cf, I have the following transport:
zarafa unix - n n - 10 pipe
flags= user=vmail argv=/usr/bin/zarafa-dagent ${user}
Because I can't get Postfix to deliver to two transports, what I probably need, is a wrapper transport, using procmail maybe, that delivers to zarafa-dagent and relays to a second server (not just forward to an address; relay to a second server).
It can also be a script that calls sendmail or whatever, but at the moment, I don't know how to proceed.