Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 228
  • Last Modified:

Split incomming e-mails to two different servers

I would like to split incoming e-mails to two different servers.

The reason is because we are installing a new server and we would like this server to recive all incoming mails for a while before we turn of the old e-mail server.

Is it possible to split the all incoming e-mails? So  Postfix will send the same mail to both the new and the old??
  • 2
1 Solution
I have never done this myself, however something like this should work:

virtual_maps = hash:/etc/postfix/virtual

domain.com mailserver1.domain.com, mailserver2.domain.com
GMH77Author Commented:
Thx for answering.

So this will make all emails delivered to company  *@domain.com delivered to both serveres.
In our case this is an Exchange 2007 and another Linux server that we want emails to be delivered to.

It is important that all incomming emails gets delivered to both servers
After reading the documentation I believe so.  As mentioned I haven't done this myself, but yes it will take one inbound email from lets say user@hotmail.com and it is destined for joe@domain.com

As long as both email servers Exchange 2007 & alternative linux server are set to accept email for domain.com you shouldn't have an issue.  All incoming emails for joe@domain.com will be sent to both mail servers.

Your /etc/postfix/virtual file should look something like:
domain.com exchange.domain.com, linux.domain.com

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now