Single account file with email address as the username

This commit is contained in:
2022-04-10 17:40:27 -05:00
parent 13ea9c20a6
commit e6f243b079
4 changed files with 12 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
{% if defined dovecot_users and dovecot_users is iterable %}
{% foreach user in dovecot_users %}
{{ user.email }}:{{ user.password | password_hash('sha512') }}::::::
{% endfor %}
{% %}

View File

@@ -14,7 +14,7 @@ mail_home = /var/spool/mail/%d/%u
passdb {
driver = passwd-file
args = username_format=%n scheme=SHA512-CRYPT /etc/dovecot/accounts/%d/etc/passwd
args = username_format=%n scheme=SHA512-CRYPT /etc/dovecot/accounts
}
userdb {
driver = static