Adding the senders From address to a Global Disclaimer or similar header or footer for External Emai
I have no problem adding a global text disclaimer for external emails. Since the Reply To and the Mail From are very often inconsistent with Spam and Phishing emails I would like to include the From address so users can compare that address with the visible Reply address. Especially for the clearly wrong domains frequently listed for the stated sender. Is there a way to do this in Exchange 365?
CoPilot provided this Powershell as an answer:
New-TransportRule -Name “Add Sender Email to FooterMicrosoft 365 admin center” -FromScope “NotInOrganization” -ApplyHtmlDisclaimerText “This email is from an external sender (%%SenderAddress%%). Please verify its authenticity.” -ApplyHtmlDisclaimerFallbackAction “Wrap” -Mode Enforce
This results in the error below with and without the () around the variable:
Write-ErrorMessage : |System.ArgumentException|The disclaimer text contains an invalid macro name: ‘SenderAddress’.
I have had this function in 3rd Party spam blocking systems. It seems like something that could be done natively in Exchange 365. Thank you for your time in looking at my question.
I have no problem adding a global text disclaimer for external emails. Since the Reply To and the Mail From are very often inconsistent with Spam and Phishing emails I would like to include the From address so users can compare that address with the visible Reply address. Especially for the clearly wrong domains frequently listed for the stated sender. Is there a way to do this in Exchange 365? CoPilot provided this Powershell as an answer: New-TransportRule -Name “Add Sender Email to FooterMicrosoft 365 admin center” -FromScope “NotInOrganization” -ApplyHtmlDisclaimerText “This email is from an external sender (%%SenderAddress%%). Please verify its authenticity.” -ApplyHtmlDisclaimerFallbackAction “Wrap” -Mode EnforceThis results in the error below with and without the () around the variable:Write-ErrorMessage : |System.ArgumentException|The disclaimer text contains an invalid macro name: ‘SenderAddress’.I have had this function in 3rd Party spam blocking systems. It seems like something that could be done natively in Exchange 365. Thank you for your time in looking at my question. Read More