Where does the default Teams email go?
When you first create a Microsoft Team it allocates an email address for the Team. That email address is built by the Display Name (with spaces and special characters removed) +@ the Office 365 Default Domain. This PrimarySMTPAddress can also be changed by the cmdlet Set-UnifiedGroup -PrimarySMTPAddress
But… if you send an email to this address, where does it go? Initially I thought I had read somewhete that it was delivered into the General Channel, but that is wrong, and any emails I sent never arrived. (This can still be done, scroll to bottom to see how)
Yes, we all should know by now that we can allocate an email address to a Teams Channel and beautiful things happen when you send emails to a Channel, but that isn’t my question.
Interestingly I raised this question with Microsoft and more surprisingly it took me a long time to get them to understand the question I was asking – and on more than one occasion was sent some nice links all about adding an email address to a Channel. Thanks but um…
A Microsoft Team broadly is made up of:
So where do I see this Shared Mailbox so I can read the emails? Well, there is no nice “open my Team shared mailbox” in the Teams client. And you can’t go an open the Teams shared mailbox in Outlook using the usual open shared mailbox methods, nor can it be added it as an additional mailbox.
Before Teams there was just “Office 365 Groups”. Office 365 Groups had all the above except for the nice Teams client overlay wrapper thingy. So you just viewed them in the Outlook Client where you could “like” messages and open files and OneNotes and other stuff – AND also where emails sent to the Group’s primary email address would be delivered.
Those emails could also be delivered to the Members Personal mailboxes – if you had configured it such.
You could even configure SendAs and Send on Behalf of the Office 365 Group.
Now, because the underlying building blocks of a Team are essentially an Office 365 Group / Shared Mailbox (Group Inbox) you can still receive email to the underlying Shared Mailbox, and subscribe members, plus apply SendAs / Send on Behalf of – BUT STILL, where can I see any emails sent to the default Microsoft Team email address.
If you subscribe the Members they see it, but I don’t want to HAVE to do this.
Well, you should be able to see it in the Outlook Groups navigator, but you can’t…
I can see some Teams though, but none of the my natively created Teams. In fact I can only see Teams inside Outlook Groups that were previously Office 365 Groups before they were Teams! i.e. they got converted.
Even if you try Browse Groups from the Ribbon they are not there. So where are they? Turns out they are just hidden.
The answer is here: HiddenFromExchangeClientsEnabled
Natively created Teams have this attribute set to True, Office 365 Group have it set to False by default.
Get-UnifiedGroup -Identity Contoso-Client | FL DisplayName, PrimarySMTPAddress, HiddenFromExchangeClientsEnabled
So if I run:
Set-UnifiedGroup -Identity Contoso-Client -HiddenFromExchangeClientsEnabled:$False
NOW I can see it in Outlook Groups and I can see any email that has been sent there.
Well, in the migration space that we are often operating in, there a few significant scenarios.
For users that have been working with Office 365 Groups and Microsoft Teams for a while, they may be savvy enough to know and want this behaviour.
Maybe it’s actually still a useful feature to have a “normal” email address for a Team to be able to give out, rather than a Teams Channel email address that looks a bit like: 6897a8e8.neroblanco.co.uk@emea.teams.ms although you can make that more respectable with an MEU using the above address as a targetAddress.
Some other testing I also discovered that you can use the PowerShell command Set-MailboxAutoReplyConfiguration This is mightily useful for setting an autoresponder for whatever reason. Teams/Group Mailboxes accept very few *-mailbox command so I was pleasantly surprised this worked.
Set-MailboxAutoReplyConfiguration -Identity Contoso-Client@neroblanco.co.uk -AutoReplyState Enabled -InternalMessage "Internal auto-reply message." -ExternalMessage "External auto-reply message."
But probably the best solution is to Mail Enable the General Channel, (or create a dedicated channel for this purpose and mail enable it). Capture that address then put a forwarder on the GroupMailbox
Set-Mailbox -Identity "Contoso-Client" -GroupMailbox -ForwardingSmtpAddress "34694ce3.neroblanco.co.uk@emea.teams.ms"
Get-Mailbox Contoso-Client -GroupMailbox | FL *forward*
DeliverToMailboxAndForward : False
ForwardingAddress :
ForwardingSmtpAddress : smtp:34694ce3.neroblanco.co.uk@emea.teams.ms