X-Git-Url: https://git.ralfj.de/ansible.git/blobdiff_plain/a0ef97a3169e9da8b4618116075d54c49b4292b4..46730acf42cbde7d087b887eb78c3f06dc27d9ca:/roles/email/templates/dovecot/conf.d/auth-sql.conf.ext diff --git a/roles/email/templates/dovecot/conf.d/auth-sql.conf.ext b/roles/email/templates/dovecot/conf.d/auth-sql.conf.ext new file mode 100644 index 0000000..7e06a4f --- /dev/null +++ b/roles/email/templates/dovecot/conf.d/auth-sql.conf.ext @@ -0,0 +1,30 @@ +# Authentication for SQL users. Included from 10-auth.conf. +# +# + +passdb { + driver = sql + + # Path for SQL configuration file, see example-config/dovecot-sql.conf.ext + args = /etc/dovecot/dovecot-sql.conf.ext +} + +# "prefetch" user database means that the passdb already provided the +# needed information and there's no need to do a separate userdb lookup. +# +userdb { + driver = prefetch +} + +userdb { + driver = sql + args = /etc/dovecot/dovecot-sql.conf.ext +} + +# If you don't have any user-specific settings, you can avoid the user_query +# by using userdb static instead of userdb sql, for example: +# +#userdb { + #driver = static + #args = uid=vmail gid=vmail home=/var/vmail/%u +#}