Skip to content

Instantly share code, notes, and snippets.

@chrisbrownie
Created October 6, 2016 08:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisbrownie/bdb5ee0a41bcfe94d00bf62fb11b9653 to your computer and use it in GitHub Desktop.
Save chrisbrownie/bdb5ee0a41bcfe94d00bf62fb11b9653 to your computer and use it in GitHub Desktop.
Encrypt Messages with OME based on Message Subject
New-TransportRule -Name "Encrypt mail with [encrypt] in subject" `
-RuleErrorAction Defer `
-SubjectMatchesPatterns '(?:^|\W|\w)\[encrypt\](?:$|\W|\w)'
-SetAuditSeverity Low `
-ApplyOME $true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment