M
M
Maxim2015-11-20 23:18:11
linux
Maxim, 2015-11-20 23:18:11

How to properly configure iRedMail so that....?

How to properly configure iRedMail so that authorization is carried out using the "e-mail" attribute and password?
The examples that are offered on the site use the login that users use to log in.
The current configuration of
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/

Thank you.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question