]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lmtp: Fix restoring global log prefix after session is finished
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 14 Nov 2022 21:27:33 +0000 (23:27 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Mon, 21 Nov 2022 12:39:59 +0000 (12:39 +0000)
Broken by 069dfd657fd91a0e2a3a9307a0cf499d795f27f2

This change also slightly changes the lmtp log prefixes in some places.
It removes "conn $ip:$port [$idx]: rcpt $user:" from some of the log
messages (but that wasn't in all of the log messages anyway), but it now
always includes mail_log_prefix in these log messages, which previously
wasn't always set at that point yet.

src/lmtp/main.c

index ca3946ecfec4690547364859f8460315185b95ea..fb9ada8f060509e15d3942003bb2ba875021c22a 100644 (file)
@@ -126,7 +126,6 @@ int main(int argc, char *argv[])
        enum mail_storage_service_flags storage_service_flags =
                MAIL_STORAGE_SERVICE_FLAG_USERDB_LOOKUP |
                MAIL_STORAGE_SERVICE_FLAG_TEMP_PRIV_DROP |
-               MAIL_STORAGE_SERVICE_FLAG_NO_LOG_INIT |
                MAIL_STORAGE_SERVICE_FLAG_NO_IDLE_TIMEOUT;
        const char *tmp_base_dir;
        int c;