Welcome to Exchange Team Blog Sign in | Join | Help

Syndication

This Blog

Configuring Exchange 2007 Hub Transport role to receive Internet mail

Although they are very similar, because the Edge Transport and Hub Transport servers were designed specifically for the role that they play, they have different default settings. For example, the Edge Transport role is configured by default to accept Internet mail, whereas the Hub Transport role is configured to be as secure as possible and does not accept mail from unauthenticated (un-trusted) sources. Because of this, we often get asked if there are options for the customer that cannot or chooses not to run an Edge server.

A brief word about putting an Exchange server directly on the Internet

Historically, Exchange servers should not be directly on the Internet – in no small part because Exchange needs direct access to the Active Directory. In the case of the Client Access Server protocols (HTTPS, IMAP, POP), the recommendation is for the server to sit behind a reverse proxy/port forwarding firewall like ISA that can detect and block attacks. In the case of SMTP, the suggested solution is Edge Transport role, because that has all the functionality of Exchange (unlike other active SMTP filtering solutions) but still has the isolation options of being completely disjoined from the rest of the forest. Whether you chose the Edge Transport or Hub Transport role to receive Internet mail, the server can and should be placed behind a firewall, though active SMTP filtering is not required.

For the customers with only one server, it is suggested to consider a hygiene service such as Exchange Hosted Services (EHS) or perhaps the ISP can offer such a service.

That said, a common configuration for a single Exchange server is to have Exchange sitting directly behind a NAT firewall or reverse proxy like ISA. There is obviously a certain amount of additional risk associated with this approach, but for many smaller customers, the risk is acceptable.

For more information on this topic and the various options available, see "How to Configure Connectors for Internet Mail Flow".

What features will I be missing by doing this?

The five main feature sets that will be missing are:

  • Edge can be deployed in a perimeter network; specifically, it does not need to be domain joined (but can be), which provides greater security. Hub transport requires a connection to Active Directory.
  • Isolation – in particular, the SMTP stream from the Internet tends to be full of spam – over 70% of traffic in most cases. By separating this from your internal traffic, you can insure that internal servers are not busy processing and filtering spam. Internal servers are then free to perform routing, compliance, and other mailbox to mailbox operations. This is particularly important if internal email is mission critical.
  • Edge Transport rules agent – instead you get the Hub Transport rules agent. Hub Transport rules are largely for compliance whereas Edge Transport rules are largely for hygiene. For more information about this topic, see "Overview of Transport Rules".
  • Attachment filter protocol agent – the hub transport rules do have some attachment options, but the ability to scan the incoming MIME stream for malicious attachment types and reject at the protocol layer is not one of those features; this agent is not installed or supported on hub at the present time, however, anti-virus products like Microsoft Forefront often provide this functionality.
  • Address re-write agent – this agent generally is used by larger corporations that will have Edge servers and/or additional software that can perform this functionality.

Receive connector configuration

While there are seemingly limitless ways to configure your receive connectors, I am suggesting the route that involves the least number of steps and can be done completely within the Exchange Management Console. Go here for more information about receive connectors.

To find receive connectors in the Exchange Management Console, navigate to Server Configuration -> Hub Transport. Then select your server and you'll see the Receive Connectors tab below.

The "Default" receive connector on Hub is configured for other Exchange servers to authenticate, but it does not accept anonymous email by default. The easiest way to address this is to add the "Anonymous users" permissions group to this connector:

Note: In Exchange Server 2007 Beta 2, this step had to be performed from the Exchange Management Shell.

If you fail to do this step, people that send you email will probably get an NDR with the error "530 5.7.1 Client was not authenticated."

Accepted domains

By default, your new Exchange 2007 servers will only accept email destined to the Windows domain that the server was a member of. In order to accept email destined to your external SMTP domain, you will probably need to create a new accepted domain. This is done in the Exchange Management Console under Organization Configuration -> Hub Transport, then select Accepted Domains.

If you fail to perform this step, people who send email directly to you will probably get an NDR with the error "550 5.7.1 Unable to relay."

Send connector configuration

In order to send email, you need to configure a send connector. This is done in the Exchange Management Console under Organization Configuration -> Hub Transport, then select Send Connectors.

The simplest method is to create one of type "Internet":

If you've installed Exchange 2007 into an existing environment with 2003, then you probably already have a Send Connector (SMTP Connector) and you just need to verify the settings. If the connector is on your 2003 server, you can only view the settings from the Exchange 2007 Management Console. All changes will need to be made through from the Exchange 2003 System Manager (look for "SMTP Connectors"). For example, if you only have a connector on the 2003 machine, then all outbound mail will go through the 2003 server. If you have one on the 2003 and one on the 2007 server, then mail will go through the closest connector. If you delete the one on 2003 and have one on the 2007 server, then all outgoing mail will pass through the 2007 server.

In order for all outbound mail to pass through the connector, the address space of the connector should be * (type "smtp"):

The network tab allows you to specify whether you'll use a smart host (perhaps an SMTP server at your ISP) to relay your messages, or if you'll handle the delivery yourself (using DNS).

The source server specifies which Exchange server or servers in your organization will be responsible for sending Internet email.

Setting up an SPF record for your domain is also a good idea, especially if you relay messages off of your ISP.

Anti-spam configuration

Because Hub Transport servers only need to perform anti-spam functions when there is no Edge Transport server to perform this function, this is another feature that is not enabled by default. Adding this functionality to your Hub Transport servers is a pretty simple process. First, launch the Exchange Management Shell. In the Scripts folder that was created, you will find a PowerShell script to install the Anti-spam agents. After you run this command, you will need to restart your transport service, and restart the Exchange Management Console.

Once you complete these steps, you will see the Anti-spam tab enabled in the Exchange Management Console.

Please note that if you previously had any Exchange 2003 settings for anti-spam, you will need to migrate your settings over to Exchange 2007.

Useful customizations

Because your server is sitting directly on the Internet, you may want to change the advertised FQDN that is sent in HELO/EHLO commands in SMTP. The UI for both send and receive connectors allows you to configure this.

Because you will not be using Edge Server, you have no need for the Microsoft Exchange EdgeSync service. You can set this service to disabled to prevent it from starting and using system resources.

Final steps

The final step is to 1) make sure that your MX record is correct and 2) that your firewall is letting the connection inbound to port 25. I can't tell you exactly what to do, but usually the easiest method if you already have a mail server is to either reuse that server's IP, or update the firewall rule to point to the new Exchange 2007 server's internal IP.

Use the Mail Flow Analyzer to assist you with troubleshooting issues that may arise. Additionally, there are at least two web sites that can help you diagnose DNS and SMTP receive problems:

- Scott Landry

Published Friday, November 17, 2006 10:04 AM by Exchange
Filed Under: , ,

Comments

 

gblinckmann said:

"Edge Transport role can coexist on the same machine with ISA Server 2006 and makes for a powerful combination."

Am I missing something? I thought that ISA Server 2006 was 32-bit only and Edge is 64-bit only in production. How can they coexist, except by running virtual servers or by running both on a 32-bit OS (which isn't supported)?
November 17, 2006 4:08 PM
 

mdgrkb said:

Excelent post, Scott.  Thank you very much.  Actually I had disabled Authentication options in order to enable mail flow from the Internet.  Now I see there's a more adequate manner of doing it.  Also the anti-spam info was very usefull for me.  Thanks again.

Mario
November 19, 2006 2:27 PM
 

Devin L. Ganger (3Sharp LLC) said:

Actually, the ISA Server 2006 page states very clearly that it cannot be installed on 64-bit versions of Windows. Like gblinckmann, I'd like to know more details on how these can co-exist...
November 19, 2006 9:47 PM
 

Dr3D said:

Devin and Linckmann...
Have you tried to install it? Or are you a text only kind of person?

go beyond, try a little, see what comes up, THEN ask..

November 20, 2006 6:38 AM
 

Scott Landry said:

Yes, gblinckmann & Devin, you are correct!  I was under the impression that a version of ISA 2006 that would install on x64 was in the works (perhaps I was confused by the x64 firewall client), but that appears to not be the case.  So it would seem Exchange & ISA cannot be on the same OS in production.  My apologies and thanks for the correction!
November 20, 2006 9:34 AM
 

Exchange said:

Fixed up the post to remove the "ISA on the same machine" reference - thanks for catching that!
November 20, 2006 10:08 AM
 

Devin L. Ganger (3Sharp LLC) said:

Thanks for clearing that up, Scott; I'd heard the same thing floating around Exchange Connections earlier in the month, including from some of the other speakers. No one could trace it down, though...
November 21, 2006 11:54 AM
 

Jim McBee said:

Yes, thanks much for making that clear.  I had heard conflicting stories on this, but it did not seem like a "supported" or even recommended configuration to have ISA in a VM while running Edge on the host.  Hopefully the ISA team will have a 64-bit version out someday soon.
November 21, 2006 9:18 PM
 

RANDY NIU said:

How can we configure the allowed IP address for open relay like we configured on the Exchange 2003 SMTP Virtual Server?
November 26, 2006 2:50 AM
 

Scott Landry said:

As luck would have it, I'm writing a blog about this now!  Bare with me a few more days to make final edits.
November 29, 2006 5:05 PM
 

Scott Landry said:

We just posted it here.  Hope this helps:

http://msexchangeteam.com/archive/2006/12/28/432013.aspx
December 28, 2006 6:23 PM
 

Corey Gouker said:

You know, it's mildly amusing that after digging and reading as much as possible on TechNet:
http://technet.microsoft.com/en-us/library/bb124558.aspx

Something as simple as setting up the configuration in this way was probably best described and presented on this post.

Is it just me or is pretty much all the documentation on TechNet written for those people and org's that plan on running an Edge Transport Server and won't be using a single server solution?

I know I'm in the minority here but being a MVP I tend to like to play and run as much insane stuff as possible, the migration though from Exchange 2003 to 2007 has been a real headache on a single server set up. Even when I'm using a brand new server in a brand new domain. If it wasn't for this blog it'd be hell. So thanks a million.
January 5, 2007 11:42 PM
 

Alvin (Taiwan) said:

Very helpful, thanks for your remind!
January 8, 2007 8:53 AM
 

Mike said:

Gorey, even WITH an edge server the migration is a real pain... I´m in the second week now and finally about to shut down the 2003 server, but it was a LONG road to get everything working.  And yes, without this blog it would have been close to impossible.  Thanks, guys!
February 1, 2007 7:33 AM
 

Vendetta » Blog Archive » links for 2007-06-20 said:

June 22, 2007 1:43 PM
New Comments to this post are disabled

News


This blog and its contents are provided "AS IS" with no warranties, and they confer no rights. Use of any included script samples are subject to the terms specified in the Terms of Use.
New! Would you like to suggest a topic for the Exchange team to blog about? Send suggestions to us.

Exchange Server 2010 - Get the Release Candidate



Poll:

Other Exchange Blogs from MSFT