PS HarriJaakkonen :~/Blog/Posts> cat ./remove-smtp-address-for-specific-domain.html Remove SMTP address for a specific domain from all mailboxes. 03/01/2016 · 1 min read · Post #23 Exchange Office 365 Powershell Here is a handy script to remove obsolete proxyaddresses from all mailboxes. foreach($i in Get-Mailbox -ResultSize Unlimited) { $i.EmailAddresses | ?{$_.AddressString -like '*@domain.com'} | %{ Set-Mailbox $i -EmailAddresses @{remove=$_} } } Just replace the domain.com with your own. Share this: