Hi Wietse,

You're quite correct. My logs are rotated and destroyed on a regular
basis so the suggestion of collating all logging in one file and
using .err and .warn to flag specific errors seems sensible.

Thanks for the help.

Tim

On Fri, 2012-05-11 at 08:44 -0400, Wietse Venema wrote:

> 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


-- 
Tim Smith
Tel: 01423 564 078
Mob: 07984 398 299
Email: t...@titan21.co.uk
Web: www.titan21.co.uk 

Reply via email to