[Dovecot] Syslog, Dovecot, and LogWatch
At what level does Dovecot log to syslog? UW-IMAP uses local6.debug to log to syslog, but it doesn't seem that dovecot does the same.. (the file I defined for UW-IMAP's output hasn't received anything since I moved over to Dovecot?
Also, has anyone managed to get LogWatch and Dovecot to play nicely together? I noticed that LogWatch no longer gives any statistics on the imap usage since I shut down UW and went full blast with Dovecot..
-Rich
On Mon, 11 Apr 2005 10:44:04 -0400 Rich West Rich.West@wesmo.com wrote:
At what level does Dovecot log to syslog? UW-IMAP uses local6.debug to log to syslog, but it doesn't seem that dovecot does the same.. (the file I defined for UW-IMAP's output hasn't received anything since I moved over to Dovecot?
It looks like it's hard-coded to use "LOG_MAIL" facility and various
levels. You could probably modify it to use a LOG_LOCAL<X> facility -
see the "i_set_failure_syslog()" call in
src/[master, auth, imap, pop3]/main.c
You can also opt not to use syslog at all, see dovecot-example.conf "log_path =" for how to specify log files.
Hope this helps, Chris
--+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+-- Christopher Wakelin, c.d.wakelin@reading.ac.uk IT Services Centre, The University of Reading, Tel: +44 (0)118 378 8439 Whiteknights, Reading, RG6 2AF, UK Fax: +44 (0)118 975 3094
On Monday 11 April 2005 11:42, Chris Wakelin wrote:
It looks like it's hard-coded to use "LOG_MAIL" facility and various levels. You could probably modify it to use a LOG_LOCAL<X> facility - see the "i_set_failure_syslog()" call in src/[master, auth, imap, pop3]/main.c
Timo, have you considered a syslog_facility option? At busy sites I like to keep Postfix separate from the IMAP daemon. I do this by changing Postfix's syslog_facility, but it would be nice to have the choice. Thanks.
You can also opt not to use syslog at all, see dovecot-example.conf "log_path =" for how to specify log files.
I'm curious, what are the relative advantages of this?
mail to this address is discarded unless "/dev/rob0"
or "not-spam" is in Subject: header
On 2005-04-11 19:58:31 -0500, /dev/rob0 wrote:
Timo, have you considered a syslog_facility option? At busy sites I like to keep Postfix separate from the IMAP daemon. I do this by changing Postfix's syslog_facility, but it would be nice to have the choice. Thanks.
how about filtering by the program field. many modern syslogd support it.
for example. i filter out my spamassassin messages wth syslog-ng.
hope this helps
irssi - the client of the smart and beautiful people
http://www.irssi.de/
On Monday 11 April 2005 20:07, Marcus Rueckert wrote:
how about filtering by the program field. many modern syslogd support
for example. i filter out my spamassassin messages wth syslog-ng.
Oh I know about syslog-ng; I simply have never gotten around to it. :) Yes, that's something I should do anyway.
mail to this address is discarded unless "/dev/rob0"
or "not-spam" is in Subject: header
participants (4)
-
/dev/rob0
-
Chris Wakelin
-
Marcus Rueckert
-
Rich West