[SOGo] Multiple domain single LDAP
Hi, i have a single active directory domain (domain.tld) and each user has multiple email (us...@domain1.com us...@domain2.com etc...). SOGo takes the LDAP email attribute retrived with the binding to select the imap mailbox, and in AD this is a single value. How can i configure sogo to allow users login with the full email and access the specific mailbox? login with us...@domain1.com --> access mailbox user1 on domain1.com login with us...@domain2.com --> access mailbox user1 on domain2.com If i change the attribute in active directory it works correctly, but it's not the solution... Thanks Alessio -- users@sogo.nu https://inverse.ca/sogo/lists
Re: Re: [SOGo] Multiple domain
sorry for my ignorance, but do not really understand what I indicate. Could you give me some more detail on how to do? Thank you very much. -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] Multiple domain
You mean this? http://www.sogo.nu/files/docs/SOGo%20Installation%20Guide.pdf Chapter 5, Page 39 Multi-domains Configuration Greetings, Martin Am 25.09.13 12:14, schrieb javier.marin.re...@gmail.com: sorry for my ignorance, but do not really understand what I indicate. Could you give me some more detail on how to do? Thank you very much. -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] Multiple domain
2013-09-25 12:14 keltezéssel, javier.marin.re...@gmail.com írta: sorry for my ignorance, but do not really understand what I indicate. Could you give me some more detail on how to do? Thank you very much. Example - three users and three domains. User 1 us...@first.com us...@second.com us...@third.com User 2 us...@second.com us...@third.com User 3 us...@third.com LDAP is the Samba4 AD # user 1 dn: cn=user1;cn=users,dc=example,dc=local mail: us...@first.com othermailbox: us...@second.com othermailbox: us...@third.com # user 2 dn: cn=user2;cn=users,dc=example,dc=local mail: us...@second.com othermailbox: us...@third.com # user 3 dn: cn=user3;cn=users,dc=example,dc=local mail: us...@third.com *Postfix related settings* postfix-ldap.conf: version = 3 server_host = 127.0.0.1 server_port = 389 timeout = 60 search_base = cn=users,dc=example,dc=local query_filter = (|(mail=%s)(otherMailbox=%s)) result_attribute = sAMAccountName bind = yes bind_dn = cn=administrator,cn=users,dc=example,dc=local bind_pw = Som3P@ss # -- End main.cf: virtual_alias_maps = ldap:/etc/postfix/postfix-ldap.conf relay_transport = ldap:/etc/postfix/postfix-ldap.conf virtual_mailbox_domains = first.com, second.com, third.com, example.local # -- End *Dovecot related settings* dovecot-ldap.conf: hosts = 127.0.0.1:389 dn = cn=administrator,cn=users,dc=example,dc=local dnpass = Som3P@ss auth_bind = yes tls = no deref = never ldap_version = 3 base = cn=users,dc=example,dc=local scope = subtree user_attrs = =home=/var/mail,=uid=5000,=gid=5000 user_filter = ((sAMAccountName=%u)(objectClass=person)(!(userAccountControl=514))) pass_filter = ((sAMAccountName=%u)(objectClass=person)(!(userAccountControl=514))) pass_attrs = userPassword=password,sAMAccountName=user *SOGo related settings* SOGoUserSources = ( { CNFieldName = displayName; IDFieldName = cn; MailFieldNames = ( mail, otherMailbox ); SearchFieldNames = ( sn, sAMAccountName, mail, otherMailbox, displayName ); UIDFieldName = sAMAccountName; baseDN = cn=users,dc=example,dc=local; bindDN = cn=administrator,cn=users,dc=example,dc=local; bindFileds = ( sAMAccountName ); bindPassword = Som3P@ss; canAuthenticate = YES; displayName = Shared Addresses; hostname = 127.0.0.1; id = someid; isAddressBook = YES; port = 389; } ); I'm using four domains In my system in one SOGo instance with configured services such as above. It's working fine. -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] Multiple domain
Hi, I would just double confirm based on the sample given. Can I have us...@first.com who is different than us...@second.com? On Wednesday, September 25, 2013, Szládovics Péter wrote: 2013-09-25 12:14 keltezéssel, javier.marin.re...@gmail.comjavascript:_e({}, 'cvml', 'javier.marin.re...@gmail.com');írta: sorry for my ignorance, but do not really understand what I indicate. Could you give me some more detail on how to do? Thank you very much. Example - three users and three domains. User 1 us...@first.com javascript:_e({}, 'cvml', 'us...@first.com'); us...@second.com javascript:_e({}, 'cvml', 'us...@second.com'); us...@third.com javascript:_e({}, 'cvml', 'us...@third.com'); User 2 us...@second.com javascript:_e({}, 'cvml', 'us...@second.com'); us...@third.com javascript:_e({}, 'cvml', 'us...@third.com'); User 3 us...@third.com javascript:_e({}, 'cvml', 'us...@third.com'); LDAP is the Samba4 AD # user 1 dn: cn=user1;cn=users,dc=example,dc=local mail: us...@first.com javascript:_e({}, 'cvml', 'us...@first.com'); othermailbox: us...@second.com javascript:_e({}, 'cvml', 'us...@second.com'); othermailbox: us...@third.com javascript:_e({}, 'cvml', 'us...@third.com'); # user 2 dn: cn=user2;cn=users,dc=example,dc=local mail: us...@second.com javascript:_e({}, 'cvml', 'us...@second.com'); othermailbox: us...@third.com javascript:_e({}, 'cvml', 'us...@third.com'); # user 3 dn: cn=user3;cn=users,dc=example,dc=local mail: us...@third.com javascript:_e({}, 'cvml', 'us...@third.com'); *Postfix related settings* postfix-ldap.conf: version = 3 server_host = 127.0.0.1 server_port = 389 timeout = 60 search_base = cn=users,dc=example,dc=local query_filter = (|(mail=%s)(otherMailbox=%s)) result_attribute = sAMAccountName bind = yes bind_dn = cn=administrator,cn=users,dc=example,dc=local bind_pw = Som3P@ss # -- End main.cf: virtual_alias_maps = ldap:/etc/postfix/postfix-ldap.conf relay_transport = ldap:/etc/postfix/postfix-ldap.conf virtual_mailbox_domains = first.com, second.com, third.com, example.local # -- End *Dovecot related settings* dovecot-ldap.conf: hosts = 127.0.0.1:389 dn = cn=administrator,cn=users,dc=example,dc=local dnpass = Som3P@ss auth_bind = yes tls = no deref = never ldap_version = 3 base = cn=users,dc=example,dc=local scope = subtree user_attrs = =home=/var/mail,=uid=5000,=gid=5000 user_filter = ((sAMAccountName=%u)(objectClass=person)(!(userAccountControl=514))) pass_filter = ((sAMAccountName=%u)(objectClass=person)(!(userAccountControl=514))) pass_attrs = userPassword=password,sAMAccountName=user *SOGo related settings* SOGoUserSources = ( { CNFieldName = displayName; IDFieldName = cn; MailFieldNames = ( mail, otherMailbox ); SearchFieldNames = ( sn, sAMAccountName, mail, otherMailbox, displayName ); UIDFieldName = sAMAccountName; baseDN = cn=users,dc=example,dc=local; bindDN = cn=administrator,cn=users,dc=example,dc=local; bindFileds = ( sAMAccountName ); bindPassword = Som3P@ss; canAuthenticate = YES; displayName = Shared Addresses; hostname = 127.0.0.1; id = someid; isAddressBook = YES; port = 389; } ); I'm using four domains In my system in one SOGo instance with configured services such as above. It's working fine. -- users@sogo.nu https://inverse.ca/sogo/lists
[SOGo] Multiple domain
How can I configure SOGO for a user to receive emails from multiple domains, for example u...@domain2.com and u...@domain1.com? thanks -- users@sogo.nu https://inverse.ca/sogo/lists
Re: [SOGo] Multiple domain
2013-09-24 22:13 keltezéssel, javier.marin.re...@gmail.com írta: How can I configure SOGO for a user to receive emails from multiple domains, for example u...@domain2.com and u...@domain1.com? thanks Use an alternate ldap property for other mail addresses (e.g. otherMailbox), and configure it in dovecot ldap and postfix ldap configs. -- users@sogo.nu https://inverse.ca/sogo/lists