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

Argomenti vari di carattere sistemistico
Post Reply
admin
Amministratore
Posts: 22
Joined: 19 Dec 2008, 17:26

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

Post by admin »

ORIGINAL POST: https://www.soiware.it/forum/posting.ph ... 111d27077f
CREDITS TO THE AUTHORS OF THE ORIGINAL POSTS

User issue: I have a shared mailbox sharedmail@mydomain.com 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 colleagues 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:

Code: Select all

Set-Mailbox sales@vorkbaard.eu -MessageCopyForSendOnBehalfEnabled $True
Set-Mailbox sales@vorkbaard.eu -MessageCopyForSentAsEnabled $true

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

Code: Select all

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

Alias     MessageCopyForSendOnBehalfEnabled MessageCopyForSentAsEnabled
-----     --------------------------------- ---------------------------
Sales                                 False                       False
Marketing                             False                       False
Set the value for all shared mailboxes:

Code: Select all

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

Alias     MessageCopyForSendOnBehalfEnabled MessageCopyForSentAsEnabled
-----     --------------------------------- ---------------------------
Sales                                  True                        True
Marketing                              True                        True
Post Reply