Tag Archives: Exchange Online

Exchange – Undeliverable – 0x80070005-0x0004dc-0x000524

I use a few distribution groups with my Exchange Online-hosted personal email.  I delegate myself the ability to send as these groups so that I can send from other email addresses without having to have other mailboxes.

Recently, when when setting up a few distribution lists, I ran into this error when sending as them:

Your message did not reach some or all of the intended recipients.
Subject: test 123
Sent: 4/2/2016 8:09 PM
The following recipient(s) cannot be reached:
nonesuch on 4/2/2016 8:09
This message could not be sent. Try sending the message again later, or contact your network administrator. You do not have the permission to send the message on behalf of the specified user. Error is [0x80070005-0x0004dc-0x000524].

This was in spite of me having permission to do so. A quick Google search led to this Microsoft forum post.  At the very bottom user SteveLindsey states that this error occurs when the distribution lists are hidden.  Sure enough, when I unhid the distribution lists from the GAL, I was immediately able to send these emails.  SteveLindsey claims that this is a known issue by Microsoft, though I was unable to find a KB during my brief search.

At the time of this post, I am not certain if this is specific to Exchange Online/Office365 or Exchange 2013 in general.

Exchange Online – Bulk Import SMTP Aliases

I recently moved my personal email to Exchange Online.  I had been using SMTP aliases associated with my mailbox at my old provider, and wanted to continue doing so.

I was able to create a script to /u/life_manager and /u/RampageUT on this thread on Reddit.  Thanks to their scripts, I was able to create a script that was able to migrate a list of SMTP aliases to my new mailbox, without even having to install the Exchange admin tools on my machine.

The script is as follows.  The only changes that you need to make are to the array of SMTP aliases, and the mailbox name, both of which are at the top.

$aliasArray = @( # put SMTP aliases here
$mailbox = "username" # put mailbox ID here

$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session

$user = Get-Mailbox -Identity $mailbox

foreach ($alias in $aliasArray) {

 Set-Mailbox -Identity $user.Identity -emailaddresses @{add=$alias}


Remove-PSSession $Session