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?

link|improve this question
feedback

1 Answer

up vote 1 down vote accepted

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

link|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
feedback

Your Answer

 
or
required, but never shown

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