Route Masters
Story by Dick Beddoe, 02-12-2008, 0 comment
We all know that the Exchange 2000 plus series uses SMTP as the message transport, and although in versions 2000 and 2003 support was retained for X400, it has gone from Exchange 2007.
Back to basics
Exchange 2007 uses SMTP to transmit e-mail, but the connections between servers are authenticated and encrypted. Other connections, including any sort of relays (ie connections from other SMTP servers), are all prohibited by default. No more bouncing messages off an Exchange server to relay your private mail out of Outlook Express. The SMTP engine is no longer borrowed from IIS and many of the features of Exchange 2003 e-mail routing have gone, notably the Routing Groups, the Link State Table, and even the administrative groups. (However, check out the Active Directory hierarchy for Exchange because for upwards compatibility you will still see an Administrative Group and a Routing Group for Exchange 2007 – Exchange 12 rocks).
In a nutshell, the replication topology model used by Active Directory using Sites, Site links and Site-link bridges is now used by Exchange to route e-mail. Bizarre as it sounds, there is no longer a requirement to set up routes for e-mail transmittal as this is done automatically by Exchange by checking out the Active Directory Site topology. So how does this actually happen?
Exchange 2007 has a number of roles, including Mailbox, Client Access, Unified Messaging, Hub Transport and Edge Transport. We are going to focus on just two, the Mailbox and Hub Transport. Think back to Exchange 2003 and remember that when a message was sent it went through the Categorizer on that server prior to being sent to an SMTP queue or sent for local delivery. In Exchange 2007, the role of Categorizer SMTP transport has been separated off into its own role, the Hub Transport. This may be combined with the mailbox to give a broad equivalence to Exchange 2003, or be run on a separate server.
New routes
For Exchange 2007 the routing process has changed significantly. Looking at the Hub Transport routing function, the whole process may be split up into five major stages. At the start is the Microsoft Exchange Transport Service for inbound e-mail. The second element is the infamous Categorizer that processes all e-mail passing through the Hub Transport, regardless of its source. This is followed by the third element, the downstream Message Delivery, which delivers either to the fourth element, the SMTP Send (for remote Site delivery or an external connection) or to the fifth element, the Store Driver for local delivery within the Site. The terminology has changed slightly – the term Local Delivery now means to a mailbox that resides in the same Active Directory Site as the message sender. For Exchange 2003 this term used to mean on the same server.
E-mail enters the Hub Transport in one of four ways. First, on each database there are messages sent by users, sitting in their Outbox. These are picked up by the local store service and dropped onto the submission queue of the local Hub Transport. (This server will be in the local Active Directory Site.) Through the Queue Viewer (in the tools section of the Exchange Management console) the submission queue is easy to see and should be empty.

From the Exchange Management Console Tools you can go to the Queue viewer
Secondly, any Receive connectors run by the Hub Transport may receive messages from other systems, including Exchange 2003 servers (sending messages through a Routing Group Connector through the MS Exchange Transport Service). There are by default two Receive connectors on any standard installation of a Hub Transport, the Default and Client Receive connectors.
Thirdly, there may be other agents that interface with the Hub Transport that forward mail for processing, and finally there is the traditional Pickup folder as used by any SMTP-based engine. Any correctly formatted file will be picked up as an SMTP message and duly processed. The MS Exchange Transport Service runs a whole series of generic processes, including the built-in antispam features, TarPitting and IPConnection Throttling. Any third-party antispam agents will also be run at this stage.
The big Cat
At the centre of everything is the Categorizer. All e-mail goes through it. The Categorizer has many elements, and at the start of the process lies the Submission queue. All messages initially sit in this queue, and from there the Categorizer leaps into action. In principle, this process is not that different from its predecessor insofar as it picks up messages from the Submission queue and performs a series of checks before sending the message onto the appropriate queue. These checks include resolving the recipient list, enumerating distribution lists, ensuring that e-mail does not exceed any global or specific size limits, ensuring that the format is correct and does not require conversion to a foreign format, and processing the destination and deciding the next hop in its transmittal to the final destination.
Built into the Categorizer are a series of agents that have additional roles. All messages are checked by these agent processes and they include an optional antivirus check, followed by the core Transport agent and, if configured, the Journaling agent will fork messages off to an additional destination. The last agent is the RMS pre-licensing agent. This has the job of checking for Rights Management System (RMS) licence restrictions that may apply to a mail message.
Cat key
The Categorizer is still one of the backbone processes of Exchange in that it’s the main engine for routing e-mail. Once the queue has been established and the message added, the Categorizer progresses onto the next message.
The next downstream component is Message Delivery. Messages delivered out of the Categorizer will be delivered to one of three possible queues. Messages destined to the SMTP engine will be queued on a Remote Delivery queue for out of Site transmittal to another Hub Transport. Post-processing of the message may yet take place as the message may be converted from 8-bit to 7-bit (standard SMTP). The connections made by the SMTP service will use Kerberos (authentication) and TLS (encryption) for security. These connections are broadly equivalent to Exchange 2003 connections across a Routing Group Connector.
The second queue in Message Delivery is Foreign Queues and, as the name suggests, relates to e-mail transmittal to foreign systems (using SMTP) typically to the “Drop directories” of a remote smart host.
The third and last queue proper is for internal delivery of e-mail to one of the Mailbox role holders. This may be on the same physical server or, on larger installations, a separate Mailbox server. The message is delivered to the actual Mailbox Store (via the Store Driver) through an encrypted Remote Procedure Call.
These three queues should always be zero in a well-run system. The appearance of queued messages typically indicates a connection failure.
There are two other components of Message Delivery. The Unreachable Queue will hold any messages that have resolved correctly to a valid address but for one reason or another cannot be delivered. This may be caused by a correct and valid DNS resolution for a remote smart host, but a failure in actually connecting to the resolved IP address. The Connection Manager determines if (for instance) Journaling is enabled and has caused the message to be “forked”. The second message is redirected back through the Message Submission queue in the Categorizer for delivery to the journal address.
All in all
The whole process has gained sophistication from the basic message forwarding of old. When you see how e-mail is processed and the complexity of the process, it’s obvious that development is an expensive business and it’s easier to understand why Exchange licences cost so much and why Exchange has pretty much wiped out the competition in the world of e-mail.
Sign up to receive the latest news and updates from Server-Management via email.
Second Site Saver
Symantec Enterprise Vault
OLAP usage in the UK
The One True Database Engine
System Center Essentials 2010 RC
Exchange Server 2010: Database Availability Group
Migrating Blackberries to Exchange 2007
Exchange 2010: The New Archiving Feature
Strong authentication failing
- Posted:
- 2010-03-12
- Location:
- Kent, South East
- Salary range:
- 45000 - 55000
- Salary period:
- year
Description:
We urgently need an experienced IT Manager with strong people management skills (team of 15) and with a solid appreciation of IT infrastructures and IT operations to join the management team within this leading organisation. The remit will be to be drive ITIL best practice across the IT infrast... read more
- Posted:
- 2010-03-12
- Location:
- Derbyshire, Derbyshire
- Salary range:
- 55000 - 60000
- Salary period:
- year
Description:
On behalf of a large blue chip client we are looking for an IT Manager with an in depth understanding of WMS remote data capture, warehouse automation and the “black box technology” utilised to provide seamless interfaces. This is a challenging role which requires a number... read more
- Posted:
- 2010-03-12
- Location:
- 127, UK, London, London
- Salary range:
- 60000 - 70000
- Salary period:
- year
Description:
My London based legal client is looking to recruit an IT manager. The role of the IT manager will be both technically hands on and a managerial role, with 3 direct reports. The IT manager will have to present business cases to the partners, lead the current team, bring new ideas and vision for ... read more
- Posted:
- 2010-03-12
- Location:
- Sheffield, South Yorkshire
- Salary range:
- 20000 - 25000
- Salary period:
- year
Description:
PLEASE DO NOT APPLY UNLESS YOU HAVE A LEGAL BACKGROUND. IT Technician (Legal) Sheffield £20-25k The Job Role: We are looking for a network administrator who will be able to maintain and support the systems our client has in place providing services to their team. The Systems Administ... read more
- Posted:
- 2010-03-12
- Location:
- Basildon, Essex
- Salary range:
- 19000 - 20000
- Salary period:
- year
Description:
We our looking for an IT Support + Telephony Manager to manage the IT Support function to ensure that all objectives are met on a daily, weekly and monthly basis. Our Client is a customer focused business, entrepreneurial and flexible organisation whose people are seasoned in the various discip... read more
Want to advertise here? Follow me!