Commits

Zhang Huangbin committed 04eb92d

Fixed: Addition setting in Dovecot userdb lookup for Master User.

Comments (0)

Files changed (3)

extra/translations/README

 Updated translations (March 13, 2013):
 
     + French (fr_FR). Thanks Shafeek Sumser <shafeeks _at_ gmail.com>.
-    + Portuguese (Brazilian, pt_BR). Thanks Wendell Martins Borges <perlporter _at_ gmail.com>."
+    + Portuguese (Brazilian, pt_BR). Thanks Wendell Martins Borges <perlporter _at_ gmail.com>.
     + Finnish (fi_FI). Thanks Teemu Harjula <teemu.harjula _at_ tietovirta.fi>.
     + Itilian (it_IT). Thanks Nicolas Cauchie <nicolas _at_
       franceoxygene.fr>, Riccardo Raggi <riccardo _at_ raggi.eu>, and Alberto

iRedMail/samples/dovecot/dovecot-ldap.conf

 #iterate_filter  = (&(objectClass=mailUser)(accountStatus=active)(enabledService=mail))
 
 user_filter     = (&(objectClass=mailUser)(accountStatus=active)(enabledService=mail)(enabledService=%Ls%Lc)(|(mail=%u)(&(enabledService=shadowaddress)(shadowAddress=%u))))
-user_attrs      = mail=user,homeDirectory=home,=mail=maildir:~/Maildir/,mailQuota=quota_rule=*:bytes=%$
+user_attrs      = mail=user,mail=master_user,homeDirectory=home,=mail=maildir:~/Maildir/,mailQuota=quota_rule=*:bytes=%$
 pass_filter     = (&(objectClass=mailUser)(accountStatus=active)(enabledService=mail)(enabledService=%Ls%Lc)(|(mail=%u)(&(enabledService=shadowaddress)(shadowAddress=%u))))
 pass_attrs      = mail=user,userPassword=password
 default_pass_scheme = CRYPT

iRedMail/samples/dovecot/dovecot-sql.conf

 #iterate_query = SELECT username AS user FROM mailbox
 password_query = SELECT password FROM mailbox WHERE username='%u' AND active='1'
 user_query = SELECT \
+    '%u' AS master_user, \
     CONCAT(mailbox.storagebasedirectory, '/', mailbox.storagenode, '/', mailbox.maildir) AS home, \
     CONCAT('*:bytes=', mailbox.quota*1048576) AS quota_rule \
 FROM mailbox,domain \