On Jul 13, 2012, at 18:51, galanty show wrote: > For an enterprise network with a heavy mail traffic, is there any > add-on or solution,for partitioning(separate) the details logs on > postfix? > for example: > in smtp/smtpd the detail logs separated into two log files as: > > smtpd-in.txt (for every 24h) > smtp-out.txt (for every 24h) > > also for other modules.like dovecot.spamassassign,claimav and ... > because tracing for one problem and troubleshooting will be very easy. and = > this solution exists in the commercial MTA like Alt-N Mdaemon Pro.
The services you mentioned interact with each other, and in my experience it is useful to have them all in the same log file when troubleshooting. We do however seperate them by having 'rsyslog' create new log files every hour, with a year/month/day directory tree. This way the log files stay manageable in terms of size, and can be compressed and archived as needed. It also means there's only one log being written to disk, instead of several. The rsyslog daemon can also partition in various ways, and I think other syslog daemons have similar features. Even the most basic setup should be able to use the LOCAL* facilities to do so. In other words, I would use your syslog daemon to achieve whatever you require, as this also allows you to centralize or offload logging if necessary, without requiring any changes to Postfix. Cya, Jona
