gau1991
10 years ago
4 changed files with 47 additions and 1 deletions
@ -0,0 +1,11 @@ |
|||
passdb { |
|||
driver = sql |
|||
args = /etc/dovecot/dovecot-sql.conf.ext |
|||
} |
|||
userdb { |
|||
driver = prefetch |
|||
} |
|||
userdb { |
|||
driver = sql |
|||
args = /etc/dovecot/dovecot-sql.conf.ext |
|||
} |
@ -0,0 +1,12 @@ |
|||
driver = mysql |
|||
connect = host=localhost user=vimbadmin password={{password}} dbname=vimbadmin |
|||
default_pass_scheme = MD5 |
|||
password_query = SELECT username as user, password as password, \ |
|||
homedir AS home, maildir AS mail, \ |
|||
concat('*:bytes=', quota) as quota_rule, uid, gid \ |
|||
FROM mailbox \ |
|||
WHERE username = '%Lu' AND active = '1' \ |
|||
AND ( access_restriction = 'ALL' OR LOCATE( access_restriction, '%Us' ) > 0 ) |
|||
user_query = SELECT homedir AS home, maildir AS mail, \ |
|||
concat('*:bytes=', quota) as quota_rule, uid, gid \ |
|||
FROM mailbox WHERE username = '%u' |
Loading…
Reference in new issue