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 1


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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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