[Dovecot] decreasing log messages
Hi,
Since I use "/usr/sbin/dovecot --exec-mail imap" from mutt I get a lot of these in my syslog:
Apr 3 11:09:33 zenon IMAP(ldm): : Connection closed bytes=36/256
Is it possible to suppress them while keeping the "remote users" messages:
Apr 3 10:52:05 zenon dovecot: IMAP(xxxxx): Connection closed bytes=9420/5976987
Apr 3 10:52:08 zenon dovecot: imap-login: Login: user=<xxxxx>, method=PLAIN, ri
p=xx.xx.xx.xx, lip=xx.xx.xx.xx, TLS
Thanks,
On Fri, 2009-04-03 at 11:25 +0200, Louis-David Mitterrand wrote:
Since I use "/usr/sbin/dovecot --exec-mail imap" from mutt I get a lot of these in my syslog:
Apr 3 11:09:33 zenon IMAP(ldm): : Connection closed bytes=36/256
Is it possible to suppress them while keeping the "remote users" messages:
Hmm. How about creating a duplicate dovecot.conf with a different log_info_path, perhaps pointing to /dev/null? Then dovecot -c dovecot-local.conf --exec-mail imap.
On Fri, Apr 03, 2009 at 12:38:12PM -0400, Timo Sirainen wrote:
On Fri, 2009-04-03 at 11:25 +0200, Louis-David Mitterrand wrote:
Since I use "/usr/sbin/dovecot --exec-mail imap" from mutt I get a lot of these in my syslog:
Apr 3 11:09:33 zenon IMAP(ldm): : Connection closed bytes=36/256
Is it possible to suppress them while keeping the "remote users" messages:
Hmm. How about creating a duplicate dovecot.conf with a different log_info_path, perhaps pointing to /dev/null? Then dovecot -c dovecot-local.conf --exec-mail imap.
Good suggestion.
For a server-based solution I added the following filter to my syslog-ng.conf:
filter f_noimapjunk {
not match("IMAP\\([-a-z]+\\): : (Disconnected: Logged out|Connection closed) bytes=");
};
participants (2)
-
Louis-David Mitterrand
-
Timo Sirainen