Discussion Locked

REVISED:Exchange 5.5 IMS routing problem

0 helpful
18 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

More info here, please read original posting text that follows:
I have tried having the server that has been delivering the mail forward all mail for that subdomain.mydomain.com to the primary server. This causes a mail loop and those messages arenever delivered.
ORIGINAL MESSAGE BELOW
I have 2 Servers with Exchange 5.5(SP3). One is the primary mail server for our domain. I have some accounts on the primary server that have an alternate recipient. Those alternate recipients are set up as custom recipients to cause the mail to deliver to a subdomain for my company.
The mail should come into the primary server to those users and then be re-delivered right back out to the custom recipient. What's happening is they are coming to the primary server and then being sent to the other exchange server, through our WAN, and that server is actually delivering the message.
I can find no place where I have told it to deliver mail through the secondary system.

Any ideas? This is bothering me because I want to control which system delivers the subdomain's email.

If you need more information, just ask. I REALLY want to fix this problem soon.

Steve Cody
MCSE, CCNA, A+

18 replies

by steve cody

The users are not part of any local network that the exchange servers are on. Email comes into my mail server to their mailbox with an address of user@mydomain.com and is forwarded to a custom recipient with the address user@sub.mydomain.com. My primary exchange server is set to deliver mail for sub.mydomain.com using DNS. It is at this point that it sends it, for some reason, to another exchange server on my WAN and has it deliver the mail.

Each custom recipient was created on the primary server. They do not list a home server, only a home site. The Home "Server" for each user is also the primary server. Each user's NT account, for their real mailboxes is also created on the primary server. I have their mail forwarding to the Custom Recipient only.
I have one Exchange organization, and one Exchange site. The two servers are in this same site. Both have the IMS installed.

by burcjo

Steve,

I thought I needed to ask more questions, but now I believe I may have an answer for you.

I will make the assumption that all your "MX" records are correct making this a real Microsoft Exchange issue having nothing related to IP name services.

You may simply need to modify the "cost" value in the "site addressing | routing" section in the secondary or sub.mydomain.com server. Change that to a number higher than the one that is in your primary. 100 is the worst route and 1 isthe default and best route. Make sure the primary cost is 1 and the secondary cost is more.

The MTA handles routing of messages and you actually only need one IMC for each site. If you have 2 servers in the same site you need to let microsoft MTA know how to handle the routing of those internet messages.

John Burchell
Network Manager
Green Mountain Energy Company

by steve cody

Your answer is closest to what I'm looking for, I believe so you and another guy below will split the points.

The problem hasn't been resolved, but I'm working around it.

Thanks!

by steve cody

John:
I have the IMS's at each location because they both have their own Internet connection, but the WAN connection between them is low speed.
I understand what you are saying about the routing cost. I really don't want a work around. I want a fix.
I have nothing configured that is telling the IMS on the primary server to deliver mail for this subdomain using anything but itself. This is why I don't understand why it's sending the mail to another IMS to be delivered. Why isn't it doing the delivery?

by burcjo

Excuse me, I really don't have enough information afterall. I'm sure I can help you solve your problem if you wish to contact me offline.

by gmscne

If you have one Exchange organisation and one site, but that site has two exchange servers, one being the primary server, then it may be that the other server is being used by the main server as a bridgehead. If so, bridgehead servers do deliver mail. It may be that the other server on the wan is closer to the recipient of the message which gets routed there.

by shanghai sam

None of the servers are any closer to the alternate recipients than the others. The alternate recipients are the ones receiving the emails and they are out on the Internet.

by kdrungilas

Questions:
1. How long has this been occurring? From the initial setup of Exchange? From a point where you created the custom recipients? From a change on the IMC properties? From the moment you created a sub-domain?

2. Does this happen with every message sent to the custom recipient? Or only randomly as it would if you have enabled "forward to host" set on the IMC Connector Tab of Properties? An entry for forwarding to host would cause the first message to go to the primary EX server and the next message to go to the other server, the next goes to the primary and so on...

I assume you have message tracking enabled in order to follow these messages from the primary to the other EXCH server.

3. Are both IMCs receiving mail for the same domain? One is not for domain and other for sub.domain, right?

by magetower

There are a couple more questions to get a better picture:

1. How are you connecting to the Internet and are your LAN IP addresses also your Internet IP addresses?

2. Do you maintain your own DNS or is it handled by your ISP?

3. Are you trying to make the primary Exchange server deliver directly to the forwarded mailbox? If so, where do the forwarded mailboxes reside?

The problem as I see it:

The two exchange servers are both in DNS as MX hosts one being under the primary domain and the other the secondary domain. The IP addresses for the servrs is the same for either Internet or WAN. With the use of the Custom SMTP Recipient containers you are actually doing the following routing of the mail.

1. The message comes in under the primary domain.
2. It gets forwarded to the custom recipient which uses an SMTP address for another domain.
3. The IMS does a lookup for the secondary domain and gets the IP address for the second Exchange server.
4. Noting that IP address actually coinsides with the IP addressing used accross the WAN it takes the most direct route and contacts the secondary IMS through the WAN link.
5. Now talking IMS to IMS the transfer of the message is made to the secondary server where the local MTA takes over and delivers the message to the mailbox.

The real question is then: How do you really want the forwarded message routed and delivered?

Looking forward to your reply...

by shanghai sam

I do not have the secondary server set up as the MX entry for any domain. The server that is suppsoed to receive the subdomain's email is out on the Internet, away from my WAN/LAN.

I really want the forwarded message to be delivered by the primary server. Since the primary server happens to be the one that received it to begin with, I feel like it should go ahead and re-deliver it out to the alternate recipient's address.

by dao251

Steve,

If I understood you correctly you want each of your server deliver Internet mail using its own IMS (not the other server IMS) . I would suggest you have to reconfigure Address Space of IMS on both servers. There is an entry like "SMTP * 1"(where * means all addresses and 1 means routing cost). However, by both have "Organization" restriction by default. I believe your problem will be solved if you change that restriction to "Location".
Or, you may want to add an entry specifically for that subdomain with "Location" restriction at both servers.

Sorry, I have no sufficient test environment to check/test that myself :-))

Hope this gives you some ideas,
Dima

by dao251

then, you have to restart IMS at both servers and probably wait for Routing recalculation.

by steve cody

Your answer is closest to what I'm looking for, I believe so you and another guy below will split the points.

The problem hasn't been resolved, but I'm working around it.

Thanks!

by magetower

The above answer is the right direction but would restrict your users to only sending out the server their mailbox resides on. This is no problem if your mailboxes are distributed between the servers but the information you have given here indicatesall the mailboxes reside on the primary server (kind of makes the secondary server worthless if the WAN link croaks). By using the location restriction the outgoing SMTP would never go through the secondary IMS. Some information for setting up Location restrictions can be found in MS KB article Q234639.

If you are only forwarding to one outbound location then you can set up routing for that domain by placing it in the Address Space for the IMS and giving it a 1 and the all others (*) route a2 on the primary indicating the primary IMS.

Do the same for the secondary IMS except for indicating itself for the all others (*) entry.

Hope this helps...

by shanghai sam

I have 3 WAN locations, each with their own server. Each mailbox is on the server at it's location.

The problem I'm having happens to be related to the forwarding of mail to custom recipients set up as the alternate recipient for some accounts on the primary server.

This discussion is closed to new replies.