Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

What I want to do with postfix is have an open relay that accepts all emails. I then want it to push all the received emails to a script.

I have found solutions, but they never specifiy on how to do this for an open relay or how to accept all domains.

share|improve this question
possible duplicate of How to configure postfix to pipe all incoming email to a script? – mailq Nov 30 '11 at 21:13
not really, since that one uses known hosts, and I want to accept all email – Lucas Kauffman Dec 1 '11 at 7:17
For this there is pcre or regex support in Postfix. – mailq Dec 1 '11 at 18:42
up vote 1 down vote accepted

Oh, I wrote a little blog post about that: It is mainly about smtp-sink.

If you don't want that, see the dupe above.

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.