Save shared mailbox sent items to shared mailbox’s own Sent Items folder in Exchange Online

User issue: I have a shared mailbox connected in Outlook from my primary account. If I send mail from the sales box, sent items are stored in my own account, not sales’. My colleages also using the sales mailbox cannot see the mail I send from Sales. How do I automatically store sent items in the shared mailbox’s Sent Items folder?

There are two variables controlling this value:

  • MessageCopyForSendOnBehalfEnabled
  • MessageCopyForSentAsEnabled

To set the value:

Set-Mailbox -MessageCopyForSendOnBehalfEnabled $True
Set-Mailbox -MessageCopyForSentAsEnabled $true

To read the values of all shared mailboxes in the tenant:

Get-Mailbox -RecipientTypeDetails SharedMailbox | Select Alias, MessageCopyForSendOnBehalfEnabled, MessageCopyForSentAsEnabled

Alias     MessageCopyForSendOnBehalfEnabled MessageCopyForSentAsEnabled
-----     --------------------------------- ---------------------------
Sales                                 False                       False
Marketing                             False                       False

Set the value for all shared mailboxes:

Get-Mailbox -recipienttypedetails SharedMailbox | set-mailbox -MessageCopyForSendOnBehalfEnabled $true -MessageCopyForSentAsEnabled $true

Alias     MessageCopyForSendOnBehalfEnabled MessageCopyForSentAsEnabled
-----     --------------------------------- ---------------------------
Sales                                  True                        True
Marketing                              True                        True
Back to Top