Commits

Zhang Huangbin committed 97d479a

Enable auth_default_realm in Dovecot again.

Comments (0)

Files changed (3)

iRedMail/functions/dovecot1.sh

 
 # Default realm/domain to use if none was specified.
 # This is used for both SASL realms and appending '@domain.ltd' to username in plaintext logins.
-#auth_default_realm = ${FIRST_DOMAIN}
+auth_default_realm = ${FIRST_DOMAIN}
 
 # ---- NFS storage ----
 # Set to 'no' For NFSv2. Default is 'yes'.

iRedMail/functions/roundcubemail.sh

     perl -pi -e 's#(.*useragent.*=).*#${1} "RoundCube WebMail";#' main.inc.php
 
     # Set defeault domain.
-    #perl -pi -e 's#(.*username_domain.*=)(.*)#${1} "$ENV{'FIRST_DOMAIN'}";#' main.inc.php
+    perl -pi -e 's#(.*username_domain.*=)(.*)#${1} "$ENV{FIRST_DOMAIN}";#' main.inc.php
 
     # Disable multiple identities.
     # 0 - many identities with possibility to edit all params

iRedMail/samples/dovecot/dovecot2.conf

 
 # Authentication related settings.
 # Append this domain name if client gives empty realm.
-#auth_default_realm = PH_AUTH_DEFAULT_REALM
+auth_default_realm = PH_AUTH_DEFAULT_REALM
 
 # Authentication mechanisms.
 auth_mechanisms = PH_AUTH_MECHANISMS