0

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:

support@myhost.com redmine

master.cf:

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

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

simendsjo
  • 304
  • 2
  • 14

1 Answers1

2

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

Lazy Badger
  • 3,137
  • 15
  • 13
  • 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 09: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