From 7f5f30bd4ffb59694657f68671acb573f8f65f83 Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Thu, 3 Mar 2016 08:02:56 +0100 Subject: [PATCH] Switch dovecot to LDAP auth. --- .../templates/dovecot/dovecot-ldap.conf.ext.j2 | 4 ++-- roles/mail/templates/dovecot/local.conf.j2 | 16 ++++++---------- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/roles/mail/templates/dovecot/dovecot-ldap.conf.ext.j2 b/roles/mail/templates/dovecot/dovecot-ldap.conf.ext.j2 index 8e48ec8..9aedae6 100644 --- a/roles/mail/templates/dovecot/dovecot-ldap.conf.ext.j2 +++ b/roles/mail/templates/dovecot/dovecot-ldap.conf.ext.j2 @@ -45,14 +45,14 @@ dnpass = {{ ldap_bindpw }} # Use TLS to connect to the LDAP server. tls = yes # TLS options, currently supported only with OpenLDAP: -#tls_ca_cert_file = +#tls_ca_cert_file = TODO #tls_ca_cert_dir = #tls_cipher_suite = # TLS cert/key is used only if LDAP server requires a client certificate. #tls_cert_file = #tls_key_file = # Valid values: never, hard, demand, allow, try -#tls_require_cert = +#tls_require_cert = TODO # Use the given ldaprc path. #ldaprc_path = diff --git a/roles/mail/templates/dovecot/local.conf.j2 b/roles/mail/templates/dovecot/local.conf.j2 index 6947dbe..91d8f23 100644 --- a/roles/mail/templates/dovecot/local.conf.j2 +++ b/roles/mail/templates/dovecot/local.conf.j2 @@ -1,7 +1,8 @@ auth_mechanisms = plain login auth_verbose = yes - auth_debug=yes +disable_plaintext_auth = yes + mail_debug = yes log_path = /var/log/dovecot/errors.log info_log_path = /var/log/dovecot/info.log @@ -21,14 +22,9 @@ ssl_key =