On Tue, 19 Nov 2019, Merrick wrote:
Bernardo Reino wrote:
The messages should be stored in one place, such as webmail/IMAP could
read all messages directly from this location.
Use a single IMAP server. Have both mail servers deliver the messages to
the single IMAP server.
Do you mean I setup a single IMAP server in middle location (such as Dallas)
then both MX servers deliver messages to the IMAP?
Perhaps you first need to think/consider what you actually want. I cannot
recommend you to install an IMAP server in Dallas or any other location.
Maybe you don't even need or want IMAP but want to deliver mail to a local
mailbox, or relay to another server, etc.
If this is a hobby project or some kind of theoretical question or
experiment, then OK, but if this is work then I'm not sure this is the
right place (and maybe -- meaning no offense -- you're not the right
person).
You could read about virtual_transport in postfix so you know which
options you have when delivering. I use dovecot (IMAP server), so I have
virtual_transport = lmtp:unix:private/dovecot-lmtp
If you install dovecot somewhere you could deliver received mails to it,
but not using a unix socket (as MX and IMAP would run on different
servers), but using something like lmtp:[IP_of_IMAP_server]:port
Good luck!