> On 27 Oct 2021, at 4:10 am, Walt CH <w...@purpleemail.com> 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: some.u...@company.com -> some...@somewhere.company.com 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 some.u...@company.com as the user's primary public email address, and some...@somewhere.company.com as a valid mailbox address. With LDAP this looks like: mail: some.u...@company.com maildrop: some...@somewhere.company.com mailAlternateAddress: some.u...@company.com mailAlternateAddress: some...@somewhere.company.com mailAlternateAddress: alt...@somewhere.company.com ... 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.