[Dovecot] LMTP logging
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
Am 22.02.2013 15:50, schrieb Timo Sirainen:
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
On 22.2.2013, at 22.20, Peter Rindfuss <peter.rindfuss@wzb.eu> wrote:
In what way? The exact same messages? If they go through syslog then that's possible, but not if Dovecot logs directly to a file. Dovecot doesn't even have code to be able to to log to two places at the same time.
Am 24.02.2013 16:08, schrieb Timo Sirainen:
I thought I had restarted dovecot after adding "lmtp -L", but I might have forgotten, or reloaded instead of restarted. Anyway, what I saw was distinct LMTP log entries in both files (not for the same messages). After a complete restart of dovecot, everything goes where it should go.
Thanks, Peter
participants (3)
-
Peter Rindfuss
-
Robert Schetterer
-
Timo Sirainen