All,

I need to run a script everytime there is an incoming email message to a postfix email server. I have read the docs but I was wondering what would be the best approach to do this. Would anybody give me some hint or examples on how to do this. The postfix server is running under Ubuntu.

Thanks heaps for your help

link|improve this question

feedback

1 Answer

up vote 4 down vote accepted

You could use the After-Queue Content Filter feature: http://www.postfix.org/FILTER_README.html

The readme file contains an example of a very simple filter shell script. You could start with that example and build your own script.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.