Link to home
Start Free TrialLog in
Avatar of lyanez30
lyanez30

asked on

Is there a way to sync two mdaemon servers for redundancy?

Hi,

I need to know if there is a way to sync users, mailboxes on two mdaemon servers.

My main site uses mdaemon for mailing, we just bought another licence and installed it on a leased server on a difrent geographical location for redundancy.

I imported all users to the server, but in time it has proven difficult to update all this data manualy.

Is there a way to replicate this automaticaly?

I too need my users to start cheking their mail on the secondary server automaticaly if the main one fails.

I tried doing this though DNS, but it is just to slow, it takes a lot of time for the dns to propagate.

Avatar of moorhouselondon
moorhouselondon
Flag of United Kingdom of Great Britain and Northern Ireland image

If you are only using one copy of Mdaemon at a time (the primary copy), the other one is there simply for mirroring purposes, and you wish to slew across to the secondary copy at any time, then you need to ensure that the mailstore on the primary copy is regularly transferred across to the secondary copy - basically this will be any changes that have occurred since the last transfer - addition of new messages, deletion of old messages.  Note that any messages accepted between the last transfer and the line going down will not be replicated across, unless that is somehow done manually - the logs will need to be analysed to see which sent messages reached their destination when the mail link went down.  When the secondary mailserver becomes the primary mailserver then presumably this state of affairs will persist until another outage occurs - so transfers will be sent from the new primary to the new secondary mail server.

You will need to make sure that all sent and received messages are stored in the mailstore.

There's probably other ways to achieve this aim, but in my view this is the easiest to understand and implement.
Making sure users interrogate the up to date data is more difficult to achieve.  Doing it by changing DNS on the web could be unreliable - the change cannot be guaranteed to occur immediately - taking the secondary mail server off-line is the best way to do this.  Users using WorldClient will have a note of two (dotted IP) addresses to use - unless you register two extra domains for internal use only  which don't change IP when an outage hits e.g., company1.com company2.com.  POP3 and IMAP client software will have two accounts setup - one for each mail server.  
Avatar of lyanez30
lyanez30

ASKER

ok, but is there a way for mdaemon to do this by itself?

I mean, I dont realy care much for the messages to be on both servers, that´s the second face, what i need is that whenever there is an outage (internet), my users can still send and recive using the backup server, with no knowledge there has been an outage.

I have over 70 domains on this server, more than 500 accounts, so it is not that I´m lazy ;)



I don't believe Mdaemon has this facility.  Have you spoken to Altn about this?
I do not have support anymore :(
Whatever method you choose, there is a problem with failure modes.  For instance, presumably your users are attached to the primary Mdaemon server through a LAN.  If they had to attach to the secondary server due to a failure in the comms line supplying the primary mail-server, how would they do that?  If the Internet to Primary line goes down, how are you envisaging users attached to the Primary line would attach to the Secondary line?
Both servers are on the internet, they are not phisicaly on my location,
I would say that having a backup program back up "changed" messages then transmitting it to the secondary mailstore and restoring there is your best bet.  Thought needs to be put into what happens in various failure scenarios, and action to be taken to remedy any shortcomings, particularly as it looks as if you will be reliant on DNS switching.  Some manual intervention would be inevitable, I think, to make sure that the mailstores are made identical soon after switching from Primary to Secondary.  There are too many combinations of things that can go wrong, or time taken to propagate changes through, to totally automate it.
Ok, I managed to get the account trouble out of the way, It happens that MDaemon has a feature that allows you to have the users account on a remote ODBC database, so I went and mounted an SQL2000 SP4 on another server, so now, I have both MDaemon's consulting the same database.

With the users out of the way, I now have only one problem:

How do I make the transition the list noticeable to my users?

I thought of using cnames on the dns, instead of usin (A) pointers, but still, I have to manually change the cnames (which is faster than changing IP's)

Kind Regards
I am taking a big guess here, but would changing the SOA parameters (SOA Refresh) help with this?  Certainly my domain provider has no visible means to allow the user to change these values.
I have control over my DNS servers, I use windows dns server, and changing the SOA refresh value could help for the A records to refresh sooner, but still the use of aliases cnames is faster to my understanding.

Still, the main problem remains which is human intervention.
>human intervention

It's been a long day, not sure I'm with you?  Are you referring to the users who are clients of the Mdaemon servers knowing which server to select in order to send out an email?
Sorry, you are right about the long day.

What I mean is, I do not want the clients (users of mdaemon) to know which server they are using. That is, in the event that one of the mail servers should fail they would not know about it, they can still send and recibe mail as normal.

If I have to change DNS's there would be a gap in the service, that is what I want to avoid.
ASKER CERTIFIED SOLUTION
Avatar of moorhouselondon
moorhouselondon
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I get your point, it is kind of a guess work to know if one service is out or not just by pinging it, but you just made me aware of the oscillation problem that could occur.

I´m just curious, how does hotmail, gmail, yahoo do it?, they have a range of servers doing it right now.

Anyway, Thank you very much for your patience and time!
System resilience is in a league of its own - I used to work for a company where everything had to be hot-swapable in case of failure.  Two electricity supplies, two computers, two methods of control.  Unfortunately one day the switch that switched the system from A to B (because of a failure that necessitated it) failed and the system went down.

Thank you for the points.