feat: add mail
This commit is contained in:
22
mail/conf/dovecot/dovecot-sql-pgsql.conf
Normal file
22
mail/conf/dovecot/dovecot-sql-pgsql.conf
Normal file
@@ -0,0 +1,22 @@
|
||||
driver = pgsql
|
||||
connect = host=dbserver dbname=postfix user=postgres password=psqlpass
|
||||
default_pass_scheme = MD5-CRYPT
|
||||
|
||||
user_query = \
|
||||
SELECT \
|
||||
'/var/mail/domains/%u/' as home, \
|
||||
'maildir:/var/mail/domains/%u/' as mail, \
|
||||
8 as uid, \
|
||||
12 as gid\
|
||||
FROM mailbox \
|
||||
WHERE username = '%u' AND active = true
|
||||
|
||||
password_query = SELECT \
|
||||
username AS user, \
|
||||
password, \
|
||||
8 as userdb_uid, \
|
||||
12 as userdb_gid, \
|
||||
'/var/mail/domains/' || maildir AS userdb_home, \
|
||||
'/var/mail/domains/' || maildir AS userdb_mail \
|
||||
FROM mailbox \
|
||||
WHERE username = '%u' AND active = true
|
||||
Reference in New Issue
Block a user