thank you, a friend of mine recommended amavisd-new to me so i'm installing it right now.
the reason i tried a self made filter first was to understand how the postfix filters work, learn more about ipc and check the behaviour of the server before moving to a more robust solution
thanks for the help
ignorance, the plague is everywhere
--guttermouth