We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Mail is being sent from the wrong ip address.

CommonSenseSolutions
on
Medium Priority
691 Views
Last Modified: 2012-05-07
We have a new SBS 2008 server that was upgraded from SBS 2003.  There are two IP addresses on the server 10.0.0.5 and 10.0.0.7.  We are using 1 to 1 Nat on the firewall. There is a NAT rule in place to route the traffic from x.x.x.158 to 10.0.0.5.    The IP address of the WAN port on the firewall is x.x.x.154.

The issue is that before the upgrade all mail was going out on x.x.x.158.  Now all mail is coming from x.x.x.154 and there for the PTR look-up is failing.  My guess is that the mail is being sent from the 10.0.0.7 address and not the 10.0.0.5 address.  

I have tried:

Set-SendConnector "MySendConnector" -SourceIPAddress "10.0.0.5"

but that didn't do it.    

Is there anyway to specify what IP address mail is going out on?

Any Ideas??
Comment
Watch Question

Commented:
Hey,

Normally the NIC that is being used for sending the mail is the one that is in top prio in the networking part.. I don;t have a 2008 here but can show you were to look.. Also, may i point out that having a mulktihomed DC or Exchange server isn;t really best practice??

1. Click Network in Start.
2. Select Network and Sharing center.
3. Select Manage Network Connections.
4. Press Alt key. The The Advanced menu display on the top.
5. Click Advanced and then Advanced Settings.

Make sure that the nic with the ip address you would like to use for sending e-mail is the firest NIC Microsoft uses to connect to the network.

Also, you can do a route print within a dos box to see which NIC has the lowest metric. Make sure that the one ytou would like to send the e-mails with has the lowest metric..
I neglected to mention that IP addresses are assigned to the same NIC.   The server is not multi-homed. The other IP is being used for internal FTP.

Commented:
Ok then... What is the primary ip address you added to the machine?? Is it the one that needs to send out the mails or the one that is serving as the FTP server?? You set up the FTP server using IIS?? And made sure that it is set to this specific ip address rather than to the one you need to send the e-mails with??

What did the route print say, i'm mostly interested in the default gateway setting, this is the first line in your route table..
The primary ip of the machine should be  10.0.0.5  and that is the one that mail should go out on.  The FTP is setup in IIS  and is using the 10.0.0.7 ip address.

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0       10.0.0.1       10.0.0.5     15
          0.0.0.0          0.0.0.0       10.0.0.1      10.0.0.42      5
       10.0.0.0    255.255.255.0         On-link        10.0.0.5    266
       10.0.0.0    255.255.255.0         On-link       10.0.0.42    261
       10.0.0.5  255.255.255.255         On-link        10.0.0.5    266
       10.0.0.7  255.255.255.255         On-link        10.0.0.5    266
      10.0.0.42  255.255.255.255         On-link       10.0.0.42    261
     10.0.0.255  255.255.255.255         On-link        10.0.0.5    266
     10.0.0.255  255.255.255.255         On-link       10.0.0.42    261
        127.0.0.0        255.0.0.0         On-link         127.0.0.1    306
        127.0.0.1  255.255.255.255         On-link         127.0.0.1    306
  127.255.255.255  255.255.255.255         On-link         127.0.0.1    306
        224.0.0.0        240.0.0.0         On-link         127.0.0.1    306
        224.0.0.0        240.0.0.0         On-link       10.0.0.42    261
        224.0.0.0        240.0.0.0         On-link        10.0.0.5    266
  255.255.255.255  255.255.255.255         On-link         127.0.0.1    306
  255.255.255.255  255.255.255.255         On-link       10.0.0.42    261
  255.255.255.255  255.255.255.255         On-link        10.0.0.5    266
===========================================================================
Persistent Routes:
  Network Address          Netmask  Gateway Address  Metric
          0.0.0.0          0.0.0.0       10.0.0.1       5
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Commented:
I would also be looking at you firewall device. Make sure it has the right pointer and SPF records and see if there are any settings to configure any static routes. From this IP to This IP.
I totally missed that.  The 10.0.0.42 address for the Virtual Server.  I guess that because it was a virtual server I didn't think it would be a factor.
I changed the routing metric in the table and that fixed the issue.

Commented:
Prefect, so now your able to send the e-mails??

If so, nice to know it works :) Please accept one of the answers if it did help you out with resolving this :)
That was it I changed the metric to higher number and emails went out on the correct IP.   Thank you very much for all of your help rhandels.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.