Problem
You have Office 365 and an application or service account enabled to send email. However, when you send email the “From” address appears to be the enabled service account, not the person actually sending the email, such as admin111@yourbusiness.com rather than joe.smith@yourbusiness.com.
Solution
Run the following script to add Send As permissions to all of your email accounts:
$MBXS = Get-Recipient -RecipientType usermailbox
ForEach ($MBX in $MBXS) { Add-RecipientPermission $MBX.name -AccessRights SendAs –Trustee cwadmin2 -Confirm:$false }