- The Default Behavior: By default in Exchange Online, when a delegate sends an email As or On Behalf Of a Shared Mailbox, the sent copy lands only in the delegate's personal Sent Items folderβhiding replies from teammates.
- Instant PowerShell Fix: Run
Set-Mailbox "[email protected]" -MessageCopyForSentAsEnabled $true -MessageCopyForSendOnBehalfEnabled $trueto copy sent replies directly into the Shared Mailbox's Sent Items folder. - Avoid Duplicate Copies: If you enable this server-side in Exchange Online, do not also set the legacy Outlook client registry key
DelegateSentItemsStyle = 1, or Outlook will create duplicate sent copies.
When multiple IT engineers, sales reps, or billing coordinators work out of a Shared Mailbox in Exchange Online, visibility into who replied to a customer is critical. By default, Exchange Online saves outgoing replies solely in the individual sender's personal Sent Items folder.
Enabling server-side Sent Items Copy fixes this cleanly across New Outlook, Classic Outlook, Outlook on the Web (OWA), and Outlook Mobile with zero client-side registry hacks.
1. Enable Sent Items Copy on a Single Shared Mailbox
Connect with the modern Exchange Online PowerShell v3 module:
Connect-ExchangeOnline -ShowBanner:$false
# Enable Sent Items copy for BOTH "Send As" and "Send on Behalf"
Set-Mailbox -Identity "[email protected]" `
-MessageCopyForSentAsEnabled $true `
-MessageCopyForSendOnBehalfEnabled $true
# Verify the setting
Get-EXOMailbox -Identity "[email protected]" -Properties MessageCopyForSentAsEnabled, MessageCopyForSendOnBehalfEnabled |
Select-Object DisplayName, PrimarySmtpAddress, MessageCopyForSentAsEnabled, MessageCopyForSendOnBehalfEnabled
2. Audit & Bulk-Enable Across All Shared Mailboxes in Your Tenant
Instead of blindly piping Get-Mailbox | Set-Mailbox across hundreds of mailboxes (which can trigger throttling), audit first and only update shared mailboxes where either flag is currently $false:
# 1. Audit all Shared Mailboxes missing Sent Items Copy
$sharedMailboxes = Get-EXOMailbox -RecipientTypeDetails SharedMailbox -ResultSize Unlimited `
-Properties MessageCopyForSentAsEnabled, MessageCopyForSendOnBehalfEnabled
$needsFix = $sharedMailboxes | Where-Object {
-not $_.MessageCopyForSentAsEnabled -or -not $_.MessageCopyForSendOnBehalfEnabled
}
Write-Host "Total Shared Mailboxes: $($sharedMailboxes.Count) | Missing Sent Items Copy: $($needsFix.Count)" -ForegroundColor Cyan
# 2. Apply cleanly only to mailboxes that need updating
foreach ($mbx in $needsFix) {
Write-Host "Updating $($mbx.PrimarySmtpAddress)..." -ForegroundColor Yellow
Set-Mailbox -Identity $mbx.ExternalDirectoryObjectId `
-MessageCopyForSentAsEnabled $true `
-MessageCopyForSendOnBehalfEnabled $true
}
Write-Host "[+] Bulk Shared Mailbox Sent Items configuration complete." -ForegroundColor Green
3. How to Disable Sent Items Copy (If Needed)
If a specific automated or high-volume shared mailbox shouldn't retain copies in Sent Items:
Set-Mailbox -Identity "[email protected]" `
-MessageCopyForSentAsEnabled $false `
-MessageCopyForSendOnBehalfEnabled $false
4. Common Troubleshooting Tips
| Symptom | Root Cause & Fix |
|---|---|
| Duplicate emails in Shared Sent Items | Both server-side -MessageCopyForSentAsEnabled $true AND the legacy Outlook registry key DelegateSentItemsStyle = 1 are enabled. Remove the client registry key and rely strictly on Exchange Online server-side copy. |
| Setting enabled, but delegate still doesn't see Sent Items | Allow 15β30 minutes for replication, or check if the delegate has SendAs permission without FullAccess (they need FullAccess to view the Shared Mailbox folders). |
| Shared Mailbox approaching 50 GB quota | Unlicensed shared mailboxes cap at 50 GB. See Chapter 4 of our M365 Admin Handbook for shared mailbox licensing, archiving, and Auto-Mapping best practices. |
π¬ Reader Comments & Feedback
Did this runbook help, or did Microsoft change a cmdlet or UI menu? Share your feedback below.
Leave a Comment or Report an Update