In Postfix I can configure to forward emails to a script in /etc/aliases like

mailuser: | mailprocessor.pl

If I create a named pipe with

mkfifo /opt/mypipe

and then change /etc/aliases to write directly to the pipe like

    mailuser: | /opt/mypipe

it is nothing writing to the named pipe. What am I doing wrong? Or is is not possible to write to a pipe directly?

link|improve this question

80% accept rate
feedback

migrated from stackoverflow.com Sep 19 '11 at 5:29

This question came from our site for professional and enthusiast programmers.

1 Answer

It might be using the name of your pipe as a command and trying to execute it when using the | syntax. Maybe try:

mailuser: | cat > /opt/mypipe
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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