Use procmail to deliver to stdout and a second server

Posted by Halfgaar on Server Fault See other posts from Server Fault or by Halfgaar
Published on 2012-06-07T12:45:24Z Indexed on 2012/06/15 15:18 UTC
Read the original article Hit count: 268

Filed under:
|

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.

© Server Fault or respective owner

Related posts about postfix

Related posts about procmail