[Dovecot] LMTP logging

Robert Schetterer rs at sys4.de
Fri Feb 22 19:02:18 EET 2013


Am 22.02.2013 15:50, schrieb Timo Sirainen:
> On Fri, 2013-02-22 at 15:32 +0100, Peter Rindfuss wrote:
>> Hi,
>>
>> Is there a way (in Dovecot 2.1.14) to sent LMTP log entries and IMAP log 
>> entries to different files?  I know I could achieve this with syslog-ng, 
>> but as LDA has a log file of its own, I am wondering if this is possible 
>> with LMTP as well. I apologize if I missed something in the wiki.
> 
> This should work:
> 
> service lmtp {
>   executable = lmtp -L
> }
> protocol lmtp {
>   log_path = ..
> }
> 

or use rsyslog if everything is logged to /var/log/mail.log i.e central
logging

/etc/rsyslog.d/50-default.conf

...
# dovecot
:programname, isequal, "dovecot" /var/log/dovecot.log
#lmtp
:msg, contains, "lmtp" /var/log/dovecot-lmtp.log
....

Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer
Aufsichtsratsvorsitzender: Joerg Heidrich



More information about the dovecot mailing list