william Famy a écrit :
Hi.
[wf:] No idea? any help welcome.
regards.
I am looking how to allow gosaMailAlternateAddress connection. I use postfix mail server under debian computer.
this is my dovecot-ldap.conf
hosts = 192.168.0.3 auth_bind = yes ldap_version = 3 base = dc=mydc user_attrs = gosaMailServer=postfix #user_filter = (&(objectClass=gosaMailAccount)(mail=%s)) user_filter = (&(objectClass=gosaMailAccount)(|(mail=%u)(gosaMailAlternateAddress=%u))) #(&(objectClass=gosaMailAccount)(mail=%u)) pass_attrs = mail=user,userPassword=password #pass_filter = (&(objectClass=gosaMailAccount)(mail=%s)) pass_filter = (&(objectClass=gosaMailAccount)(|(mail=%u)(gosaMailAlternateAddress=%u))) #(&(objectClass=gosaMailAccount)(mail=%u)) default_pass_scheme = CRYPT user_global_uid = vmail user_global_gid = vmail
i can receveil mail to gosaMailAlternateAddress the filter is OK.
But when i connect to imap to alternateadresse@myserver.org i try to connect with my mail mail@server2.org instead of alternate@server.org
So how to change my dovecot-ldap.conf pass_attrs = mail=user,userPassword=password to allow alternate IMAP connection?
regards.
vs_ldap:/# ldapsearch -v -h 192.168.0.3 -x -W -D "cn=ldap, dc=mydc" -b dc=mydc "(&(objectClass=gosaMailAccount)(|(mail=mail@server2.org)(gosaMailAlternateAddress=alternate@server.org)))"
ldap_initialize( ldap://192.168.0.3 ) Enter LDAP Password: filter: (&(objectClass=gosaMailAccount)(|(mail=alternate@server.org)(gosaMailAlternateAddress=alternate@server.org)))
requesting: All userApplication attributes # extended LDIF # # LDAPv3 # base
with scope subtree # filter: (&(objectClass=gosaMailAccount)(|(mail=alternate@server.org)(gosaMailAlternateAddress=alternate@server.org))) # requesting: ALL #
# william famy, people, mydc dn: cn=william famy,ou=people,dc=mydc sn: famy givenName: william uid: wfamy cn: william famy gosaMailServer: postfix gosaMailQuota: 0 gosaMailDeliveryMode: [L] gosaSpamSortLevel: 0 gosaSpamMailbox: INBOX objectClass: gosaMailAccount objectClass: top objectClass: person objectClass: organizationalPerson objectClass: inetOrgPerson objectClass: gosaAccount mail: mail@server2.org gosaMailAlternateAddress: alternate@server.org sambaLMPassword: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx sambaNTPassword: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx sambaPwdLastSet: xxxxxxxxxxxxx sambaBadPasswordCount: 0 sambaBadPasswordTime: 0 userPassword:: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# search result search: 2 result: 0 Success
# numResponses: 2 # numEntries: 1