I need all the body of incoming and outgoing messages are written to the log file. How to setup Postfix to do that?
1 Answer
From the same question at ServerFault:
You can use a content filter that stores a copy of the mail somewhere. There is pretty good documentation on it at http://www.postfix.org/FILTER_README.html. It also contains an example content filter script that does exactly what you want.