Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question
add comment

1 Answer 1

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.

share|improve this answer
add comment

Your Answer

 
discard

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.