* Tomislav Perisic <tomiperi...@gmail.com> 2017.12.01 15:30:

> Does anyone have a working configuration regarding this that they don't
> have a problem with LMTP logging? If yes could you please send me your
> config and dovecot version to compare.
2.2.devel (904765b05):

# doveconf deliver_log_format syslog_facility
deliver_log_format = msgid=%m, time=%{delivery_time}ms, status=%$
syslog_facility = local1

rsyslog.conf:
local1.*                        -/var/log/dovecot/dovecot.log

local1.info                       -/var/log/dovecot/dovecot.info
local1.warn                       -/var/log/dovecot/dovecot.warn
local1.err                        /var/log/dovecot/dovecot.err
if ($syslogfacility-text=='local1') and ($programname=='dovecot') and\
($msg contains 'lmtp') and ($msg contains 'stored mail into mailbox')\
                             then -/var/log/dovecot/dovecot.lmtp

Attachment: signature.asc
Description: PGP signature

Reply via email to