Fix dovecot mysql auth

This commit is contained in:
s3lph 2021-02-16 22:53:37 +01:00
parent 8b417adff7
commit e9e38177c3
3 changed files with 3 additions and 19 deletions
roles/dovecot
defaults/main
tasks
templates/etc/dovecot

View file

@ -2,6 +2,5 @@
virtual_mail_uid: virtual
virtual_mail_gid: virtual
virtual_mail_user_home: /home/virtual/%d/%n
virtual_mail_home: /home/virtual
virtual_mail_home: /home/virtual/%d/%n
virtual_mail_location: maildir:~/Maildir

View file

@ -6,6 +6,7 @@
state: present
loop:
- dovecot-imapd
- dovecot-mysql
- dovecot-sieve
- dovecot-managesieved

View file

@ -233,23 +233,6 @@ passdb {
args = /etc/dovecot/dovecot-sql.conf
}
passdb {
driver = passwd-file
args = scheme={{ dovecot_passdb_scheme }} username_format={{ dovecot_passdb_user_format }} {{ dovecot_passdb_filename }}
}
userdb {
driver = passwd-file
args = username_format={{ dovecot_passdb_user_format }} {{ dovecot_passdb_filename }}
default_fields = uid={{ virtual_mail_uid }} gid={{ virtual_mail_gid }} home={{ virtual_mail_user_home }}
# Default fields that can be overridden by passwd-file
#default_fields = quota_rule=*:storage=1G
# Override fields from passwd-file
#override_fields = home=/home/virtual/%u
}
##
## Mailbox locations and namespaces
##
@ -280,6 +263,7 @@ userdb {
# <doc/wiki/MailLocation.txt>
#
mail_location = {{ virtual_mail_location }}
mail_home = {{ virtual_mail_home }}
# If you need to set multiple mailbox locations or want to change default
# namespace settings, you can do it by defining namespace sections.