ensure_dovecot/templates/Fedora/35/etc/dovecot/dovecot-sql.conf.ext

9 lines
572 B
Plaintext

{% if dovecot_mysql_server is defined and dovecot_mysql_database is defined and dovecot_mysql_username is defined and dovecot_mysql_password is defined %}
driver = mysql
connect = host={{ dovecot_mysql_server }} dbname={{ dovecot_mysql_database }} user={{ dovecot_mysql_username }} password={{ dovecot_mysql_password }}
default_pass_scheme = SHA512-CRYPT
password_query = SELECT email AS user, password FROM virtual_users WHERE email='%u';
user_query = SELECT email AS user FROM virtual_users WHERE email='%u';
iterate_query = SELECT email AS user FROM users;
{% endif %}