mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-19 19:22:14 +02:00
DOVECOT.TXT: update user_query for postgresql and some cleanup
- update postgresql user_query to include quota_rule - drop partial user_query without quota_rule - some whitespace fixes
This commit is contained in:
parent
125113d83c
commit
06f57767bd
@ -62,7 +62,7 @@ ssl_key = </etc/dovecot/private/dovecot.pem
|
||||
# login is for outlook express smtpd auth
|
||||
auth_mechanisms = plain login
|
||||
|
||||
# If you're having trouble, try uncommenting these :
|
||||
# If you're having trouble, try uncommenting these:
|
||||
#auth_debug = yes
|
||||
#auth_debug_passwords = yes
|
||||
|
||||
@ -77,7 +77,7 @@ passdb {
|
||||
}
|
||||
|
||||
# Uncomment this if you want Postfix to be able to do smtpd auth through dovecot
|
||||
# At a minimum Postfix probably needs : smtpd_sasl_type = dovecot
|
||||
# At a minimum Postfix probably needs smtpd_sasl_type = dovecot
|
||||
# And additionally: smtpd_sasl_path = private/auth
|
||||
#service auth {
|
||||
# unix_listener /var/spool/postfix/private/auth {
|
||||
@ -126,14 +126,12 @@ default_pass_scheme = MD5-CRYPT
|
||||
password_query = SELECT username AS user,password FROM mailbox WHERE username = '%u' AND active='1'
|
||||
|
||||
# Query to retrieve user information, note uid matches dovecot.conf AND Postfix virtual_uid_maps parameter.
|
||||
user_query = SELECT maildir, 1001 AS uid, 1001 AS gid FROM mailbox WHERE username = '%u' AND active='1'
|
||||
|
||||
|
||||
# MYSQL :
|
||||
# MYSQL:
|
||||
user_query = SELECT CONCAT('/var/mail/vmail/', maildir) AS home, 1001 AS uid, 1001 AS gid,
|
||||
CONCAT('*:bytes=', quota) AS quota_rule FROM mailbox WHERE username = '%u' AND active='1'
|
||||
# PostgreSQL : (no Quota though) :
|
||||
# user_query = SELECT '/var/vmail/mail/' || maildir AS home, 1001 as uid, 1001 as gid FROM mailbox WHERE username = '%u' AND active = '1'
|
||||
# PostgreSQL:
|
||||
# user_query = SELECT '/var/mail/vmail/' || maildir AS home, 1001 AS uid, 1001 AS gid,
|
||||
# '*:bytes=' || quota AS quota_rule FROM mailbox WHERE username = '%u' AND active = '1'
|
||||
|
||||
#END /etc/dovecot/dovecot-sql.conf
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user