SMTP server uses wrong IP address for a server with 2 NICs, 2 Static addresses

Hi,

I have several static IP addreses.  I put 2 NICs in one computer.  My O/S is Windows 2000 Server with IIS 6.0 installed.  I have 2 virtual SMTP servers set up, 2 domains set up, I assign the IP addresses, etc... everything seems to be configured properly, ie. subnets, gateways, etc.

The problem is, when someone at my company sends an email from one domain, the last entry in the header record of the email uses the incorrect IP address.

Do I need to bind the IP address to the SMTP server virtual domain?  

Please help!

Thanks,
Scott
smac693Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

proadminCommented:
Yes. If you don't bind the IPs you want to use it will use whatever is first in the list. I would suggest you bind ALL IPs to SMTP servers, its the best to make sure your set up correctly - otherwise you may have issues you never knew were there and can't explain.

Hope that helps!
0
smac693Author Commented:
Thanks, proadmin.  Could you explain exactly how to do that?  I'd like to award you with the points if you can help with that.

0
shauncroucherCommented:
if you are trying to use a particular smtp virtual server for outbound delivery based on the 'sender' domain, you cannot do this.

routing is based on recipient domain, not sender domain.

shaun
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

smac693Author Commented:
Thanks, shauncroucher, but please see:

http://support.microsoft.com/kb/149399

"A single network interface card (NIC) configured with multiple IP addresses defined on different logical subnets will always use the first IP address defined in the TCP/IP configuration as its source address, regardless of the destination. "

I have windows 2000 Server and it still doesn't work when I send messages.
0
shauncroucherCommented:
Hi,

This is the behaviour for routing, but for SMTP virtual servers providing access to the same domain space, ie "*", it will load balance if the costs are the same, or you can force it to use one over the other by changing the cost on the SMTP connector. In the event that the lowest cost connector is not available, the next one will still be used.

http://www.msexchange.org/tutorials/Using_SMTP_Connector_Internally.html

You can't chose based on sender domain though.

Shaun
0
smac693Author Commented:
Still not working.

On one computer, I have a single NIC, multiple IP addresses, multiple websites, and multiple SMTP servers.  So, each SMTP server is independent from the others.  

When I send email, the primary ie. first IP listed in TCP/IP is the one that is used.

How can I specify an IP address for outgoing email based on the virtual SMPT server I use?
0
shauncroucherCommented:
you cant, as explained in my last post.

shaun
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
smac693Author Commented:
I finally called Microsoft.  This will not work prior to Windows 2008 Server.  I am using Windows 2000 Server.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Server OS

From novice to tech pro — start learning today.