Как правильно настроить iRedMail так, что бы авторизация производилась по атрибуту "e-mail" и паролю?
Примеры, которые предлагают на сайте, используют логин, которым пользователи входят в систему.
Нынешняя конфигурация
sender_login_maps.cf
server_host = dc.on.loc
server_port = 389
version = 3
bind = yes
start_tls = no
bind_dn = CN=iredmail,CN=Users,DC=on,DC=loc
bind_pw = пароль
search_base = OU=GB,DC=on,DC=loc
scope = sub
query_filter = (&(userPrincipalName=%s)(objectClass=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))
result_attribute = userPrincipalName
debuglevel = 0
virtual_mailbox_maps.cf
server_host = dc.on.loc
server_port = 389
version = 3
bind = yes
start_tls = no
bind_dn = CN=iredmail,CN=Users,DC=on,DC=loc
bind_pw = пароль
search_base = OU=GB,DC=on,DC=loc
scope = sub
query_filter = (&(objectclass=person)(userPrincipalName=%s))
result_attribute= userPrincipalName
result_format = %d/%u/Maildir/
debuglevel = 0
virtual_group_maps.cf
server_host = dc.on.loc
server_port = 389
version = 3
bind = yes
start_tls = no
bind_dn = CN=iredmail,CN=Users,DC=on,DC=loc
bind_pw = пароль
search_base = OU=GB,DC=on,DC=loc
scope = sub
query_filter = (&(objectClass=group)(mail=%s))
special_result_attribute = member
leaf_result_attribute = mail
debuglevel = 0
dovecot-ldap.conf
hosts = dc.on.loc:389
ldap_version = 3
auth_bind = yes
dn = iredmail
dnpass = пароль
base = OU=GB,DC=on,DC=loc
scope = subtree
deref = never
user_filter = (&(userPrincipalName=%u)(objectClass=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))
pass_filter = (&(userPrincipalName=%u)(objectClass=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))
pass_attrs = userPassword=password
default_pass_scheme = CRYPT
user_attrs = =home=/var/vmail/vmail1/%Ld/%Ln/Maildir/,=mail=maildir:/var/vmail/vmail1/%Ld/%Ln/Maildir/
Спасибо.