Jie Wang wrote:
Hello everyone,

Here is my question:

I use Postfix as a SMTP gateway, and need to forward each email to two mail servers with the same domain names but different IP addresses.

More specifically, I have two email servers, with ip_address_1 and ip_address_2, each is under the same four domain names, example1.com, example2.com, example3.com, example4.com, the user accounts on the two servers are identical.

For all incoming emails, I need to forward each to both servers.

After seaching FAQ, I am still not quite clear how to achieve this. Any pointers would be greatly appreciated.

I quote Wietse:

  Postfix delivers one address in one place. This is a basic
  property that will not change.

  If you must maintain two parallel message stores, instead of
  presenting multiple views of the same store, I suggest you use a
  proper message store replication protocol, instead of MTA-level
  parallel deliveries.

What problem are you trying to solve?

If you would like each message to be delivered separately by Postfix, you will need to create aliases for the addresses. For example,

  us...@example.com  us...@server1.example.com,us...@server2.example.com

will deliver a message to each of serverN.example.com, assuming you configure Postfix to route mail appropriately. On those servers, you can simply rewrite the serverN.example.com addresses to example.com ones.

This is probably overkill, but we need to know the problem, not the solution. Do you simply want to backup your mail store? Something like imapsync[1] could save you a lot of trouble.


[1] http://www.linux-france.org/prj/imapsync/

Reply via email to