Hi Code,
what you want is certainly possible; how it is to be done, depends on the client you're using. As you're mentioning Community Edition, I assume you're using Scalix Web Access.
If you check your /etc/opt/scalix/webmail/partner.xml config file, you'll see a section looking like this:
Code: Select all
<ldapSource>
<type>system</type>
<server>frodo.bamail.net</server>
<port>389</port>
<basedn>o=scalix</basedn>
<displayname resourceID="addressbooksearch_title_system">System Directory</displayname>
<authtype>none</authtype>
<filter>(|(&(cn=%s*)(mail=*))(&(sn=%s*)(mail=*))(&(gn=%s*)(mail=*))(mail=%s*)(&(omalias=%s*)(mail=*)))</filter>
<address_search>
<limit>100</limit>
<attribute_map>
... lines omitted ....
</ldapSource>
This is your LDAP query for your system directory. Please copy the whole section, adding another one of those, before the next ldap source section, titled "personal" (this is the LDAP access to your personal contacts).
Then, in the copied version, modify the following entries:
Code: Select all
<displayname>Directory for Domain2</displayname>
Note: the resource attribute has been removed. This is for internationalization; in this example, we do not want to use resources.
And finally:
Code: Select all
<filter>(&(mail=*@domain2.com)(|(&(cn=%s*)(mail=*))(&(sn=%s*)(mail=*))(&(gn=%s*)(mail=*))(mail=%s*)(&(omalias=%s*)(mail=*))))</filter>
Restart your Tomcat and you should be there. Please make a backup copy of your partner.xml file before you do the change.
Hope this helps,
Florian.