Hi, I'm using Dovecot 2.0.1, and I log to a custom syslog facility (local0) in the main configuration (I want a separate log file, but I want to make use of rsyslogd's capabilities). I overwrite the syslog facility for LDA (mail) to have all delivery related stuff in /var/log/mail.log, and that works fine. I tried to do the same for LMTP with protocol lmtp { syslog_facility = mail } but this has no effect, LMTP logs to local0. Is this supposed to work, or is this not implemented at all? If not, is using a logfile in main config, but syslog in lmtp supported? Thanks Rainer
On Tue, 2010-09-07 at 09:23 +0200, Rainer Frey wrote:> protocol lmtp { > syslog_facility = mail > } > > but this has no effect, LMTP logs to local0. Is this supposed to work, or is > this not implemented at all? If not, is using a logfile in main config, but > syslog in lmtp supported?The problem is that all logging goes through log process, which currently only supports a single logging destination. But .. I think you can make lmtp processes bypass log process by setting: service lmtp { executable = lmtp -L }
On Tuesday 07 September 2010 16:21:35 Timo Sirainen wrote:> On Tue, 2010-09-07 at 09:23 +0200, Rainer Frey wrote: > > protocol lmtp { > > > > syslog_facility = mail > > > > } > > > > but this has no effect, LMTP logs to local0. Is this supposed to work, or > > is this not implemented at all? If not, is using a logfile in main > > config, but syslog in lmtp supported? > > The problem is that all logging goes through log process, which > currently only supports a single logging destination. But .. I think you > can make lmtp processes bypass log process by setting: > > service lmtp { > executable = lmtp -L > }This has no effect (logging still with global syslog_facility). Thanks anyway for your assistance. This is a very minor issue for me. Rainer
On Wed, 2010-09-08 at 14:00 +0200, Rainer Frey wrote:> > The problem is that all logging goes through log process, which > > currently only supports a single logging destination. But .. I think you > > can make lmtp processes bypass log process by setting: > > > > service lmtp { > > executable = lmtp -L > > } > > This has no effect (logging still with global syslog_facility). Thanks anyway > for your assistance. This is a very minor issue for me.Looks like there was a bug. Fixed: http://hg.dovecot.org/dovecot-2.0/rev/7fef89fea00e
On Wednesday 08 September 2010 16:11:43 Timo Sirainen wrote:> On Wed, 2010-09-08 at 14:00 +0200, Rainer Frey wrote: > > > The problem is that all logging goes through log process, which > > > currently only supports a single logging destination. But .. I think > > > you can make lmtp processes bypass log process by setting: > > > > > > service lmtp { > > > > > > executable = lmtp -L > > > > > > } > > > > This has no effect (logging still with global syslog_facility). Thanks > > anyway for your assistance. This is a very minor issue for me. > > Looks like there was a bug. Fixed: > http://hg.dovecot.org/dovecot-2.0/rev/7fef89fea00eIndeed. Works now with 2.0.2. Thanks. Rainer