by WPFlat

Exchange Online mail flow rule for a signature or disclaimer, step by step

Build an Exchange Online mail flow rule signature or disclaimer: wizard settings, HTML snippets to test, the fallback action and what a rule cannot do.

An Exchange Online mail flow rule signature is a rule that adds the same HTML or plain text to the top or bottom of mail as it enters or leaves your organization. You build it in the Exchange admin center under Mail flow, Rules, Add a rule, Apply disclaimers. These steps follow Microsoft Learn’s page on disclaimers, signatures, footers or headers, its overview of mail flow rules and the Microsoft 365 admin page on organization-wide signatures, all read in October 2026. This is general information for admins, not legal advice.

Exchange online mail flow rule signature in short

  1. Mail flow, Rules, Add a rule, Apply disclaimers.
  2. Choose which messages: outside recipients, or all messages.
  3. append a disclaimer (bottom) or prepend a disclaimer (top), then Enter text.
  4. Pick a fallback option, add an exception so the text is not repeated, and test before you enforce.
  5. Know the limits: not under the latest reply, not visible in Sent Items.

What an Exchange Online mail flow rule signature is

Microsoft explains that mail flow rules (also called transport rules) take action on messages while they are in transit, not after delivery to the mailbox. That is why the result is a server-side stamp. The text is added after the sender presses send, which has consequences you will meet below.

The admin page also notes that organization-wide signatures are called disclaimers, whatever they contain. So the action you look for is Apply disclaimers, even if all you want is a name and a phone line. Individual users can still add their own signatures in Outlook or Outlook on the web, and the rule is a second layer on top. For the personal side, see adding a signature in Outlook on the web.

Build the Exchange Online mail flow rule signature in the admin center

Go to the Exchange admin center and open Mail flow, then Rules. Select Add a rule, then Apply disclaimers. You work through three wizard pages.

Page 1: Set rule conditions

SettingWhat to chooseWhy
NameSomething you will recognise laterRule lists grow
Apply this rule ifThe recipient is external, then Outside the organization, or Apply to all messagesMail flow rules apply to inbound and outbound mail by default, so a condition keeps the text off internal mail
Do the followingApply a disclaimer to the message, then append a disclaimer or prepend a disclaimerAppend puts it at the bottom, prepend at the top
Enter textYour HTML or plain textSee the snippets below
Select oneThe fallback optionExplained below
Except ifThe subject or body, then Subject or body matches these text patterns, and enter a phrase from your textStops the text being added again on every reply

Microsoft’s guidance is to add an exception that looks for unique text in the disclaimer, so it is added only to the original message in a conversation. Choose a phrase that appears nowhere else in your mail.

Page 2: Set rule settings

  • Rule mode: Enforce switches it on at once. Microsoft also offers test modes that log results without adding the text, and recommends testing every mail flow rule before enforcing it.
  • Severity: the level shown in the message log.
  • Activate this rule on and Deactivate this rule on: an optional date range. A seasonal banner can switch itself off.
  • Stop processing more rules: stops later rules acting on the message.
  • Defer the message if rule processing doesn’t complete: by default the rule is ignored and delivery continues.
  • Match sender address in message: Header is the default. The other values are Envelope and Header or envelope.
  • Comments: a note for whoever inherits the rule.

Page 3: Review and finish

Check the summary and select Finish. Microsoft’s overview says a new or changed rule can take up to 30 minutes to apply, so do not judge the first test too quickly.

HTML snippets for an Exchange Online mail flow rule signature

Microsoft says the disclaimer text can include HTML tags and inline CSS, and that images can be added with the image tag. It also lists tokens that take values from the sender. We have not run these in a tenant, so treat them as starting points and test each one.

PurposeSnippet
Small legal line

Harbour Studio Ltd. Company number 00000000.

Sender details from the directory

%%DisplayName%%
%%Title%%

A phone line

Tel: %%Phone%%

A hosted logoHarbour Studio logo

The tokens come from Microsoft’s list, which includes %%DisplayName%%, %%Title%%, %%Phone%%, %%MobilePhone%%, %%Company%% and %%Office%%. Put each token on its own line. The admin page says rules skip a line that contains a variable they cannot fill, so a person with no phone number loses only the phone line, not the whole block.

On images the two pages differ. The Exchange page allows the image tag and shows a logo hosted at a web address. The admin page, by contrast, says images cannot be embedded. Reading them together, a hosted image is possible and an embedded one is not. Mail apps that block remote pictures will not show the logo until the reader allows it.

The fallback option for an Exchange Online mail flow rule signature

Some messages cannot be changed, such as an encrypted one. The fallback tells Exchange what to do then.

OptionWhat happensMicrosoft’s caution
WrapA new message is created, the original goes in as an attachment, and the text is added to the new one. This is the defaultIf wrapping fails, the original is not delivered and the sender gets a non-delivery report. Do not use Wrap on rules that affect mail from external senders, as it interferes with Safe Attachments scanning
IgnoreThe rule is skipped and the message goes out without the textNone needed, but the text is missing
RejectThe message returns to the sender as a non-delivery reportUse it for incoming rules instead of Wrap

The wrapped message also changes what later rules see: rules that read the subject or body will examine the new message, not the original. Microsoft’s advice is to give the disclaimer rule a lower priority than the rules that must see the original, so they run first.

Which option suits an outbound signature depends on how much you mind a missing footer versus a bounced message. The admin walk-through picks Wrap.

The PowerShell version of the Exchange Online mail flow rule signature

Microsoft shows the New-TransportRule cmdlet. Its example adds a disclaimer with an image at the end of every message sent outside the organization, using -SentToScope NotInOrganization and -ApplyHtmlDisclaimerText. Another example puts a month-long banner at the start by adding -ApplyHtmlDisclaimerLocation Prepend with an activation and expiry date. The fallback parameter is -ApplyHtmlDisclaimerFallbackAction.

A rule in that shape, with a fallback, would look like this:

New-TransportRule -Name "External footer" -SentToScope NotInOrganization -ApplyHtmlDisclaimerFallbackAction Ignore -ApplyHtmlDisclaimerText "

Harbour Studio Ltd. Company number 00000000.

"

To find old rules that wrap external mail, Microsoft’s page gives a Get-TransportRule check on ApplyHTMLDisclaimerFallbackAction.

What an Exchange Online mail flow rule signature cannot do

The admin page lists four limits, and the overview adds more.

  • It cannot insert the text directly under the latest reply or forward. It goes at the top or bottom of the whole message.
  • Users cannot see the added text in their Sent Items folders.
  • It cannot embed images.
  • Lines with variables it cannot fill are skipped.
  • S/MIME encrypted messages cannot have their content changed. For other encrypted messages, transport decryption has to be enabled before a rule can modify the contents.
  • System-generated messages, such as non-delivery reports, are not processed.
  • A rule with no conditions or exceptions applies to all messages.
  • History and changes to rules are not kept, so you cannot revert one to an earlier state. Copy the text somewhere before editing.
  • It makes one block for everyone the condition matches. A personal photo, or a different layout per person, is outside what it does.

Microsoft’s tip is that some limits can be overcome with non-Microsoft tools. Our comparison of Microsoft 365 signature management lays that out.

Check that it worked

The Exchange page’s own test list is a good one. Send yourself a plain text email and an HTML email that match the rule, and check the text. Forward them to yourself to confirm the exception stops a second copy. Send some that should not match, and confirm nothing is added. Then try a reply from a phone, since users often write from a different app than the one you tested.

Where an Exchange Online mail flow rule signature fits

An Exchange Online mail flow rule signature is right for text that is identical for everybody: a company registration line, an address or a legal notice. For wording ideas, see email disclaimer examples and the wider email footer guide. If you want the step-by-step version from the company-wide angle, read setting a company email signature in Microsoft 365.

Harbour Studio 
Maya Chen 
Maya Chen
Head of Partnerships
Harbour Studio — Design for small teams
 
+1 415 555 0100
+1 415 555 0142
maya@harbourstudio.example
harbourstudio.example
500 Market St, San Francisco, CA
LinkedInXInstagram
Harbour Studio Ltd. Company number 00000000.

Personal details above and a legal line below, the split suggested below. Example only. The company and person are made up.

For the personal part of a signature, a name, a title and a direct number, emailfooter takes a different route: the company designs once, and each employee fills in their own details and follows steps for their mail app. It does not write into Exchange or push to mailboxes, and it is English-only for now. One setup that fits both is an Exchange Online mail flow rule signature for the legal line, with personal signatures above it.

Frequently asked questions

Can an Exchange Online mail flow rule add a signature?

Yes. Microsoft calls it a disclaimer: create a rule with Apply disclaimers and append a disclaimer, or prepend for the top.

How long does an Exchange Online mail flow rule signature take to start working?

Microsoft says a new or modified rule can take up to 30 minutes to be applied to messages.

Why is the Exchange Online mail flow rule signature not under the latest reply?

Microsoft lists that as a limit: you cannot insert the text directly under the latest reply or forward.

Can I use a logo in an Exchange Online mail flow rule signature?

The Exchange page allows an image tag pointing to a hosted file. The admin page says images cannot be embedded.

Can an Exchange Online mail flow rule signature go on outgoing mail only?

Yes. Add a condition such as a recipient outside the organization, because rules apply to incoming and outgoing mail by default.

Keep reading

Make every signature in your company match

emailfooter is a free WordPress plugin. You design the signature once, and each person adds their own details and installs it in their mail app. Prefer not to run a website? emailfooter Managed is the same software, hosted for you.

Written by the Ulrea team. We build and look after emailfooter, a free WordPress plugin for company email signatures. These guides come from setting it up for real mail apps and real teams. Found something out of date? Tell us. Made by Ulrea.