Re: Kolab & Debian 10

Daniel Hoffend <[email protected]>
Newsgroups gmane.comp.kde.devel.kroupware
Message-ID <9cf30d53-7638-3112-ee32-77ec9645f114__28983.7381614902$1587508361$gmane$org@dotlan.net>
Hi

I can't confirm your problem:

I've used the multi domain filter for years and never had an issue with
it (and wrote parts of the a bit outdated multi-domain howto).

Nowadays i'm using an even more complex filter for kolab + debian10 systems.
query_filter =
(&(objectclass=domainrelatedobject)(associatedDomain=%s)(associateddomain=*.*)(!(associateddomain=*.*.*))(!(associateddomain=*.*.*.*))(|(inetDomainStatus=active)(!(inetDomainStatus=*))))

The trick is that the duplet query_filter should match for example.net
and not sub.example.net.

When you use postmap against the mydestination file, make sure to only
use the domain, not the email address.

root@kolab:~$postmap -q example.net
ldap:/etc/postfix/ldap/hosted_duplet/mydestination.cf

       example.net

You can used the email address for the local receipient check

postmap -q [email protected]
ldap:/etc/postfix/ldap/hosted_duplet/local_recipient_maps.cf
[email protected]

--
Regards
Daniel




Am 21.04.2020 um 09:06 schrieb Gelpi Andrea:
> Hi,
> 	I have a kolab on a debian 10 system.
> 
> I also use multi domain. To modify the system I followed this informations:
> 
> https://docs.kolab.org/howtos/multi-domain.html
> 
> There is an error in postfix configuration.
> 
> Edit /etc/postfix/ldap/hosted_duplet_mydestination.cf and change the
> query_filter setting to:
> 
> query_filter =
> (&(objectclass=domainrelatedobject)(associateddomain=%s)(associateddomain=*.*)(!(associateddomain=*.*.*)))
> 
> The above filter is wrong.
> 
> The correct one is:
> 
> query_filter =
> (&(objectclass=domainrelatedobject)(associateddomain=%s)(associateddomain=*.*))
> 
> With the wrong filter all received mail are rejected as the local
> recipient was not found.
> 
> You can check and reproduce the error with:
> 
> postmap -qv email_adderss
> LDAP:/etc/postfix/ldap/hosted_duplet_mydestination.cf
> 
> With the filter in the docs it returns NO MATCH
> 
> With the correct one it give you a match.
> 
> Regards,
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.