Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've set up postfix to pipe emails through rdm-mailhandler.rb (redmine), but I'd also like the emails to be delivered to the mailbox.

transport: redmine

redmine   unix  -       n       n       -       -       pipe user=mongrel argv=/opt/redmine-1.2.2/

How can I set up so the emails are delivered to the mailbox too and not just eaten by redmine?

share|improve this question
up vote 2 down vote accepted

Did you try to read aliases spec? Use it with multi-destination and piped target instead of transport

share|improve this answer
Partly. I've changed the above to using transport "local:" and setting the pipe in the aliases file. I still don't know how I can both pipe and deliver the mail. The piping eats the email.. – simendsjo Dec 12 '11 at 9:00
in aliases you can have user,|command in RHS – Lazy Badger Dec 12 '11 at 10:11
But when I have support: "|cmd", the email isn't delivered to the mailbox. It's just send to cmd. I want it to do both - first send to mailbox, then run the command. – simendsjo Dec 12 '11 at 11:23
Re-read my RHS - it has two members, both used at delivery stage – Lazy Badger Dec 12 '11 at 11:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.