Commits

Zhang Huangbin  committed 606528b

LDAP: Use homeDirectory as maildir path.

  • Participants
  • Parent commits 481957c

Comments (0)

Files changed (2)

File iRedMail/functions/apache_php.sh

     if [ X"${DISTRO}" == X'OPENBSD' ]; then
         # Enable httpd.
         # Note: iRedAdmin doesn't work with chroot.
-        echo 'httpd_flags="-DSSL -u"' >> ${RC_CONF_LOCAL}
+        echo 'httpd_flags="-DSSL -u"  # -u is required by iRedAdmin' >> ${RC_CONF_LOCAL}
 
         # Create /var/www/dev/*random.
         cd /var/www/dev/ && /dev/MAKEDEV random

File 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,mailMessageStore=mail=maildir:PH_STORAGE_BASE_DIR/%$/Maildir/,mailQuota=quota_rule=*:bytes=%$
+user_attrs      = mail=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