<html><head></head><body>Hi Franz,<br><br>Thank you. Cyrus 3 has this fixed :-)<br><br>Tom<br><br><div class="gmail_quote">"Skale, Franz" <i.bin@dah.am> schreef op 25 juni 2022 18:29:58 CEST:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre dir="auto" class="k9mail">Hi Tom,<br>i migrated to Debian 10 a year ago.<br>The multidomain setup and cyrus aren't broken. (cyrus-imapd 3.0.16 my version of use -> standard debian package)<br>You have to change several files to make it work.<br>As outlined in the docs, files to change are:<br>1.) roundcube:<br>/etc/roundcubemail/config.inc.php -> username_domain<br><br>2.) imapd:<br>ldap_domain_base_dn: cn=kolab,cn=config<br>ldap_domain_filter: (&(objectclass=domainrelatedobject)(associateddomain=%s))<br>ldap_domain_name_attribute: associatedDomain<br>ldap_domain_scope: sub<br>ldap_domain_result_attribute: inetdomainbasedn<br><br>3.) amavis: /etc/amavis/conf.d/05-domain_id<br>@local_domains_maps = ( [<br>        ".$mydomain",<br>        ".domain.com"<br>       ] );<br><br>4.) /etc/kolab/kolab.conf<br>[kolab]<br>primary_domain = primarydomain.com<br>[domain.com]<br>default_quota = 1048576<br>primary_mail = %(givenname)s.%(surname)s@%(domain)s<br><br>5.) postfix:<br>/etc/postfix/ldap/domain.com/local_recipient_maps.cf<br>domain = ldap:/etc/postfix/ldap/domain.com/mydestination.cf<br><br>server_host = localhost<br>server_port = 389<br>version = 3<br>search_base = cn=kolab,cn=config<br>scope = sub<br><br>domain = ldap:/etc/postfix/ldap/domain.com/mydestination.cf<br><br>bind_dn = uid=kolab-service,ou=Special Users,dc=primarydomain,dc=com<br>bind_pw = xxxxxxxxxxxxxx<br><br>query_filter = (&(|(mail=%s)(alias=%s))(|(objectclass=kolabinetorgperson)(|(objectclass=kolabgroupofuniquenames)(objectclass=kolabgroupofurls))(|(|(objectclass=groupofuniquenames)(objectclass=groupofurls))(objectclass=kolabsharedfolder))(objectclass=kolabsharedfolder)))<br>result_attribute = mail<br><br><br>/etc/postfix/ldap/domain.com/mydestination.cf<br><br>server_host = localhost<br>server_port = 389<br>version = 3<br>search_base = cn=kolab,cn=config<br>scope = sub<br><br>bind_dn = uid=kolab-service,ou=Special Users,dc=primarydomain,dc=com<br>bind_pw = xxxxxxxxxxxxxxxxx<br><br>query_filter = (&(associatedDomain=%s)(associatedDomain=domain.com))<br>result_attribute = associateddomain<br><br><br>/etc/postfix/ldap/domain.com/virtual_alias_maps.cf<br><br>server_host = localhost<br>server_port = 389<br>version = 3<br>search_base = dc=domain,dc=com<br>scope = sub<br><br>domain = ldap:/etc/postfix/ldap/domain.com/mydestination.cf<br><br>bind_dn = uid=kolab-service,ou=Special Users,dc=primarydomain,dc=com<br>bind_pw = xxxxxxxxxxxxxxxxxxxx<br><br>query_filter = (&(|(mail=%s)(alias=%s))(objectclass=kolabinetorgperson))<br>result_attribute = mail<br><br><br>/etc/postfix/transport<br><br>shared@domain.com lmtp:unix:/run/cyrus/socket/lmtp<br><br>Check the admin interface and create the domain !<br><br>It's all outlined in the docs !<br><br>Check:<br>kolab list-domains<br><br>Rgds.<br>Franz<br><br>On 2022-06-25 15:02, Tom Reijnders wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;">It seems to me, this is really a bug in ptloader of cyrus-impad 2.5<br><br>It finds the correct base_dn, and the first thing it doe, is throw it away.<br><br>So, ether I patch this myself, or I start over again.<br><br>What OS and which version of kolab is the best at this time to use?<br><br>Tom<br><br><br>Op 24-6-2022 om 10:07 schreef Tom Reijnders:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;">Sure,<br><br>This is the specific part that is used by ptloader:<br><br>ldap_domain_base_dn: cn=kolab,cn=config<br>ldap_domain_filter: (&(objectclass=domainrelatedobject)(associateddomain=%s))<br>ldap_domain_name_attribute: associateddomain<br>ldap_domain_scope: sub<br>ldap_domain_result_attribute: inetdomainbasedn<br><br>If the domain would have been searched in the Root DN that it's listing as being relevant, the domain would have been found. But it seems not to do so...<br><br>Tom<br><br>Op 23-6-2022 om 23:45 schreef Jochen Kellner:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #8ae234; padding-left: 1ex;">Tom Reijnders <reijnders@tor.nl> writes:<br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #fcaf3e; padding-left: 1ex;">This is a complete separate domain (and you need to change quite a lot<br>of things to make it work. I followed this process:<br><br><a href="https://docs.kolab.org/howtos/multi-domain.html">https://docs.kolab.org/howtos/multi-domain.html</a><br></blockquote>Ah, ok. I had a look at that document and I suspect something in<br>/etc/cyrus.conf or /etc/imapd.conf. I only have an alias domain...<br><br>Can you show at least the ldap_.* configuration in /etc/imapd.conf?<br>Maybe someone spots an error or has a tip for you.<br><br>Jochen<br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #fcaf3e; padding-left: 1ex;">Op 23-6-2022 om 00:13 schreef Jochen Kellner:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #e9b96e; padding-left: 1ex;">Hello,<br><br>Tom Reijnders <reijnders@tor.nl> writes:<br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ccc; padding-left: 1ex;">L.S.,<br><br>I cannot get multi domain setup working correctly. Everything works<br>for the main domain, but the canonification for the other domains does<br>not seem to work.<br><br>This is what I see in the log:<br><br>Jun 22 20:47:02 kolab ptloader[11261]: Attempting to get domain for<br>webshop.helicon@pedit-nederland.nl from cn=kolab,cn=config<br></blockquote>...<br><br>which logfile is that? I've recently added a secondary/alias domain to<br>my kolab on Debian 10 - and that seems to work. And I don't see similar<br>messages...<br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ccc; padding-left: 1ex;">Does anyone know what goes wrong? Where can I find the source of<br>ptloader so that I can try to debug this issue?<br></blockquote>On my system ptloader is /usr/lib/cyrus/bin/ptloader, which is part of<br>cyrus-common:<br><br>root@jupiter:/var/log# dpkg -S /usr/lib/cyrus/bin/ptloader<br>cyrus-common: /usr/lib/cyrus/bin/ptloader<br>root@jupiter:/var/log# dpkg -l cyrus-common<br>Gewünscht=Unbekannt/Installieren/R=Entfernen/P=Vollständig Löschen/Halten<br>| Status=Nicht/Installiert/Config/U=Entpackt/halb konFiguriert/<br>           Halb installiert/Trigger erWartet/Trigger anhängig<br>|/ Fehler?=(kein)/R=Neuinstallation notwendig (Status, Fehler: GROSS=schlecht)<br>||/ Name           Version         Architektur  Beschreibung<br>+++-==============-===============-============-================================= ii  cyrus-common   3.0.8-6+deb10u6 amd64        Cyrus mail system - common files<br><br></blockquote></blockquote></blockquote><br></blockquote></blockquote></pre></blockquote></div><div style='white-space: pre-wrap'><div class='k9mail-signature'>-- <br>Verstuurd vanaf mijn Android apparaat met K-9 Mail. Excuseer mijn beknoptheid.</div></div></body></html>