|
|
|
@ -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
|
|
|
|
|
|
|
|
|
|