aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-03-07 18:39:47 +0800
committerAaron LI <aly@aaronly.me>2018-03-14 11:35:08 +0800
commit9110251275632904a9aa20fda811ca3bde20ada2 (patch)
tree4821e91476521fd28184a96017600580d5d9a129
parent1988a3dea8297735e8a333548815f28bff509107 (diff)
downloadansible-dfly-vps-9110251275632904a9aa20fda811ca3bde20ada2.tar.bz2
mail/dovecot: improve login log format
-rw-r--r--roles/mail/templates/dovecot/dovecot.conf.j28
1 files changed, 5 insertions, 3 deletions
diff --git a/roles/mail/templates/dovecot/dovecot.conf.j2 b/roles/mail/templates/dovecot/dovecot.conf.j2
index 134a9fd..86cb08c 100644
--- a/roles/mail/templates/dovecot/dovecot.conf.j2
+++ b/roles/mail/templates/dovecot/dovecot.conf.j2
@@ -5,9 +5,11 @@
# References
# ----------
# * Dovecot - Quick Configuration
-# http://wiki2.dovecot.org/QuickConfiguration
+# https://wiki.dovecot.org/QuickConfiguration
# * Dovecot - SSL Configuration
# https://wiki.dovecot.org/SSL/DovecotConfiguration
+# * Dovecot - Variables
+# https://wiki.dovecot.org/Variables
# * Multiple domains and virtual users (Postfix/Dovecot/SASL)
# http://void.ideabite.org/2013/07/28/multiple-domains-and-virtual-users/
#
@@ -97,8 +99,8 @@ auth_verbose_passwords = sha1
# the client sent before any changes by auth process, to keep track of
# the actual usages.
#
-login_log_format_elements = user=<%{orig_user}> method=%m \
- rip=%r lip=%l mpid=%e %c
+login_log_format_elements = login_user=<%{orig_user}> user=<%u> \
+ method=%m rip=%r lip=%l mpid=%e %k
##