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

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

mailuser: |

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?

share|improve this question

migrated from Sep 19 '11 at 5:29

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

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
share|improve this answer

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.