Routing email trough DNS

zomebodi

Verified User
Joined
Sep 3, 2023
Messages
61
I have a "DA Server 1" and "DA Server 2" pointed to a "DA DNS Cluster" (remote server)

Now i need to create an MX record (only one record) to route emails to "DA Server 1" or to the server "DA Server 2" (depending on where the recipient is located)

Can someone give me some light on how to do this?
 
Just create the MX record as usual.
domain.com. 3600 IN MX 10 mail.domain.com.
Then just point mail and smtp etc. to the correct ip.
 
Just create the MX record as usual.
domain.com. 3600 IN MX 10 mail.domain.com.
Then just point mail and smtp etc. to the correct ip.

mail.example.com pointing to ip of "DA Server 1" or "DA Server 2" not solve the question. This needs two different MX records to deliver emails.
My question is about having a unique MX record, like google workspace have. One MX record to serve the world.
 
mail.example.com pointing to ip of "DA Server 1" or "DA Server 2" not solve the question.
It does. It depends on where you want to receive the mail. If you want to reveive it on server 1, point it to 1 and same for 2.
You asked "depending on where the receipient is located" so you create the MX record depending on the domain.

You can not have multiple recipients for the same domain on multiple servers.

If you want to have them on both servers at the same time, then you should ask your question more clear.
As far as I know you can only create a backup-mx, but not have the same mail account on 2 servers working. DA is not a cloud mail service neither is it a redunding mail service.
 
It does. It depends on where you want to receive the mail. If you want to reveive it on server 1, point it to 1 and same for 2.
You asked "depending on where the receipient is located" so you create the MX record depending on the domain.

You can not have multiple recipients for the same domain on multiple servers.

If you want to have them on both servers at the same time, then you should ask your question more clear.
As far as I know you can only create a backup-mx, but not have the same mail account on 2 servers working. DA is not a cloud mail service neither is it a redunding mail service.
I will try to be clearer in my question.
I want to create the following mx:

mx.myemailservice.com
I have 2 email servers. In one I have the email [email protected] and in the other I have the email [email protected]
I want the mx record of domain1.com and domain2.com to be the same: mx.myemailservice.com (like Google does with all its email clients)

What I don't know is how I could give the "path" to that MX to distinguish if it should go to one server or the other.

I have tried the following:

mx.myemailservice.com => point to 2 ip (does not work)
mx.myemailservice.com => Point to two mx records with the same priority (doesn work)
 
I still don't think you can achieve such a thing with Directadmin or any other panel.

However, if you would be able in some kind of way (if ever), it would maybe most likely be possible by using 2 MX records, but try with different priority's.
Be aware that this is not the way it's intended by RFC's and MX records and could lead to issues.

As said, DA is not a cloud mail service like Google is.

Maybe somebody else has a better answer, if any.
 
I still don't think you can achieve such a thing with Directadmin or any other panel.

However, if you would be able in some kind of way (if ever), it would maybe most likely be possible by using 2 MX records, but try with different priority's.
Be aware that this is not the way it's intended by RFC's and MX records and could lead to issues.

As said, DA is not a cloud mail service like Google is.

Maybe somebody else has a better answer, if any.

I have my eyes set on the "DA DNS Cluster" in my example. I think that in some way I could obtain, through some method that I am investigating, the IP data from there. Finally, that is where all the clients' IP addresses are. I find it an interesting challenge. Any help in achieving this will be greatly appreciated.
 
Back
Top