0

I currently have my domain on CloudFlare which is set-up with my one and only mail server, what i want to do is make so the new incoming mails are saved on both my main and second server, i read on another "question" that it is do-able but i want to make sure.

Two mx records for two different mail servers in the same domain?

3 Answers 3

2

Sorry but that's not how it works. The secondary mx record is meant to serve as a backup server if the other mailserver can't contact the primary one, and mostly they just hold the mails before the primary comes back up to receive the messages stuck on backup mailservers. This solves the problem when somebody sends you message and hours later gets the message that their mailserver cant contact yours.

The thing you may wanna do is set up your mailserver to forward a copy of each received email to another mailserver and that is based on what kind of mailserver are you using.

4
  • i kept reading and i kinda thought about this, making a new mx record that forwards each received mail to server 1 and server 2, do you know any solution that can do this?
    – delzium
    Apr 9, 2019 at 21:01
  • Sorry for the misunderstanding but "set up your mailserver to forward a copy of each received email to another mailserver" says it clearly. For example postfix has the parameter always_bcc. So you will have to do it on mailserver level, not dns.
    – Aroly7
    Apr 9, 2019 at 21:11
  • i apologise, that's what i meant, i just didn't write it properly, mx record points to server A and then server A forwards the received mails to mail server 1 and 2
    – delzium
    Apr 9, 2019 at 21:23
  • Yes, that is possible but we need to know what mailserver are you running.
    – Aroly7
    Apr 10, 2019 at 5:07
2

Typically, what happens in larger deployments is that the SMTP servers are separate from the mailbox server(s). Based on the wording of your question, this isn't precisely what you're picturing. (It sounds like you're picturing two all-in-one mail servers that mirror each other, including in content.)

When planning your email infrastructure, you probably want to decide what roles you want to have redundancy in--it sounds like "all of them"--and plan accordingly.

1

With MX records you can instruct a sending mailserver both that you have multiple incoming mail servers as well as request that in case one is not available for delivery it should try delivering the message to (one of) the alternates.

What will not happen is that the sender will send multiple copies of the message, one to each MX record, in the hope that one will eventually reach the intended recipient.

Duplicating incoming emails for backup and auditing is something that you will need to do in a different way.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .