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.
You can just setup a second server and add another MX record. If they've got the same MX presendence then you'll need to address the issue of getting the mail delievered to the same place as you won't know which mail server the mail will be delieverd too. Have a read of the following threads then post specific questions / comments back here.
Thanks for your reply! And how about the second server setup? Do I need setup the second server same as primary server configuration? And will second server replace the role automatically when the primary server down? Can I receive mail(from client side) when the primary server down? And do the mail files (ie /var/spool/mail/<--user-->) sync. from second server to primary server when the primary server back to normal? Thanks!
You can just setup the servers to be identical, thats what I'd do. The second server will be used when the first server (the one with the lower value MX record) is unavailable, either because its down, or because its busy. Thats dealt with by the machine that is relaying to your domain, it not something you need to worry about. There won't be any syncing between the two machines, infact I don't their they'll even know the other exists, hence the conversations in the linked threads (above in previous post) about working out a way to share a spool directory. It might be worth sending a message to one of the people who started those threads to find out if they came to a definitive solution.
domain.com IN MX 10 mail01.domain.com
IN MX 20 mail02.domain.com
does this record correct? If I would like to the first reply mail server is mail01.domain.com and mail02.domain.com is secord. And if right, what's the reply IP when I ping domain.com if the mail01.domain.com is down? Is it reply the mail01.domain.com IP or mail02.domain.com IP? Thanks!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.