Enable MySQL user accounts
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
{% 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 %$}
|
||||
Reference in New Issue
Block a user