[Dovecot] LMTP logging

Peter Rindfuss peter.rindfuss at wzb.eu
Sun Feb 24 17:43:39 EET 2013


Am 24.02.2013 16:08, schrieb Timo Sirainen:
> On 22.2.2013, at 22.20, Peter Rindfuss <peter.rindfuss at wzb.eu>
> wrote:
>
>> 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.
>
> 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.
>

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






More information about the dovecot mailing list