which will tell you how to push the email into a php script, unfortunately it doesn't go far enough and I don't know how to push the email back to postfix afterwards in case it didnt meet my criteria for filtering.
so what happens is, I can't login, I can't check mail, it effectively blackholes the entire server, it's only useful when you want to run a deadend server to recieve and store email, not to actually use it in conjunction with a real server running user accounts, normal email delivery etc.
It sounds like you want to setup a post queue filter. Documentation on this is here -> http://www.postfix.org/FILTER_README.html
the link that ttyS0 gave doesn't give any examples of how to do this in PHP, it's just a general overview page.
I found this tutorial: http://blog.thecodingmachine.com/content/triggering-php-script-when-your-postfix-server-receives-mail
which will tell you how to push the email into a php script, unfortunately it doesn't go far enough and I don't know how to push the email back to postfix afterwards in case it didnt meet my criteria for filtering.
so what happens is, I can't login, I can't check mail, it effectively blackholes the entire server, it's only useful when you want to run a deadend server to recieve and store email, not to actually use it in conjunction with a real server running user accounts, normal email delivery etc.