Solved

Configuring exchange \ Server for backup smtp server

Posted on 2008-10-03
12
362 Views
Last Modified: 2012-06-21
Hi Guys

We have an sbs 2003 server here with exchange running our email for our domain,

We have 2 internet connections as the service is unreliable,both have seperate static ip's and are from different providers.

I have an mx record created for connection 1 (mail.company.com) and this is used to receive all our email,
This connection is connected to a firewall which is used then as the gateway on the server so we can receive our emails.

Our hosting company has created an MX record for Connection 2 as mail1.company.com
They have also setup a backup smtp service so that when mail.company.com is unavailable,the backup smtp server will collect all mail and forward it to mail1.company.com (Connection 2)

Is it possible to configure the server to collect mail from both gateways ??

This way,if Connection1 (mail.company.com) goes down,then mail will be forwarded through to Connection2 (mail1.company.com) and will be delivered to exchange automatically without having to change gateways or anything on the server every time it happens

0
Comment
Question by:robbie_62
  • 3
  • 3
  • 3
  • +1
12 Comments
 
LVL 12

Expert Comment

by:RobinHuman
Comment Utility
You could try setting up a second SMTP virtual server for the second incoming
0
 
LVL 12

Expert Comment

by:RobinHuman
Comment Utility
..oops - sorry
second incoming line on the exchange system
0
 
LVL 11

Expert Comment

by:Bertling
Comment Utility
if i am reading this correct you can just do this

create 2 mxrecords for you domain.com email domain
domain.com    MX preference = 10, mail exchanger = mail.domain.com
domain.com    MX preference = 10, mail exchanger = mail1.domain.com

you can change the weight if you like but an equal will randomly select.

point mail1.domain.com to 1 external ip address of the smtp gateway
point mail.domain.com to the other ip address of the smtp gateway

set the gateway as the internal ip address or dns name of the exchange server.

now mail from any one of those IP/dns names will be queued on the SMTP gateway.
0
 
LVL 8

Accepted Solution

by:
sstone55423 earned 500 total points
Comment Utility
Your exchange server will go out the default gateway for outbound connections.  Also, you hosting company will spool mail for you when you art disconnected if you put in a third MX record pointing to them, and they will (if they set it up) periodically try to send to you.   Since you will go out the default gateway, and you probably have only one set up, you will need to set up a secondary default gateway at least on your exchange server, with a shorter hop count on the preferred gateway.
This could cause an issue with your reverse lookups.  Some mail servers (notable AOL and the larger ISP's) enforce reverse lookup.  If they lookup the IP address of the contacting SMTP server, then they should get the name of your mail server (the one specifiied in the properties of your Virtual SMTP server).  (mail.company.com).  YOu will need to make sure that BOTH IP addresses used for outbound access have a PTR record (allow reverse lookup) to that name.  Ask your hosting company to set that up for you (or your ISP if they are different -- whomever owns the address space for each of the two IP's).
An elegant solution for resolving reliability issues like this is to use a SonicWall firewall.  For instance, the TZ180 series (good for under ~50 users) with the enhanced OS installed offers redundant WAN connections, and can either failover or load balance between your two external IP's.  From inside (Exchange server) the default gateway is the firewall for everything.  There are higher end firewalls if you have more users.  They also have an 25-user and an 10-user version of the TZ180 if you are smaller, and want to spend less money.)
0
 

Author Comment

by:robbie_62
Comment Utility
Hi Bertling

Do u mean go into tcp\ip properties on the server and change the gateway to its own internal ip address ?
Just tried that now but I could no longer access the internet on the server,

Cheers

Rob
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 11

Expert Comment

by:Bertling
Comment Utility
no dont change any thing on the actaul exchange server.

in a nut shell do you just want this to happen:

if isp1 or isp2 fail, mail will still be delivered to the excahnge server using the the IP address of the ISP which is still live?
0
 

Author Comment

by:robbie_62
Comment Utility
Hi sstone55423:

Just reading through your message and I think I can see where your going with this,
Then you mentioned the Sonicwall,I happen to have abrand new sonicwall TZ180 Sitting on my desk waiting to be configured !!!

Ill have a look over the weekend and see if this will do what I need it to,Im assuming this will allow me to configure 2 different static Ip address' ?

Thanks for the Info

Rob
0
 

Author Comment

by:robbie_62
Comment Utility
Hi Bertling,

Yes thats exactly it,as our connections are unreliable,I need exchange to send \ receive mail either using the primary connection or else the secondary one,if the main one fails,

sstone55423 suggested the sonicwall which I am going to investigate

Thanks Guys

Rob
0
 
LVL 11

Expert Comment

by:Bertling
Comment Utility
great look at my post where it says how to setup your mx records.

and sstone is correct in the sonicwall theory using the 2 connections. we use sonicwalls here and i have set this up with 2 connectins and it works very well!

get both conections load balanced first then let us know and we can try to get mail to work with both IP addresses.
0
 
LVL 8

Expert Comment

by:sstone55423
Comment Utility
Robbie -- Wow!  Well, make sure that you have the Enhaced OS, it is necessary for the fault tolerance.  You can buy it for extra at the mysonicwall.com site when you register your TZ180.  I can help you set that up to if you run into issues.
0
 
LVL 8

Expert Comment

by:sstone55423
Comment Utility
Following Bertlings track:
domain.com    MX preference = 10, mail exchanger = mail.domain.com
domain.com    MX preference = 20, mail exchanger = mail1.domain.com
domain.com MX pre = 30, mail exchanger = myispsmtp.myisp.com
 
So that it fails to the ISP, and can be collected later if BOTH connections are down, (or server is down for awhile).  You will have to work that service out with your hoster/ISP first, and put in the proper server domain name.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…
This video discusses moving either the default database or any database to a new volume.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now