Disclaimers
Use the Apply a disclaimer action; in PowerShell, ApplyHtmlDisclaimerText. ApplyHtmlDisclaimerLocation is Append (the default) or Prepend. Text can be up to 5,000 characters of HTML. When a disclaimer cannot be inserted, ApplyHtmlDisclaimerFallbackAction decides: Wrap (the default), Ignore or Reject. PrependSubject and SetHeaderName change the subject or headers, not the body.
Blocking attachments
- AttachmentHasExecutableContent checks the true file type, so a renamed .exe still matches. This is the right condition for blocking executables.
- AttachmentExtensionMatchesWords inspects nested attachments but matches the name, which renaming defeats. AttachmentNameMatchesPatterns has the same weakness.
- AttachmentIsPasswordProtected covers Office files, .zip and .7z, and .pdf.
- AttachmentIsUnsupported (content can't be inspected) and AttachmentProcessingLimitExceeded (scanning didn't complete) catch what could not be read.
- AttachmentSizeOver tests size only.
Moderation
- Forward for approval to specific moderators: ModerateMessageByUser. A distribution group cannot be a moderator.
- Forward for approval to the sender's manager: ModerateMessageByManager. If the sender has no Manager attribute, the message is delivered unmoderated.
Rejecting with an explanation
- Reject with explanation: RejectMessageReasonText; the default code is 5.7.1.
- Reject with enhanced status code: RejectMessageEnhancedStatusCode, 5.7.1 or 5.7.900 to 5.7.999; the default text is Delivery not authorized, message refused.
Delete without notifying anyone (DeleteMessage) tells the sender nothing, and Redirect (RedirectMessageTo) sends no notification and cannot target a group.
Adding people
Add recipients To, Cc or Bcc (AddToRecipients, CopyTo, BlindCopyTo; no groups), or add the sender's manager (AddManagerAsRecipientType: To, Cc, Bcc or Redirect). The 100-recipient cap from the limits unit applies to all of them combined.