Connect to Office 365:

set-mailbox <mailbox name> -MessageCopyForSendOnBehalfEnabled $true
set-mailbox <mailbox name> -MessageCopyForSentAsEnabled $true