> On Jan 3, 2018, at 10:07 AM, huret deffgok <kada...@gmail.com> wrote:
> 
> Sorry for being imprecise. I'm in the process of being an MX for domainB,
> so I've added those domainB adresses to the LDAP (and already used by
> other apps than postfix) and while waiting for the definitive transition
> I need to reject local delivery for this domain.

The way you've added the addresses is incorrect.  Do NOT add them as
"mailAlternateAddress" values *until* mail for the domain is to be
delivered locally.

If the same underlying person has both an an internal and an external
address, with one address delivered inside, and the other outside,
and you want to store both in a single LDAP entry, use some other
attribute that is not mapped to the primary local address.

        externalAddress: user@domainB

or similar.  You could exclude domainB from virtual alias expansion,
by using the "domain" property of the LDAP table, but that's a hack.
The real issue is a mismatch between the LDAP schema and the desired
semantics.  Fix that.

-- 
        Viktor.

Reply via email to