william Famy
2008-Sep-19 10:07 UTC
[Dovecot] dovecot-ldap.conf and gosaMailAlternateAddress
Hi. 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 at myserver.org i try to connect with my mail mail at server2.org instead of alternate at 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 at server2.org)(gosaMailAlternateAddress=alternate at server.org)))" ldap_initialize( ldap://192.168.0.3 ) Enter LDAP Password: filter: (&(objectClass=gosaMailAccount)(|(mail=alternate at server.org)(gosaMailAlternateAddress=alternate at server.org))) requesting: All userApplication attributes # extended LDIF # # LDAPv3 # base <dc=mydc> with scope subtree # filter: (&(objectClass=gosaMailAccount)(|(mail=alternate at server.org)(gosaMailAlternateAddress=alternate at 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 at server2.org gosaMailAlternateAddress: alternate at 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
william Famy
2008-Oct-02 20:47 UTC
[Dovecot] dovecot-ldap.conf and gosaMailAlternateAddress
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 at myserver.org > i try to connect with my mail mail at server2.org instead of > alternate at 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 at server2.org)(gosaMailAlternateAddress=alternate at server.org)))" > > ldap_initialize( ldap://192.168.0.3 ) > Enter LDAP Password: > filter: > (&(objectClass=gosaMailAccount)(|(mail=alternate at server.org)(gosaMailAlternateAddress=alternate at server.org))) > > requesting: All userApplication attributes > # extended LDIF > # > # LDAPv3 > # base <dc=mydc> with scope subtree > # filter: > (&(objectClass=gosaMailAccount)(|(mail=alternate at server.org)(gosaMailAlternateAddress=alternate at 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 at server2.org > gosaMailAlternateAddress: alternate at 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 > >