Automatically save sent items in your personal and shared mailbox in Office 365

When you send an e-mail from a shared mailbox, it always ends up with the user who sent it. Annoying? You can solve this by 'copying' the mail into the shared mailbox. Automatically of course.
In the past, this was sometimes done with a GPO. But in a world where you also have the possibility to send emails via your mobile phone, you naturally want this to happen regardless of the device you use.
Manual adjustment in the Microsoft 365 Admin Center
- Open your admin portal from Office 365 or go via the URL page.
- Navigate to shared mailboxes, under Teams & Groups.
- Search for the desired mailbox
- Click on sent items
- Edit

- Select "Copy items sent from this mailbox".
- Click on Save.


Script for all mailboxes
To automatically save sent items in your personal and shared mailbox, you can run this script for all Office 365 mailboxes within Exchange Online.
Login with PowerShell on Exchange Online . See also other blogs on Powershell
Get-Mailbox -ResultSize unlimited -Filter {(RecipientTypeDetails -eq 'SharedMailbox')} | set-mailbox -MessageCopyForSentAsEnabled $True
Other Exchange blogs?
Setting up Out of Office on a Office 365 Shared Mailbox
Retrieve deleted Exchange e-mails - New Exchange Portal
Set up forwarding in Office 365 | Forward e-mails
Remove Azure AD Connect and make all objects cloud managed
Automatically store sent items in your shared mailbox
Add an email alias in Office 365, Exchange or Active-Directory
Great! Thanks Jasper
Hi,
Its under 'TEAMS & GROUPS - Shared Mailboxes' in the current 365 (late 2021)
Thanks.
Thank you David! You rock 🪨🤘