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

I'm running into an issue trying to get pipe forwarding working on postfix. Rather than running the script I'm intending to run, it's appending to my script. Testing on other servers this seems to work fine which leads me to believe this is a configuration error I can't seem to find in my

I did some searches and came up with being told I should add the F=| flag to my delivery agent but I'm unsure where I should be adding this.


share|improve this question
Wow, what a bad question. Yes it is a configuration problem. Looking at your .forward file shows the error! – mailq Dec 16 '11 at 18:29
@mailq Uh.. did Justin post his .forward somewhere? [Not trolling] – jon Dec 16 '11 at 18:38
But me. I was trolling. It should be ironic. How should we look into an issue by only saying "it doesn't work". – mailq Dec 16 '11 at 18:40
Not a bad question, the .forward file is fine as it works on other servers. Bad assumption is more like it. If the forward file was bad, it wouldn't be writing to the file. In this case, my mail message is being appended to /home/username/email-filter.php. Just to appease though, here's my .forward file | /usr/bin/php /home/username/email-filter.php – Justin Dec 16 '11 at 18:50

I think it depends on the allow_mail_to_commands configuration option. In our systems, we have it set to alias, forward (the default?) which allows delivery to commands to be specified in system-wide alias files and ~/.forward files.

You can run postconf to see what Postfix thinks your configuration is. If allow_mail_to_commands is set to something else, changing it in your might be all you need. Otherwise, could you post a (redacted, if you prefer) version of your

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.