Kolab & Debian 10
Gelpi Andrea
liste at gelpi.it
Wed Apr 22 16:40:01 CEST 2020
With the filter in docs.kolab.org every mail received was rejected with
550 user not found in local recipient table.
Using debug I discovered the the duplet_mydestination was never match
for my domains.
After removing the last part the filter it started to work and now I
have a fully working system.
My old system is on debian 8 and I never had that problem the doc filter
works fine.
If you have an idea what was wrong in my system I can check and test it.
Regards,
Il 22/04/20 00:26, Daniel Hoffend ha scritto:
> 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 a 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 alias a example.net
> ldap:/etc/postfix/ldap/hosted_duplet/local_recipient_maps.cf
> mail a example.net
>
> --
> 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,
>>
> _______________________________________________
> users mailing list
> users a lists.kolab.org
> https://lists.kolab.org/mailman/listinfo/users
>
--
Gelpi ing. Andrea
**************************************************
I documenti vitali dimostreranno la loro vitalitˆ
spostandosi spontaneamente da dove li avevate
lasciati a dove non riuscirete a trovarli.
**************************************************
More information about the users
mailing list