Relay mail for one domain to a smart host Exchange 2010

How can I set up exchange 2010 to filter outgoing mail and send out mail from one domain to a smart host?

In exchange 2003 you could add users to the allow and deny lists on two separate smtp virtual servers.
LVL 1
TacoFlavoredKissesAsked:
Who is Participating?
 
Glen KnightCommented:
You would configure a send connector and set the address space as the domain you want to send to and then enter the smart host on this connector.
0
 
MesthaCommented:
Exchange doesn't route email based on sender, only based on the recipient. Therefore if you want to send email out via a smart host for a subset of users then you cannot.

Surprised that you got it working on Exchange 2003 with SMTP connectors in any reliable form. While some claim it is possible, I am yet to see it working in a way that can be depended on.

Simon.
0
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

 
Glen KnightCommented:
Ahhh! Misread the question! Thought it was talking about sending to a particular domain!!

As Sumon said you cannot specify which connector is used by certain groups if user.
If they try to send via the connector they don't have permission to they will receive an NDR it will not automatically try the next one.

This is true of all versions of Exchange.

You can probably seperate the users into a different Exchange server and specify that server as the source on a different connector but I am not even sure that will work reliably.
0
 
TacoFlavoredKissesAuthor Commented:
Yeah, the only way we got it working was to use individual users for the deny and allow lists in the send connectors.  Not pretty, but it is working.

Is there any way send connectors can be attached to anything else, such as a mailstore or OU?  
0
 
Glen KnightCommented:
No, as mentioned in my previous post it might work if you put those users on seperate servers and specify the source server in the connector.

Thecwsy you have it configured will not work reliably!
0
 
MesthaCommented:
Send Connectors are an org setting, not server setting. Therefore it isn't possible to have Send Connectors specific to a server.

Simon.
0
 
Glen KnightCommented:
Do if u had 2 Hub Transport Servers (on my 2 mailbox servers) and I then added these 2 servers as source servers to different send connectors this wouldn't force each server to use a different connector?

So what is the benefit of the source server tab?
0
 
MesthaCommented:
Source server is the machine that is sending the email to the Internet - same as Bridgehead on SMTP Connectors in Exchange 2003. By "internet" I mean a server outside of the Exchange org.

So if you have two hub transport servers and added both as source servers, then both would send email to the Internet (or another server outside of the Exchange org). If you only added one server to the connector then all other Hub Transport servers would send the email to that server for delivery.

If you have two Send Connectors, with equal domain names and equal costs then they will be load balanced.

The first thing Exchange looks at is domain on the Connectors. Closest match wins. Then it looks at cost. If everything is equal then it load balances.

If Send Connectors were server specific they would be under the Server Config, Hub transport (like Receive Connectors), not Org Config.

Its a common mistake, particularly with people who are used to a single Exchange server doing all of the roles and don't quite understand how hub transport actually works.

Simon.
0
 
Glen KnightCommented:
Thanks Simon.  It's always nice to learn something new :-)
0
 
TacoFlavoredKissesAuthor Commented:
That does help to understand.  Thank you.  

It is strange that Microsoft has not implemented another way of doing this.
0
 
TacoFlavoredKissesAuthor Commented:
I did find this article on what appears to be a way to do it in 2007.

http://msdn.microsoft.com/en-us/library/bb897564%28EXCHG.80%29.aspx
0
 
TacoFlavoredKissesAuthor Commented:
Scratch that.
0
 
Glen KnightCommented:
That certainly looks like like it will do the job!
0
 
MesthaCommented:
If you have the programming skills  that is about the only option. Nothing native can do it.

Simon
0
 
TacoFlavoredKissesAuthor Commented:
I think instead of the way they have it outlined in the article we are going to setup a db to manage domains we want to filter to a smarthost, and then do a quick query of the db in the routing agent.  

We do need to understand how exchange uses the Routing Agent to send mail.  We are wondering if it will spawn a new process for every piece of mail, simply use objects to handle each message, or something else perhaps.  Any insight into this?
0
 
TacoFlavoredKissesAuthor Commented:
We have a working DLL based on the article above that filters based on sender and uses a second send connector to filter out our customers who want their mail to go through policy based encryption scans before leaving the network.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.