• Home
  • About
  • Blog
  • Training
  • Books
  • Contact
    • Email
    • Facebook
    • Twitter
    • RSS

Practical 365

  • Office 365
  • Exchange 2019
  • Exchange 2016
  • Exchange 2013
  • Hybrid
  • Certificates
  • PowerShell
  • Migration
You are here: Home / Exchange Server / Exploring Transport Rules in Exchange Server 2013

Exploring Transport Rules in Exchange Server 2013

August 4, 2012 by Paul Cunningham 60 Comments

Transport rules have been a feature of Exchange Server since the 2007 version and have been included in Exchange Server 2013 with a number of improvements.

New Features in Exchange 2013 Transport Rules

Microsoft has published a list of changes and improvements to transport rules on this TechNet page.

Support for data loss prevention policies is one of the major new features in Exchange Server 2013, and this integrates with transport rules.

Exchange 2013 also has a number of new predicates (conditions) and actions for transport rules. A few of the highlights are:

  • Ability to take action on messages that have been sent from specific IP address ranges
  • Ability to take action on messages that have attachments with specific extensions, or that contain executable content
  • Ability to stop subsequent rules from processing a message (this will make the order of rules important for some environments)
  • Ability to generate incident reports to an email address at varying severity levels
  • Transport rule information is now included in message tracking logs
  • Rule monitoring to detect and alert on rules that are delaying email delivery

Managing Transport Rules

Transport rules in Exchange Server 2013 can be managed in two ways. The first is by using the Exchange Management Shell cmdlets:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
[PS] C:\>get-command -Noun *TransportRule*
 
CommandType     Name
-----------     ----
Function        Disable-TransportRule
Function        Enable-TransportRule
Function        Export-TransportRuleCollection
Function        Get-TransportRule
Function        Get-TransportRuleAction
Function        Get-TransportRulePredicate
Function        Import-TransportRuleCollection
Function        New-TransportRule
Function        Remove-TransportRule
Function        Set-TransportRule

The second is by using the Exchange Administration Center, in the Mail Flow section under Rules.

Managing Transport Rules in the Exchange Admin Center

Creating New Transport Rules

The New Rule wizard behaves in an interesting way in Exchange Server 2013. If you simply click the + button the New Rule wizard begins and exposes a limited subset of the available conditions and actions in the drop down lists.

Creating a new transport rule in Exchange Server 2013

However, there is also a More options link in the wizard start screen.

Exposing more options for transport rules

Clicking that link expands the options available in the wizard to a much more granular set, as well as the ability to set multiple conditions and actions.

Fine-grain controls for transport rules in Exchange Server 2013

Creating New Transport Rules Based on Templates

In addition to the New Rule wizard behavior shown above you can also create a new rule based on a template of sorts. By clicking the little arrow next to the + icon a menu of common rule types is presented to get you started.

Transport rule templates

For example, choosing the “Apply signature or disclaimers” option from the list the new rule starts with the “Append a disclaimer to the message” action already selected.

Transport rule to append a disclaimer to a message

Other templates present different subsets of actions depending on the general purpose that the rule is for. However in all cases it appears you can still click More options to get access to all of the conditions and actions if needed.

Time-Based Transport Rules

Another useful capability of  Exchange 2013 transport rules is the ability to set specific dates for the rule to be activated and deactivated.

This could be useful for businesses that need to align their disclaimers with specific events such as a marketing campaign, a holiday period, or corporate merger/acquisition.

Transport Rules Audit Mode

Exchange 2013 transport rules also have an audit mode so that they can be tested without impacting message delivery. In the New Rule wizard these options are visible as the two “Test rule…” modes.

Exchange 2013 transport rule test/audit modes

Although they are referred to as “Test” in the Exchange Admin Center the modes are referred to as “Audit” in the New-TransportRule cmdlet parameters.

So in effect a rule can be placed in one of three modes:

  • Enforce – the rule is active and all the actions you have specified will be taken
  • Audit (Test rule with notifications disabled) – the rule is active, and the actions are logged to the message tracking logs, but not actually enforced on the message
  • Audit and Notify (Test rule with notifications enabled) – same as Audit mode except any “Notify…” actions on the rule are taken

Summary

As you can see a number of improvements have been made to transport rules in Exchange Server 2013 that add more power and flexibility to this feature, which will no doubt help many organizations who rely on transport rules today or who have specific needs that aren't quite met by the transport rules functionality in previous versions of Exchange.

Paul Cunningham

Paul is a Microsoft MVP for Office Apps and Services and a Pluralsight author. He works as a consultant, writer, and trainer specializing in Office 365 and Exchange Server.

0 Shares

Exchange Server Exchange 2013, Transport Rules

Comments

  1. jamshaid says

    August 7, 2012 at 10:02 pm

    how can we forward emails coming from any specific domain in exchange 2010 ??

    Reply
  2. Piotr says

    September 9, 2013 at 6:26 pm

    How we can add logo to a disclaimer message to all outgoing mail that leaves the Exchange 2013?

    Reply
  3. geezbill says

    October 17, 2013 at 12:43 am

    Paul, I’m interested in this auditing. What type of reports can be pulled to give details on the transport rules that have been processed? Would like to know what emails went through what rules at what times etc. Also, is this possible for 2010?

    Reply
  4. jehad khalil says

    February 13, 2014 at 9:47 pm

    dear
    I was installed exchange 2013 in stead of 2003 few days ago from that time Iam facing problem with the read receipt

    one is generated from the server and the other upon client request for read report the means anyone send us email he received tow read messages for the email the first is onbehalf the receipt and the other upon the sender request for examaple

    from: musheer sheikhali ; on behalf of; musheer sheikhali

    from: musheer sheikhali ;

    these are 2 read receipt for the same email

    Reply
  5. jehad khalil says

    February 13, 2014 at 9:49 pm

    how can i prevent the onbehalf read receipt in exchange 2013

    Reply
    • Paul Cunningham says

      February 13, 2014 at 11:54 pm

      I already responded to you yesterday asking for more info about the problem:

      https://practical365.com/exchange-server-faq-message-tracking-include-bcc-recipients/#comment-33794

      Reply
  6. Sambabs says

    April 10, 2014 at 4:16 am

    Hi Paul, I am desperate to change the attachment size limit in Exchange 2013. I haven’t found any good step by step instructions, please help. thanks.

    Reply
    • Paul Cunningham says

      April 10, 2014 at 9:53 am

      There is this page on TechNet:

      http://technet.microsoft.com/en-us/library/bb124345(v=exchg.150).aspx

      Reply
  7. hari says

    May 5, 2014 at 4:15 pm

    Hi paul,

    is it possible to create rule for, allowed only outgoing mails not need incoming mails for particular user.
    please suggest.

    thanks

    Reply
    • Paul Cunningham says

      May 6, 2014 at 10:02 pm

      Yes, here you go:

      https://practical365.com/block-external-emails-exchange-server-2013-mailbox/

      Reply
  8. Ajishlal says

    June 13, 2014 at 5:24 pm

    Hi Paul,

    I would like to ask you, how to create a transport rule for rejecting email for distribution group and expect keywords in subject line.
    could you please tell me how we can add multiple keywords in above filtering and how to do this shell script

    Reply
  9. Reynaldo Ruiz Flores says

    July 3, 2014 at 3:32 am

    I cannot use append for a disclaimer. Why? Always back to prepend. Is related to licensing of Exchange 2013 I’m using Standard Server versión & Cals. Do I need Standard Server & Enterprise Cals?

    Reply
  10. DT says

    September 11, 2014 at 12:55 pm

    How do you add logo into the disclaimer? I want to create a standard organization signature but with logo, not just text base. Does it allow you to achieve that?

    Reply
    • Paul Cunningham says

      September 11, 2014 at 1:56 pm

      Not natively. There are third party disclaimer tools that will let you do that.

      Reply
      • Ronnie Jones says

        June 20, 2015 at 1:52 am

        I have done this using html tags in the disclaimer box – <a href="http://www.whateverwebsite.com/logolocation&quot;

        Reply
  11. RM says

    October 23, 2014 at 5:20 pm

    Paul,
    Will transport rules be applied for mails originating from iPhone devices that are linked to the exchange account? We have a rule that will prevent mail from being sent outside the domain. Works on the Outlook client but not from the iPhone iOS. Thanks for any insight.

    Reply
    • Paul Cunningham says

      October 24, 2014 at 4:00 pm

      Yes, if they are using ActiveSync to connect. If they’re using POP or IMAP and some other SMTP server you don’t control then they can send anything they like.

      Reply
  12. Ronald says

    December 19, 2014 at 11:27 pm

    I read one of your article for exchange 2010 ,
    https://practical365.com/restrict-outbound-email-transport-rule/
    someone said that there is a delay of 4 hrs before the rules kick in and the solution was to restart transport services for immediate action. Does it hold true for exchange 2013. Also if have a rule already setup to allow only a certain group to send emails to a particular email address and then I add a user to that group, does it take 4 hrs for that as well?

    Reply
  13. Deepakraj says

    December 22, 2014 at 11:57 pm

    Hi Paul, Thanks for the article.
    I have a question. Can we forward all emails to administrator which contain “bcc” ? I know we can do in Ex2007/2010 but I am not able to do for Ex2013. Could you advise me on this? much appreciate your feedback. Thanks

    Reply
  14. Amin says

    December 24, 2014 at 5:54 am

    I want to NOT ACCEPT any mail sent to me from outside my oganization within a time frame. How can I do this?

    Reply
    • Paul Cunningham says

      December 24, 2014 at 12:58 pm

      Use a time-based transport rule, as mentioned in the article above.

      Reply
  15. Afaq says

    July 6, 2015 at 2:03 pm

    Hi Pual,

    how can i block the attachment on emails to sender and receiver on an specific groups. and can block the external emails unable to send and receive out side the domain or organization. Thanks

    Reply
  16. Bhupinder Singh says

    September 26, 2015 at 3:58 pm

    In Exchange Server 2013, I want to create mail flow rule so that it can reject the message with explanation as “BCC is not allowed as per company policy”. I found following header in Internet header: X-MS-Exchange-Organization-Recipient-P2-Type: Bcc.

    But when I put this in mail flow rule by specifying as below: A message header includes…
    ‘X-MS-Exchange-Organization-Recipient-P2-Type’ header includes ‘Bcc’

    This rule does not apply. Pls help me out.

    Reply
  17. Ryan Favila says

    January 9, 2016 at 4:12 am

    Is there a way to create a rule that creates delivery receipt and send it to anyone sending from outside the organization. Please help.

    Reply
  18. Robert O. Rosal Jr. says

    January 26, 2016 at 7:37 am

    To implement signatures, do you have to have a premium cal?

    Reply
  19. JMR says

    February 4, 2016 at 9:45 am

    I would like any email with a reply-to address in the return address field has its subjects appended with ‘CAUTION: Reply address is different, could be a hoax’

    is this possible?

    Reply
    • Paul Cunningham says

      February 4, 2016 at 8:15 pm

      Not with a transport rule, as far as I know.

      Reply
  20. JG says

    February 23, 2016 at 2:46 am

    I need an auto-responder for a shared mailbox. Anyway I can do that through the transport rules? Right now I have script that disables and enables the autoreplystate every 10 minutes. I am seriously considering buying a third party product for this.

    Reply
    • Paul Cunningham says

      February 23, 2016 at 12:31 pm

      Exchange isn’t designed or intended to be an auto-responder system, so you should look at products or services that specialise in that functionality.

      Reply
  21. JMocherman says

    March 3, 2016 at 5:51 am

    I would like to set a Transport rule to Not request a read receipt for any emails sent to an external domain. Is there a way to do this?

    Reply
    • Paul Cunningham says

      March 3, 2016 at 9:03 am

      Looks like this article answers your question.

      http://blogs.technet.com/b/exchange/archive/2011/02/23/3412028.aspx

      Reply
  22. Scott says

    March 3, 2016 at 2:45 pm

    Hi Paul,

    I am trying to something very close to this article, however, I am confused as to the use of the word ‘group’. Under Apply this rule if… box, it gives me the option of The sender is a member of this group. I would think that I could use an AD group but it appears that Exchange does not look at AD groups for this. Is there any way to do that using the AD groups?

    Thanks!

    Reply
  23. DOR says

    March 18, 2016 at 1:20 am

    Hi,
    we’re using Exchange 2013.

    I’ve been trying to google this for a while and couldn’t find a solution.
    I Created a RULE for one of our users, that “FORWARDS Message for APPROVAL” to his Manager, when the recipient is “OUTSIDE The Organization”.

    The rule works FINE, and the email is delivered to the recipient only after the Manager ACCEPTS.

    The thing is, There seems to be a TIMEOUT for the approval request, and the message is automatically Rejected if the Manager DIDN’T Respond in the first 2-3 Hours.
    ( we encountered this because the manager was on a Flight for 5 hours, and wasn’t able to Respond, not to mention that Iphone users cannot ACCEPT these requests )

    I Simply CANNOT Find any solution or Article that explains how to CHANGE this Auto-Rejection TIME FRAME to a different value.
    I’d appreciate is someone can help me out here… this is destroying the innocence of my soul. 😉

    Thanks in advance,
    Dor

    Reply
  24. sam_in says

    May 14, 2016 at 1:59 am

    Hi Paul,

    My query here is about out of office reply issue. We are having exchange 2013 and outlook 2010. We are setting out of office message to only inside my organization and outside of organization is off. But still outside of organization users are getting out of office message..

    Noe sure why out of office message is going to external users..any suggestion for this?

    Reply
  25. Kevin says

    June 16, 2016 at 3:43 am

    Hi Paul,

    I have been trying to create a rule that would monitor the Reply-To header and if it matches a specific email address remove the Reply-To header. It seems the way to do this would be to use the “Remove this Header” action and setting it to Reply-To. However it is not removing it.

    I know the rule is processing because I added an action to modify the subject and that is occurring.

    Is it possible to remove the Reply-To header or is there any sort of list that explains what headers can be removed?

    Thanks

    Reply
  26. Shajith says

    July 29, 2016 at 7:53 pm

    Hi Paul,

    Is there any possibility in exchange 2013 Transport rule to keep a BCC copy to the sender manager when ever the Domain users are sending mail to External.

    Reply
  27. DM says

    August 18, 2016 at 5:48 pm

    hi ..
    plz could you tell me if i can send email to all organization and exclude specific nested group from receiving it ??

    Reply
  28. Pascal says

    September 29, 2016 at 8:34 pm

    Dear Paul,

    I have a simple question.
    We added a disclaimer on our Exchange 2013 server.
    How can we proof that we have send our disclaimer?
    The customer could lie and say: sorry, I didn’t received your disclaimer.

    Since the disclaimer does not show up in the send items of the employee I must have some kind of proof that the mail did had our disclaimer added by the server.

    Friendly regards,

    Pascal

    Reply
    • Paul Cunningham says

      September 29, 2016 at 8:36 pm

      Use journaling.

      But email disclaimers hold absolutely zero legal weight in any country I’ve ever looked at. All they really are is something to make people feel better.

      Reply
  29. Ali Mkahal says

    October 4, 2016 at 10:39 pm

    Dear Paul,

    Can we in someway save the rejected message that is a bulk email for example and make Exchange 2013 send it automatically once the transport rule is turned off ?

    Thanks in advance.

    Reply
    • Paul Cunningham says

      October 5, 2016 at 10:08 am

      I don’t really understand what you’re trying to achieve but I suspect the answer is no.

      Reply
  30. Steven says

    October 5, 2016 at 9:38 am

    On occasion, we have users who send out an email with a large attachment to a large number of contacts (250-300). When this happens, our exchange craws.

    Is there anyway to do a rule where if the email has a large size and large recipients, it will be delayed until the evening time, when the exchange server will not be so busy.

    Reply
    • Paul Cunningham says

      October 5, 2016 at 10:08 am

      No.

      Reply
  31. abdo says

    October 19, 2016 at 9:25 pm

    is it passible to change disclaimer size limit in exchange

    Reply
  32. Jim says

    December 14, 2016 at 12:20 am

    Do you know of any Transport Rule limitations for Exchange 2013? Specifically how big one rule can be? I found an MS article that Exchange online can only be 4kb in size, thus limiting to 4096 characters. But I can’t find any documentation for Exchange 2013.

    Reply
  33. SANKARASUBRAMAN PARAMESWARAN says

    March 22, 2017 at 6:08 am

    we are looking for the solution for the departed users. We will add the departed users in the group. we will create transport rule and mention if the email address exist in the grouop we need to send auto reply and accept the sender email. we did not find any option to do this

    Reply
  34. Jerry Hawkins says

    March 28, 2017 at 4:04 am

    I am setting up a mailbox that will receive emails where the message body contains data that I want to capture in a database.

    What I want to accomplish is call my custom transport rule / API built in .NET (C#, VB.NET) and pass the body of the email so it can be parsed and stored in my database. Any email that arrives in this inbox will be processed this way.

    I would be grateful for any direction that can be provided to point me in the right direction to create a custom mail transport rule and connecting the rule to my API.

    Reply
    • Paul Cunningham says

      March 28, 2017 at 9:51 am

      I have no idea if that is even possible. It’s outside of my areas of expertise. You might need to ask on the Exchange developer forums on TechNet.

      Reply
  35. Shivappa Hosamani says

    April 14, 2017 at 2:05 pm

    I want to remove the attached file *.Dcos , which is coming from external IDs in my organization. Please suggest me

    Reply
    • Paul Cunningham says

      April 14, 2017 at 2:25 pm

      I suggest you create a transport rule (or mail flow rule as they’re now called).

      Reply
  36. Richard says

    April 19, 2017 at 11:32 pm

    We need a rule on Exchange2013 that auto-BCCs A when a mail is sent by another user, e.g. B, on behalf of A.
    How to detect such a mail? In a mail sent “on behalf of”, sender will still be B. What condition applies to mail sent by “B on behalf of A”, so I can detect it and apply the rule?
    Sorry if this seems a stupid question, I am not an Exchange admin myself but need to talk our admin into implementing such a rule.

    Reply
  37. Peter Lock says

    June 21, 2017 at 11:24 am

    Hi Paul
    Old post I know, but do you know of any way to increase the amount of text that can be prepended to the subject line? Currently (Exchange 2016 CU2) it is limited to 32 characters and we have a requirement to go a bit beyond this for email classifications.

    Reply
  38. Jeff says

    January 26, 2018 at 3:19 am

    Exchange 2016 CU6: When transport rules send a rule violation report, is there any way to tell it what account to use?

    Reply

Leave a Reply Cancel reply

You have to agree to the comment policy.

Recent Articles

  • New Microsoft 365 role and certification: Enterprise Architect
  • Access Reviews for Azure AD/Office 365 Admin Roles
  • New Azure Certifications announced at Ignite 2018
  • Steve & Sigi on Exchange 2019 announcements at Ignite
  • My Ignite 2018 Recap
Practical 365

Popular Articles

Deploying the Microsoft Teams Desktop ClientDeploying the Microsoft Teams Desktop Client
Microsoft Is Changing How They Publish Office 365 IP Addresses and Urls for Firewall and Proxy AccessMicrosoft Is Changing How They Publish Office 365 IP Addresses and Urls for Firewall and Proxy Access
Automated Software License Expiration Notifications Using Microsoft FlowAutomated Software License Expiration Notifications Using Microsoft Flow
New Azure Active Directory Conditional Access Device Conditions for Device StateNew Azure Active Directory Conditional Access Device Conditions for Device State
Managing Change in Office 365Managing Change in Office 365

Training Courses

  • Configuring and Managing Office 365 Security
  • Office 365 Admin Playbook
  • Exchange 2016 Exam 70-345
  • Managing Exchange Mailboxes and Distribution Groups in PowerShell
  • More Training Courses...

Recommended Resources

  • Office 365 Security Resources
  • Office 365 Books
  • Exchange Server Books
  • Exchange Server Migrations
  • Exchange Analyzer
  • Digicert SSL Certificates

About This Site

Practical 365 is a leading site for Office 365 and Exchange Server news, tips and tutorials. Read more...
  • Email
  • Facebook
  • Twitter
  • RSS

Copyright © 2018 Quadrotech Solutions AG · Disclosure · Privacy Policy
Alpenstrasse 15, 6304 Zug, Switzerland

We are an Authorized DigiCert™ SSL Partner.