Relevant Product: Exclaimer Cloud - Signatures for Office 365
Scenario
You have configured Exclaimer Cloud for your Microsoft 365 tenancy. When you send an email through Exclaimer's server, the email is rejected, and you receive a non-delivery report with a similar message:
Reported error: 501 5.1.8 Your message couldn't be delivered because the email has no mail from address. See https://go.exclaimer.com/334 for more information
Resolution
The resolution of this issue depends upon different scenarios - some of them are listed below:
Pre-requisites (if the email is sent to a group or an individual user)
Before you start working on the resolution for the NDR group or an individual user, make sure you have:
Installed Online PowerShell V2 module
Connected to Exchange Online
Installed Online PowerShell V2 module
Connected to Exchange Online
Install Exchange Online PowerShell V2 module:
- Open the Windows PowerShell and run this command as an Administrator:
Install-Module -Name ExchangeOnlineManagement - Confirm that you want to install this PowerShell module. NOTE: For additional installation options, see ExchangeOnlineManagement.
Connect to Exchange Online:
- If you have Multi-Factor Authentication enabled, run this command:
Connect-ExchangeOnline -UserPrincipalName <UPN> -ShowProgress $trueIn <UPN> enter your username.
- If you don't have Multi-Factor Authentication enabled, run this command:
Connect-ExchangeOnline -Credential $UserCredential -ShowProgress $true
When prompted, enter your password (and the Multi-Factor Authentication verification code if required).
Once you have successfully installed the Exchange Online PowerShell module and connected to Exchange Online, please see what you need to do next if the email is sent to a group and if the email is sent to an individual user.
Scenario 1: The email is sent to a group
This issue occurs when there is no sender specified in the message envelope. If the sender is blank, Signatures for Microsft 365 cannot identify the tenant to append for the email signature.
- If no on-premise Active Directory exists, then amend the distribution group properties in Microsoft 365 using Windows PowerShell.
NOTE: Please ensure that Windows PowerShell is connected to Microsoft 365 before running the following commands.
To do this, check the Pre-requisites section of this guide.To complete the steps described below, you will need:
Microsoft 365 Global Administrator credentials
Amending the distribution group properties:
- Run the following command:
Get-DistributionGroup <Group Email Address> | fl *ReportToOriginatorEnabled* - If the value returned is False then run this command to change it to True:
Set-DistributionGroup <Group Email Address> -ReportToOriginatorEnabled $true
- If an on-premise Active Directory exists and the distribution group is synchronized to Microsoft 365, then:
From the distribution group Properties, set the attribute ReportToOriginator to TRUE.
These changes will not take effect until the on-premises Active Directory domain has been synchronized and replicated in Microsoft 365.
Scenario 2: The email is sent to an individual user
According to Microsoft, "Any mail to JournalingReportNdrTo mailbox will not be journaled and it will not honor transport and mailbox rules settings. It is recommended to create a dedicated mailbox for JournalingReportNdrTo setting or set it to an external address."
For more information, see Transport and mailbox rules in Exchange Online or in on-premises Exchange Server don't work as expected.
For more information, see Transport and mailbox rules in Exchange Online or in on-premises Exchange Server don't work as expected.
NOTE: The steps described below apply even if message journaling is not enabled.
- Specify a dedicated mailbox, as the recipient for Journal Report NDR messages, in Microsoft 365 using Windows Powershell.
NOTE: Please ensure that Windows PowerShell is connected to Microsoft 365 before running the following commands.
To do this, check the Pre-requisites section of this guide.To complete the steps described below, you will need:
Microsoft 365 Global Administrator credentials
Specifying a dedicated mailbox:
Run the following command:
set-transportconfig -JournalingReportNdrTo <insert mailbox address>Tip! Microsoft recommends that the JournalingReportNdrTo recipient be set to an external email address or a dedicated mailbox created, which has no transport or mailbox rules applied.
Scenario 3: The email was an out of office email
To resolve this issue, you can do one of the following:
-
Option 1 (Recommended): Create a new transport rule in addition to the existing Exclaimer Cloud transport rules already set up. The new rule will ensure that Exclaimer Cloud does not process 'Out of Office' emails.
-
Option 2: Re-run the connector setup: The Microsoft 365 connector setup will automatically create the Transport Rule.
See how you can re-run the Microsoft 365 connector setup. Also, please note that it can take up to a few hours for the changes to come into effect.
WARNING! Please be aware of the following:
- If you re-run the connector setup, then any existing Exclaimer transport rules will be removed in the process.
- If you create a new transport rule, then any existing Exclaimer transport rules will not be removed in the process.
- If you re-run the connector setup, then any existing Exclaimer transport rules will be removed in the process.
- If you create a new transport rule, then any existing Exclaimer transport rules will not be removed in the process.
Creating a new transport rule
To create a new Transport rule:
To complete the steps described below, you will need:
Microsoft 365 Global Administrator credentials
Microsoft 365 Global Administrator credentials
-
- Sign in to the Exchange Online admin portal (https://admin.exchange.microsoft.com) as an Administrator.
The Exchange admin center is displayed.
- From the left-hand navigation menu, select Mail flow, then select Rules:
-
From the right-hand pane, click the + (plus) drop-down and select Create a new rule...
A new rule window is displayed.
- In Name, enter Prevent Out of Office messages being sent to Exclaimer Cloud.
- Click More options...
- From Apply this rule if... drop-down select The message properties...then select include the message type.
- In Do the following...drop-down select Modify the message properties... then select set a message header.
- Set the message header to X-ExclaimerHostedSignatures-MessageProcessed.
- Now, set the value to true.
- Click Save to save the changes made.
The new rule will now be displayed in the rules list. - Select the new rule, then click
(up arrow) to ensure that the priority is lower than the rule Identify messages to send to Exclaimer Cloud.
NOTE: It can take up to a few hours for the changes to come into effect.
- Sign in to the Exchange Online admin portal (https://admin.exchange.microsoft.com) as an Administrator.