Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
We are planning to setup a Email server with High Availability for email services so that if SMTP/POP/IMAP goes down on one server, the services switch to second server.
We are planning to use a Linux machines from a hosting provider and will do it using DNS with multiple MX records with round robin.
Now i have couple of queries regarding this setup :-
Is this possible to have a same domain name to bind with 2 IPs i.e xyz.com point to 1.1.1.1 on one server and xyz.com point to 2.2.2.2 on second server.
How can we setup MX records for each server on DNS for email failover.
As we have a separate servers for this setup that means data related to email would be reside on separate server (because they have separate HDD), so in case 1st server goes down and it switch to second server, will i skipped my email which was received on 1st server before it goes down as my email client will receive them on certain period of time.
Now i have couple of queries regarding this setup :-
[*]Is this possible to have a same domain name to bind with 2 IPs i.e xyz.com point to 1.1.1.1 on one server and xyz.com point to 2.2.2.2 on second server.
Simple answer is yes but if one of those IP's becomes unavailable then half the traffic will not be able to connect.
A better option would be to use HSRP between the 2 servers instead of round robin DNS.
Quote:
[*]How can we setup MX records for each server on DNS for email failover.
Look at the MX records in DNS. They have a Preference value that you set. This tell the SMTP which server to connect to first and when it is down what the next server to try is.
Quote:
[*]As we have a separate servers for this setup that means data related to email would be reside on separate server (because they have separate HDD), so in case 1st server goes down and it switch to second server, will i skipped my email which was received on 1st server before it goes down as my email client will receive them on certain period of time.
Another thing to look into is a NAS or SAN for your email backend storage. That way when one server goes down your mails will still be available on the second server. If that is not an option then maybe look at doing an Rsync between the 2 servers to keep both up to date.
Disclaimer: I am not a email admin so there may be better options for you. The above is all off the top of my head.
Thanks for your prompt reply and details.
However if have to do it with Cpanel/WHM, i think HSRP will not be possible as this will totally depend on hosting provider.
In case we setup a email service using Cpanel/WHM we have a specific choice to setup a Fail over services for Email.
Again the 2 biggest things you need to worry about are DATA and DNS. As long as both servers can sync their data between themselves or use a back end server you should be good there. DNS you just need to ensure you have the preference value setup. User would have to be warned that if server A isn't working use server B.
You could always talk to the provider and find out if HSRP is available or not.
Thanks for your prompt reply and details.
However if have to do it with Cpanel/WHM, i think HSRP will not be possible as this will totally depend on hosting provider.
In case we setup a email service using Cpanel/WHM we have a specific choice to setup a Fail over services for Email.
Do you mean that the Cpanel is hosted on third party vendor? Or you manage your own email server?
That's a 4 hour setting. So someone who get this record will not ask for a new one until 4 hours have passed. If someone requests the ip address of your site 5 minutes before the server goes off line they will not get the updated information for 3+ hours. This is why a floating ip address is the way to go.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.