summaryrefslogtreecommitdiff
path: root/roles/dovecot/files/conf.d/auth-deny.conf.ext
diff options
context:
space:
mode:
Diffstat (limited to 'roles/dovecot/files/conf.d/auth-deny.conf.ext')
-rw-r--r--roles/dovecot/files/conf.d/auth-deny.conf.ext15
1 files changed, 15 insertions, 0 deletions
diff --git a/roles/dovecot/files/conf.d/auth-deny.conf.ext b/roles/dovecot/files/conf.d/auth-deny.conf.ext
new file mode 100644
index 0000000..ce3f1cf
--- /dev/null
+++ b/roles/dovecot/files/conf.d/auth-deny.conf.ext
@@ -0,0 +1,15 @@
+# Deny access for users. Included from 10-auth.conf.
+
+# Users can be (temporarily) disabled by adding a passdb with deny=yes.
+# If the user is found from that database, authentication will fail.
+# The deny passdb should always be specified before others, so it gets
+# checked first.
+
+# Example deny passdb using passwd-file. You can use any passdb though.
+passdb {
+ driver = passwd-file
+ deny = yes
+
+ # File contains a list of usernames, one per line
+ args = /etc/dovecot/deny-users
+}