I don't really need logging of successful local deliveries since the MTA provides enough data. I can't get rid of LDA delivery logs by setting deliver_log_format All this does is produce an empty log message e.g. Apr 16 01:22:05 dserver dovecot: lda(user): Timo, would you consider inclusion of this patch which will skip logging deliveries if deliver_log_format is empty: --- src/lib-lda/mail-deliver.c~ Sat Apr 16 01:27:23 2011 +++ src/lib-lda/mail-deliver.c Sat Apr 16 01:29:05 2011 @@ -100,2 +100,5 @@ + if (!(ctx->set->deliver_log_format) || !(*ctx->set->deliver_log_format)) + return; + va_start(args, fmt); Joseph Tam <jtam.home at gmail.com>
On Sat, 2011-04-16 at 03:04 -0700, Joseph Tam wrote:> I don't really need logging of successful local deliveries since the MTA > provides enough data. I can't get rid of LDA delivery logs by setting > > deliver_log_format > > All this does is produce an empty log message e.g. > > Apr 16 01:22:05 dserver dovecot: lda(user): > > Timo, would you consider inclusion of this patch which will skip > logging deliveries if deliver_log_format is empty:Committed, slightly modified: http://hg.dovecot.org/dovecot-2.0/rev/0e406e7cb609
> > Timo, would you consider inclusion of this patch which will skip > > logging deliveries if deliver_log_format is empty: > > Committed, slightly modified: > http://hg.dovecot.org/dovecot-2.0/rev/0e406e7cb609Thanks. I tried to contribute by updating the wiki docs, but it belched when I saved the update: TextCha: Wrong answer! Go back and try again... Here's what I tried to add at the bottom (in text mode) The {{{deliver_log_format}}} specifies logging details for a successful delivery. (versions>2.0.13: leaving it empty will disable this logging). See example configuration files for a full list of variable expansion: {{{ delivery_log_format = msgid=%m: %$ }}} Joseph Tam <jtam.home at gmail.com>