[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Relay mail for one domain to a smart host Exchange 2010

Posted on 2009-12-29
17
Medium Priority
?
2,974 Views
Last Modified: 2013-11-30
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.
0
Comment
Question by:TacoFlavoredKisses
  • 7
  • 6
  • 4
17 Comments
 
LVL 74

Expert Comment

by:Glen Knight
ID: 26143686
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
 
LVL 65

Expert Comment

by:Mestha
ID: 26145155
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
 
LVL 74

Expert Comment

by:Glen Knight
ID: 26145214
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:TacoFlavoredKisses
ID: 26145248
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
 
LVL 74

Expert Comment

by:Glen Knight
ID: 26145287
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
 
LVL 65

Expert Comment

by:Mestha
ID: 26145523
Send Connectors are an org setting, not server setting. Therefore it isn't possible to have Send Connectors specific to a server.

Simon.
0
 
LVL 74

Expert Comment

by:Glen Knight
ID: 26145626
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
 
LVL 65

Expert Comment

by:Mestha
ID: 26145671
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
 
LVL 74

Expert Comment

by:Glen Knight
ID: 26145728
Thanks Simon.  It's always nice to learn something new :-)
0
 
LVL 1

Author Comment

by:TacoFlavoredKisses
ID: 26145794
That does help to understand.  Thank you.  

It is strange that Microsoft has not implemented another way of doing this.
0
 
LVL 1

Author Comment

by:TacoFlavoredKisses
ID: 26146019
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
 
LVL 1

Author Comment

by:TacoFlavoredKisses
ID: 26146025
Scratch that.
0
 
LVL 1

Accepted Solution

by:
TacoFlavoredKisses earned 0 total points
ID: 26146056
0
 
LVL 74

Expert Comment

by:Glen Knight
ID: 26146536
That certainly looks like like it will do the job!
0
 
LVL 65

Expert Comment

by:Mestha
ID: 26147613
If you have the programming skills  that is about the only option. Nothing native can do it.

Simon
0
 
LVL 1

Author Comment

by:TacoFlavoredKisses
ID: 26153467
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
 
LVL 1

Author Comment

by:TacoFlavoredKisses
ID: 26214363
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

Featured Post

Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

Question has a verified solution.

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

The main intent of this article is to make you aware of ‘Exchange fail to mount’ error, its effects, causes, and solution.
This article will help to fix the below errors for MS Exchange Server 2016 I. Certificate error "name on the security certificate is invalid or does not match the name of the site" II. Out of Office not working III. Make Internal URLs and Externa…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Suggested Courses

830 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