LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-18-2007, 11:27 AM   #1
j0hnd0e
Member
 
Registered: Nov 2005
Distribution: slackware64, debian
Posts: 34

Rep: Reputation: 15
how to make 2 or more mail servers work as one


Hello there

I'm looking for some solution about how to make 2 Mail servers (or more) to act as a one, in case when one of them goes offline, that other continue to work.

Everytime when the new Mail comes, it should be copied on the both servers.
That should be easy.
But what happens in a case, when one Server goes down, and users log themselfs to another one, and delete some messages (readed etc.), that changes wouldn't be applied to the server that is offline.
That means when the server comes up, it will be with the same email-list content it was before going offline/down/freeze.

What is the best solution to keep mail Server always online thru other server in chain, without loosing Mails.

I'm using: qmail & courier-imap

Thanks in advance
 
Old 09-18-2007, 01:48 PM   #2
andyccn
Member
 
Registered: Aug 2006
Distribution: Fedora 7
Posts: 46

Rep: Reputation: 15
For incoming mails that won't be a problem. The nature of MX records means you can give each server their own MX record - one primary, one secondary - if the primary one fails, other mail servers will send to the other one. However, you're talking about clustering, so to keep both servers synchronised, you'd need some form of shared storage - whether an NFS share mounted on a machine common between the 2, or a NAS device, or whatever.

Of course then your shared storage becomes a single point-of-failure, so you'd then need 2 of those!

The other option is to keep one server sitting as a "hot-spare" and continually rsync the user's home directories off the primary. Use a low TTL value on your mail server's DNS records. If the primary server fails, your hot-spare will be more-or-less up-to-date, so just switch the DNS over, and within a few seconds your clients will switch over. When you're primary one is backup and running, keep that one as the hot-spare instead, or rsync the directories back again when you get a lull in client traffic.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Mail Servers in mail.rc? pshankland Linux - Networking 2 03-29-2006 12:07 PM
Postfix mail transfer agent not sending mail locally or to other servers sketelsen Linux - Software 3 02-09-2006 11:16 AM
Unable to send mail to some mail servers due smtp greetings malformed atotomex Linux - Networking 6 12-20-2005 04:38 PM
How do I make xine work with X servers that support video overlay Mohit Aron Linux - Software 0 08-08-2004 05:14 PM
Mail Servers mattbeekler Linux - Software 2 01-11-2004 03:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration