Tim: > Hello all, > > I just wanted to ensure that I am not duplicating my logging procedures > for Postfix. I have set up my mail server so that I am receiving > messages for info, warn, err and log. Looking at these, I can see that > some of the messages I receive are duplicated in other logs. Is there an > optimal way to set up logging so that messages are duplicated? > > Hopefully I'm making sense!
Postfix logs its activities at different levels of severity. The worst one can do is to split the Postfix event stream into different files for different levels, such that one file contains only normal activity, one file contains only warnings, etc. In such a setting, a warning/error/fatal/panic message loses much of its value (for you or people who can help on the postfix-users list) because it lacks the context of normal activity that immediately precedes or follows. On the other hand, Postfix can produce a lot of logging on a busy server, therefore logging the same thing multiple times can be wasteful. I use one logfile and rotate as often as needed; you may want to use one logfile that records all severity levels, and one logfile for warning/error/fatal/panic only. Wietse