42 lines
1.1 KiB
Text
42 lines
1.1 KiB
Text
# THIS FILE IS CONTROLLED BY ANSIBLE - DO NOT CHANGE IN DEPLOYMENT!
|
|
|
|
|
|
# Authentication for SQL users. Included from 10-auth.conf.
|
|
#
|
|
# <doc/wiki/AuthDatabase.SQL.txt>
|
|
|
|
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.
|
|
# <doc/wiki/UserDatabase.Prefetch.txt>
|
|
#userdb {
|
|
# driver = prefetch
|
|
#}
|
|
|
|
userdb {
|
|
driver = sql
|
|
args = /etc/dovecot/dovecot-sql.conf.ext
|
|
}
|
|
# using the static driver will cause the iterate_query
|
|
# in /etc/dovecot/dovecot-sql.conf.ext
|
|
# to fail (e.g. for 'doveadm mailbox list -A'),
|
|
# so we also fetch the userdb via sql, even if this would be faster:
|
|
#userdb {
|
|
# driver = static
|
|
# args = uid=mailstore gid=mailstore home=/srv/mailstore/%d/%n
|
|
#}
|
|
|
|
|
|
# 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:
|
|
# <doc/wiki/UserDatabase.Static.txt>
|
|
#userdb {
|
|
#driver = static
|
|
#args = uid=vmail gid=vmail home=/var/vmail/%u
|
|
#}
|