Skip to content

Postfix and dovecot logging timestamp#6

Merged
mumahendras3 merged 2 commits into
mumahendras3:masterfrom
belka-ew:fix/maillog-date
Dec 29, 2020
Merged

Postfix and dovecot logging timestamp#6
mumahendras3 merged 2 commits into
mumahendras3:masterfrom
belka-ew:fix/maillog-date

Conversation

@belka-ew

Copy link
Copy Markdown
Contributor

Both postfix and dovecot already log the date/time.

dovecot logs:

Dec 29 09:07:10 imap-login: Info: Login: user=belka@caraus.de, method=CRAM-MD5, rip=1.2.3.4, lip=5.6.7.8, mpid=12345678, TLS, session=<12345678>

postfix has pretty the same format but with the hostname after the date/time.

The date/time can probably be disabled in dovecot by setting log_timestamp to an empty string. The default is:

# Prefix for each line written to log file. % codes are in strftime(3)
# format.
#log_timestamp = "%b %d %H:%M:%S "

I couldn't find a similar option for postfix, even logging to stdout is relative new for postfix.

@mumahendras3

Copy link
Copy Markdown
Owner

Ok, thanks for reporting this. As long as the timestamps are there by default, we should drop the T directive in env/LOG_SCRIPT.

Merging it now.

@mumahendras3 mumahendras3 merged commit 82a11fa into mumahendras3:master Dec 29, 2020
@belka-ew belka-ew deleted the fix/maillog-date branch December 29, 2020 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants