Today we’re showing how to extend thesingle domain setup done earlier to get a truly multi domain Kolab install. You should probably reserve a couple of hours as there are quite some changes to do and not everything totally trivial. Also, if you’ve not read the blog about single domain setup, now is a good time
First of all, you can find the official documentation here. It’s probably a good idea to read it as well. We start with the easy parts and end with postfix, which needs the most changes. At the very end there are a couple of things that may or may not be issues you should be aware of.
We tell amavisd to accept all domains.
vi /etc/amavisd/amavisd.conf # Replace that line @local_domains_maps = ( [".$mydomain"] ); # With this line $local_domains_re = new_RE( qr'.*' );
Change Cyrus IMAPD
Tell the IMAP server how to find our other domains. Add the following to the bottom of /etc/imapd.conf
ldap_domain_base_dn: cn=kolab,cn=config ldap_domain_filter: (&(objectclass=domainrelatedobject)(associateddomain=%s)) ldap_domain_name_attribute: associatedDomain ldap_domain_scope: sub ldap_domain_result_attribute: inetdomainbasedn
Change Roundcube (webmail)
Basically you need to change the base_dn at several places. The placeholder ‘%dc’ is replaced during run-time with the real domain the user belongs to.
To save me some typing I’m pasting the diff output produced by git here. So it looks more than it actually is…