Fix dovecot mysql auth
This commit is contained in:
parent
8b417adff7
commit
e9e38177c3
3 changed files with 3 additions and 19 deletions
roles/dovecot
|
@ -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
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
state: present
|
||||
loop:
|
||||
- dovecot-imapd
|
||||
- dovecot-mysql
|
||||
- dovecot-sieve
|
||||
- dovecot-managesieved
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue