Priority
Priority 0 is processed first; the order matches the list at Mail flow > Rules. By default older rules have higher priority, so a new rule lands below them. Change it in the EAC list or with Set-TransportRule -Priority. Severity never changes the order.
Modes
- Enforce: every action is taken (Mode Enforce).
- Test with Policy Tips: Policy Tip actions are sent, no delivery actions are taken (Mode AuditAndNotify).
- Test without Policy Tips: only Generate incident report is enforced (Mode Audit).
GenerateIncidentReport runs even in Audit and AuditAndNotify. GenerateNotification runs in AuditAndNotify but not in Audit. Reject, redirect, prepend subject and the other delivery actions run only in Enforce.
Activation dates
Activate this rule on and Deactivate this rule on (ActivationDate and ExpiryDate) keep the rule enabled but stop it being processed outside the window. Use them for seasonal disclaimers instead of switching a rule on and off by hand.
The other settings
- Severity: Not specified, Low, Medium, High or Not audit (SetAuditSeverity, with DoNotAudit). Not audit hides the rule from reports. Severity does not affect priority.
- Stop processing more rules (StopRuleProcessing): no lower rule touches the message after this one matches.
- Defer the message if rule processing doesn't complete (RuleErrorAction).
- Match sender address in message (SenderAddressLocation): Header, Envelope or Header or envelope, covered in the next unit.
- On or off: Enabled on New-TransportRule, or Enable-TransportRule and Disable-TransportRule.
- Comments.
The trap: test modes still evaluate the rule. They change which actions run, not whether the rule is processed.