How can I route mail for one specific domain through another smtp virtual server on port 587 exchange 2k3

Posted on 2010-08-17
Last Modified: 2013-11-30
I need to route mail to a universal distribution group. I have created the group and entered contacts to it. It is working fine exept for one specific domain, and only when a user from that specific domain tries to send a mail to the distribution group. I get an error on the sender address as non existent, but only for the users on that particular mail domain. 4 users contact information points to a mailbox in the problematic domain, and those four addressees generates the error. But I can without problems do a "send again" to the four adressees (in outlook from my administrator account) and wupti - the delivery is ok. I have access to the mail domain as secure smtp user and I am able to send mail to the domain including if I send mail to the distribution group from my account on the problematic mail domain, but all mail from my domain will go through that particular virtual smtp server - and is therefor relayed through the problematic mail domain server. I do not want all my mail to pass through that mail server. My default smtp virtual server sends and listens on port 25 Only. So here is what I want:

Mail for to be sent through specific smtp virtual server comunicating on port 587. The extra smtp virtual server should only handle outgoing mail from my serrver to the problematic domain, including outgoing mail to the distribution group. All incomming mail should be handled by the default smtp virtual server only.

All outgoing mail for any other domain should be sent through the default smtp virtual server on port 25.

Any ideas?
Question by:xhal99104
  • 3
  • 2
LVL 19

Accepted Solution

bevhost earned 500 total points
ID: 33462601
Well considering how easy this is in linux I though this should be a piece of cake, however it appear that it is not.

I had a quick look for options on an SBS server I look after and it appears to me that you would need to create a virtual SMTP server AND and an SMTP connector.
In the SMTP connector, specify your new Virtual server under Local Bridgeheads as well as under the address space.  This should make all outbound mail go out via your new Virtual server.

Then configure the virtual server (outbound connections button, delivery tab) TCP Port to 587.  You might need to change the smart host, but DNS lookup will probably work.
I think you might also need to change the TCP port number it listens on so it doesn't conflict with your normal SMTP virtual server (Advanced button) next to IP address Dropdown general Tab.

I haven't tried this of course, but you did ask for ideas!!!


Author Comment

ID: 33466690
Than you for your reply. I have tried excactly what you suggested my self, but nevertheless it uses the default smtp virtual server anyway. My next step was to add an IP address to the network chart and use that as listen address on port 25 in order to avoid conflicts as you mentioned. I have also tried to change the listening port to another one, but then all trafic goes through the default smtp virtual server. I have now succeded in routing through the second virtual server using somewhat your procedure, but something goes wrong in the connection. The remote server does not answer the connector yet. I will try to call the administrator of the problematic domain in order to figure out what to do. But the strange thing is, that if I route all trafic through the secondary smtp virtual server it seems to work?? As soon as i try to route through a smtp connector something happens and the communication is terminatede some how .The messages queues up in the unreacable queue. It is actually very strange.
LVL 19

Expert Comment

ID: 33470758
Download a copy of putty.exe and change the connection to Telnet Port 587 enter the destination hostname and see if you can connect.

Author Comment

ID: 33471304
There is connection, and it is actually working now. I started all over again, got the secondary smtp server up working with all mail. Then I gave it a new IP to listen on but still on port 25. I guess that was one of the problems. It must listen on port 25 in order to function with the routing connector. Secondly I found out, that the routing connector must have relay permission, and that the scope must be set to "routing group" not "entire organisation". on the address space page.

Author Closing Comment

ID: 33471321
it was not possible to make it work as described in the solution by changing the listening port on the secondary smtp virtual server. I needed to add an extra IP address to the network chart and still listen on port 25. Otherwise the solution was ok.

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Utilizing an array to gracefully append to a list of EmailAddresses
Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
how to add IIS SMTP to handle application/Scanner relays into office 365.

914 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

22 Experts available now in Live!

Get 1:1 Help Now