Mail Server Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsSystem AdministrationMail Server Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 24th, 2012, 10:56 AM
will2209 will2209 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2012
Posts: 5 will2209 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 57 m 51 sec
Reputation Power: 0
Email Server Failover solution

Hello,
I have a question about a fail over solution of the Email server we host.

We have a Microsoft Exchange server. We have two different T1 line for the email server. One T1's IP is 1.1.1.1 while another one is 2.2.2.2.

Now we only use one T1 line and the public IP is 1.1.1.1. When people send an email to our company, the email goes to 1.1.1.1.

We will use another T1 when the first T1 has problem. Assume the first T1 is down, the email people send will go to 2.2.2.2 instead of 1.1.1.1.

Does anyone know how to do this? Or any companies like godaddy provide similar service? Thanks.

Reply With Quote
  #2  
Old May 24th, 2012, 11:25 AM
seack79 seack79 is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: May 2004
Location: surfing the interwebz
Posts: 2,319 seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 20 h 55 m 23 sec
Reputation Power: 1940
You would normally have two MX records created. Based on the priority used in the record (i.e., higher the number the lower the priority) that is how other mail servers will decide where to send the mail to your domain(s). If the server itself goes down, that's another matter; assuming it's your only mail server.

Reply With Quote
  #3  
Old May 24th, 2012, 01:20 PM
will2209 will2209 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2012
Posts: 5 will2209 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 57 m 51 sec
Reputation Power: 0
Thank you, seack79.

Is this effective immediately? I mean, if the T1 (1.1.1.1) is down, then people send an Email to our server. Will this go immediately to 2.2.2.2? Or there is some delayed like a few hours or even 1 day?

Thanks!

Reply With Quote
  #4  
Old May 24th, 2012, 01:59 PM
seack79 seack79 is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: May 2004
Location: surfing the interwebz
Posts: 2,319 seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 20 h 55 m 23 sec
Reputation Power: 1940
Wink

It will be seamless, but for you to get any real benefit from this you'd want to have a 2nd mail server setup; pointing to the 2nd WAN IP. For instance, you might use:

domain.com MX 10 mail1.domain.com
domain.com MX 20 mail2.domain.com
mail1.domain.com A 1.1.1.1
mail2.domain.com A 2.2.2.2

Where mail1 is your 1st mail server and mail2 is your 2nd mail server. I suppose in theory you could do the same thing with 1 server, but you will run into reverse DNS issues since I don't think the mail server can respond with more than one FQDN; probably shouldn't either.

Reply With Quote
  #5  
Old May 24th, 2012, 02:12 PM
will2209 will2209 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2012
Posts: 5 will2209 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 57 m 51 sec
Reputation Power: 0
Yes. we only have one email server.
Last week when the T1 (1.1.1.1) is down, we switched to another T1 (2.2.2.2). We can still use our email server to send emails but not receiving emails.
Adding a new Exchange server is less likely to happen right now.

Can I manually update the MX record from


domain.com MX 10 mail.domain.com
mail.domain.com A 1.1.1.1

to

domain.com MX 10 mail.domain.com
mail.domain.com A 2.2.2.2

?
Will this also be seamless?

Reply With Quote
  #6  
Old May 24th, 2012, 11:05 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Jun 2003
Posts: 14,239 Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 4 Weeks 15 h 17 m
Reputation Power: 4445
There are companies like zoneedit and others that offer backup mail server services.

Like any DNS changes, manually editing the MX record won't be visible through the internet instantly, it may take hours to days for the change to propogate through the DNS server hierarchy.
__________________
======
Doug G
======
It is a truism of American politics that no man who can win an election deserves to. --Trevanian, from the novel Shibumi

Reply With Quote
  #7  
Old May 25th, 2012, 09:33 AM
will2209 will2209 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2012
Posts: 5 will2209 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 57 m 51 sec
Reputation Power: 0
Thank you, Doug.

It seems manually updating the MX is not an option.

I want to go back to what seack talked about. Can I do it this way:

domain.com MX 10 mail1.domain.com
domain.com MX 20 mail2.domain.com
mail1.domain.com A 1.1.1.1
mail2.domain.com A 2.2.2.2

Then like seack said I will run into reverse DNS issue. Can I update the FQDN in mail server from 1.1.1.1 to 2.2.2.2?
Once the T1 (1.1.1.1) is recovered, I change the FQDN back to 1.1.1.1.

Will that be a workable solution? Will it work seamless once I update the FQDN?

Thanks.

Reply With Quote
  #8  
Old May 25th, 2012, 11:11 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Jun 2003
Posts: 14,239 Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 4 Weeks 15 h 17 m
Reputation Power: 4445
The way backup SMTP works the backup SMTP server will store incoming mail until the primary SMTP server becomes available again. The backup server needs to be configured properly to do this.

I don't know if you can access the mail directly from the backup SMTP server or not since mail for the domain isn't being sent to a mailbox, it's in a holding tank (so to speak).

fyi, this is from my reading, not from actually having set up or run a backup SMTP server.

Reply With Quote
  #9  
Old May 26th, 2012, 07:12 AM
seack79 seack79 is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: May 2004
Location: surfing the interwebz
Posts: 2,319 seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 20 h 55 m 23 sec
Reputation Power: 1940
That would not a viable solution. One thing to consider...email is obviously very important to your company. You may want to consider moving to a hosted solution. The cost is generally very reasonable.

Reply With Quote
  #10  
Old June 1st, 2012, 10:07 AM
will2209 will2209 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2012
Posts: 5 will2209 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 57 m 51 sec
Reputation Power: 0
Quote:
Originally Posted by seack79
That would not a viable solution. One thing to consider...email is obviously very important to your company. You may want to consider moving to a hosted solution. The cost is generally very reasonable.


Thank you. I really appreciate for you guys' help. I did consider the hosting. But the cost seems a lot.

I have another idea. How about pointing the mx record to a DDNS address?

domain.com MX 10 MyCompanyMail.no-ip.com

and MyCompanyMail.no-ip.com is a DDNS hosted by no-ip.com. It will update the IP address very quickly. If 1.1.1.1 is down, we can either manually or automatically switch it to 2.2.2.2.

Like you ping MyCompanyMail.no-ip.com, it was resolved as 1.1.1.1 at first, after we update the DDNS, it will be 2.2.2.2

And we did not change the MX record, so I think there should not be a delay? And that would be seamless?

Do you think this is doable? Any suggestions? Thanks.

Reply With Quote
  #11  
Old June 2nd, 2012, 03:36 PM
seack79 seack79 is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: May 2004
Location: surfing the interwebz
Posts: 2,319 seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level)seack79 User rank is General 14th Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 20 h 55 m 23 sec
Reputation Power: 1940
With all the manual work involved, you'd be just as well off to update the MX record on your own using the cPanel your DNS host offers. To really do what you're wanting, I think you'd need to WAN circuits, and multiple mail servers (or atleast two virtual servers on the same physical box). If your WAN link isn't that unstable, which most have a 99% uptime, you probably don't need to be too worried about it unless someone up top is wanting you to look into this?

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationMail Server Help > Email Server Failover solution

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap