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. Thanks, Peter
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 = .. }
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
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 = .. > } >Thanks, it works ... but now LMTP is logged to both the main log and the lmtp log. Peter