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. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20090403/f824b5e9/attachment-0002.bin>
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="); }; -- http://www.critikart.net