Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.