From 72d73f05769ff86b80a8da71e275ac8174a328dc Mon Sep 17 00:00:00 2001 From: "root@culturestrings" Date: Sat, 29 Aug 2020 00:17:21 +0000 Subject: dovecot: initial configuration (imap only, require client certificate). --- public/fs/etc/dovecot/conf.d/10-auth.conf | 19 +++++++++++++++++++ public/fs/etc/dovecot/conf.d/10-ssl.conf | 6 ++++++ public/fs/etc/dovecot/dovecot-conf.sh | 13 +++++++++++++ public/fs/etc/dovecot/dovecot.conf.in | 7 +++++++ 4 files changed, 45 insertions(+) create mode 100644 public/fs/etc/dovecot/conf.d/10-auth.conf create mode 100644 public/fs/etc/dovecot/conf.d/10-ssl.conf create mode 100755 public/fs/etc/dovecot/dovecot-conf.sh create mode 100644 public/fs/etc/dovecot/dovecot.conf.in diff --git a/public/fs/etc/dovecot/conf.d/10-auth.conf b/public/fs/etc/dovecot/conf.d/10-auth.conf new file mode 100644 index 0000000..73d15c4 --- /dev/null +++ b/public/fs/etc/dovecot/conf.d/10-auth.conf @@ -0,0 +1,19 @@ +auth_debug = yes +auth_debug_passwords = yes + +auth_ssl_require_client_cert = yes +auth_ssl_username_from_cert = yes + +auth_mechanisms = plain external + +passdb { + driver = passwd-file + args = scheme=PLAIN username_format=%u /etc/dovecot/users + mechanisms = plain external + override_fields = nopassword +} + +userdb { + driver = passwd-file + args = /etc/passwd +} diff --git a/public/fs/etc/dovecot/conf.d/10-ssl.conf b/public/fs/etc/dovecot/conf.d/10-ssl.conf new file mode 100644 index 0000000..ae9669b --- /dev/null +++ b/public/fs/etc/dovecot/conf.d/10-ssl.conf @@ -0,0 +1,6 @@ +ssl_ca =