[Dovecot] lmtp -- save failed to INBOX: BUG: Unknown internal error
Jan-Frode Myklebust
janfrode at tanso.net
Thu Sep 8 13:44:19 EEST 2011
On Thu, Sep 08, 2011 at 01:31:22PM +0300, Timo Sirainen wrote:
>
> > I couldn't find any.. but these BUG:-messages were logged as
> > debug or info level syslog messages, which quickly drowns in everything
> > else on busy pop/imap-servers.
>
> That's why I prefer logging errors and warnings to separate logs. Those errors logs should always stay empty. You can do this either by configuring syslog or just setting e.g.:
>
> log_path = /var/log/dovecot-errors.log
> info_log_path = syslog
We have that trough syslog:
mail.debug -/var/log/maillog.debug
mail.* -/var/log/maillog
mail.warning -/var/log/maillog.warning
mail.err -/var/log/maillog.errors
mail.crit -/var/log/maillog.crit
but these BUG-messages only ended up in /var/log/maillog and
/var/log/maillog.debug, so I think they were logged with wrong severity.
But "those errors logs should always stay empty" isn't quite true for us..,
since every failed ldap bind() authentication is logged as an error:
$ sudo wc -l maillog.errors
2063 maillog.errors
$ sudo head -1 maillog.errors ; sudo tail -1 maillog.errors
Sep 8 04:02:43 popimap1 dovecot: auth: Error: ldap(user2,192.168.42.15): ldap_bind() failed: No such object
Sep 8 12:39:46 popimap1 dovecot: auth: Error: ldap(user1,192.168.42.15): ldap_bind() failed: No such object
-jf
More information about the dovecot
mailing list