> On 27 Oct 2021, at 4:10 am, Walt CH <[email protected]> wrote:
> 
> For our company's global design, we have the MX servers (postfix) on both the 
> US and the EU.
> When the two MX servers receive the messages, how to store the messages into 
> a separated area such as the AU?

My standard recommendation is to perform address-rewriting at the external
inbound gateway that directs mail for each user to the appropriate internal
mail store by mapping:

        [email protected]  ->  [email protected]

Then a short static transport table can direct "somewhere.company.com"
to the right set of servers, or just use internal MX resolution.

The mapping can use LDAP, or perhaps PostgreSQL, ...

The various internal mailstores should recognise [email protected]
as the user's primary public email address, and [email protected]
as a valid mailbox address.

With LDAP this looks like:

 mail: [email protected]
 maildrop: [email protected]
 mailAlternateAddress: [email protected]
 mailAlternateAddress: [email protected]
 mailAlternateAddress: [email protected]
 ...

The gateway maps mailAlternateAddress -> maildrop.
The mailstore accepts mail for any mailAlternateAddress and
delivers it to the underlying mailbox.

The outbound smarthost or internal mailhub rewrites mailAlternateAddress -> mail
User agents searching the directory use "mail".

For some notes on groups (lists), ... see the ldap_table(5) and LDAP_README
docs.

-- 
        Viktor.

Reply via email to