Exchange Online Management Practices
Transport Rules
Auto-Add Disclaimer
# Connect to Exchange Online
Connect-ExchangeOnline
# Create disclaimer rule
New-TransportRule -Name "Email Disclaimer" `
-FromScope InOrganization `
-SentToScope NotInOrganization `
-ApplyHtmlDisclaimerText "<p>This email is confidential.</p>" `
-ApplyHtmlDisclaimerLocation Append
Anti-Spam Configuration
# Get anti-spam policy
Get-HostedContentFilterPolicy | Format-List Name, SpamAction, HighConfidenceSpamAction
# Update policy
Set-HostedContentFilterPolicy -Identity "Default" `
-SpamAction MoveToJmf `
-HighConfidenceSpamAction Quarantine `
-BulkThreshold 6
Message Tracking
# Track message by sender
Get-MessageTrace -SenderAddress user@contoso.com -StartDate (Get-Date).AddDays(-7) -EndDate (Get-Date) | Format-Table Received, SenderAddress, RecipientAddress, Subject, Status
# Get detailed trace
Get-MessageTraceDetail -MessageTraceId <ID> -RecipientAddress recipient@example.com | Format-List
Next Steps
- Security and Compliance: DLP and mail encryption