0

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.

Lucas Kauffman
  • 16,880
  • 9
  • 58
  • 93
  • possible duplicate of [How to configure postfix to pipe all incoming email to a script?](http://serverfault.com/questions/258469/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 01 '11 at 07:17
  • For this there is pcre or regex support in Postfix. – mailq Dec 01 '11 at 18:42

1 Answers1

1

Oh, I wrote a little blog post about that: http://blog.malowa.de/2011/04/postfix-as-spam-trap-server.html It is mainly about smtp-sink.

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

mailq
  • 17,023
  • 2
  • 37
  • 69