How to Prefix a banner to inbound emails

Updated 2 years ago by admin

It may be a requirement within EMS that all external emails are stamped with a banner notifying recipients that the email was received from outside of the business.  This is particularly useful to help users decide if they are internal emails or not.

It is strongly recommended that your mail server or Office 365 tenant is configured to only accept inbound emails from our IP addresses.

To stamp the top of your inbound email with the following message:

WARNING! This message originated outside of . Do not click on links or open attachments unless you recognize the sender and KNOW the content is safe.

You can also show the SMTP sender address used in the SMTP conversation with the use of the parameter %MailFrom%.  This is case sensitive.
  1. Navigate to ProductsE-mail SecurityMessage Rules
  2. Click the + button to create a new Rule
  3. Enter a sensible name for the rule, like "Prefix Banner", and click the Add + button
  4. Add or drag the Direction tile into the Conditions column and configure it with Matches set to Inbound
  5. Add or drag the Prefix HTML tile into the Actions column and configure this with the message you require
You can directly add/amend a piece HTML code by clicking the hamburger menu in the top right of the editor and select Edit Source

The above example can be created with the following HTML:

<p><span style="color: #ff0000;"><strong>WARNING!</strong></span><strong> This message originated outside of <Your Company Name>. Do not click on links or open attachments unless you recognize the sender and KNOW the content is safe.</strong></p>
  1. Add or drag the Prefix Text tile (for non-HTML email clients) into the Actions column and configure this with the message you require (e.g. a text version of the HTML message)
It is recommended you add both HTML and Text messages. Although most emails contain both it is up to the client software which format is used
  1. Do not add a Final Action
  2. Make sure the rule is active by switching the Active toggle to On
  3. Click Save
  4. Drag the new rule to a sensible place in your Message Rules list. If your Service Provider has configured a set of sensible default Rules, placing this new rule above the Confirmed Phishing Rule is a good choice

The completed rule should look like this:


How did we do?