Email Integration Allows Channels to Receive Email
By default, any channel in a team can receive email from any sender. Teams supports this capability by assigning email addresses to channels on an on-demand basis and using inbound email sent to create new conversations in the target channels. It all sounds good and works smoothly, and it’s there because many interesting ideas and suggestions surface in email first. Those involved in the discussion then have the choice to continue in email or take the debate to a suitable Teams channel where others can join the conversation, and everyone sees what’s going on.
Organization-level Control
If you’d prefer to impose some control over email communications to Teams, head for the Org-wide settings section of the Teams admin center and select Teams settings. The Email integration section (Figure 1) allows tenants to:
- Disable or enable the ability of users to send email to channel email addresses. The default is On.
- Create an accepted list of domains from where email can originate. The default is to accept email from any domain.
If your organization uses several domains, make sure to include all the domains used to send email in the list of accepted domains. Individual team owners cannot override the set of accepted domains defined for a tenant.
Updating with PowerShell
You can also update the settings with PowerShell by running the Set-CsTeamsClientConfiguration cmdlet from the Teams module. In this example, we update the settings to allow channels to receive email from a restricted list of three domains:
[string]$SenderDomains = "Office365itpros.com;contoso.com;microsoft.com;yandex.com " Set-CsTeamsClientConfiguration -RestrictedSenderList $SenderDomains -AllowEmailIntoChannel $true Get-CsTeamsClientConfiguration | Select AllowEmailIntoChannel, RestrictedSenderList AllowEmailIntoChannel : True RestrictedSenderList : Office365itpros.com;contoso.com;microsoft.com;yandex.com
Note the use of semi-colons to separate the domain names rather than the commas specified in Microsoft’s documentation. In addition, do not leave spaces between the domain names. It can take an hour or so before the addition or removal of a domain from the list becomes effective.
Generating Email Address for Teams Channels
A channel email address is composed of an eight-character identifier, the name of the default email address policy (if the tenant has a special address policy for groups, the domain specified in that policy is used), and the Teams messaging domain which handles delivery to the channel. An example is:
1e2d0ee3.office365itpros.com@emea.teams.ms
In this instance, the emea.teams.ms domain tells us that the tenant is in the EMEA (Western Europe) datacenter region. Other values include na.teams.ms (North America) and apac.teams.ms (Asia Pacific).
You cannot change the name or format used for the identifier. Teams generates the value automatically the first time a team member from the tenant requests an email address for a channel, and one is not already present. Guest members can retrieve a channel email address if one exists, but they can’t generate a new address. Team members (except guests) can also remove the email address for a channel. If someone does, Teams generates a new address for the channel the next time a team member requests one.
The new channel email address will not be the same as the original, meaning that anything depending on that email address will cease to work and email senders will receive non-delivery notifications saying:
Delivery has failed to these recipients or groups:
ce49a0c3.office365itpros.com@emea.teams.ms
This channel was not found, so we couldn’t send your message. If you have any questions, contact the team owner.
Teams captures audit records when team members generate or remove channel email addresses. Here’s an example of how to interrogate the audit log to find the relevant records. You can’t generate a report of Teams channels with email addresses using pure PowerShell, but you can with a combination of PowerShell and Graph API calls.
Routing Email to Channels
Email delivery to a Teams channel is more complicated than to a mailbox. Channel email addresses do not point to normal Exchange Online mailboxes. Microsoft manages these mailboxes, which are inaccessible to customers. Like other email addresses, the domains are resolvable in DNS. We can see from this output that messages sent to emea.team.ms go to protection.outlook.com, just like any other Exchange Online domain. In other words, the first step in their transfer is to have Exchange Online Protection process the messages.
Resolve-DnsName -Type mx emea.teams.ms Name Type TTL Section NameExchange Preference ---- ---- --- ------- ------------ ---------- emea.teams.ms MX 3599 Answer emea-teams-ms.mail.protection.outlook.com 0
The special target mailboxes act as a reception point for email sent to Teams. Connectors pick up the email delivered to the mailboxes and create new conversations in the target channel (Figure 2). In this example, the sender set the message importance to be High, so Teams flags the conversation as Important.
Note the way Teams uses the message subject as the conversation subject. If people forward messages to Teams channels, it’s a good idea to review the message subject before sending to make sure that the conversation has an appropriate and meaningful subject in the channel.
If you want the message to arrive in multiple channels, you must include the address for all the target channels in the message.
Teams imposes some rules on the kind of messages it will accept. In most cases, these restrictions won’t get in the way of users:
- Messages can’t have more than 50 inline images or more than 20 file attachments.
- No attachment can be larger than 10 MB.
Capturing Copies of Email in SharePoint Online
When Teams creates a new conversation, it also stores the copy of the original message in a subfolder of the channel folder in the SharePoint Online site belonging to the team (Figure 3). Up to February 2021, Teams used the EmailMessages subfolder. Now, Teams creates a separate subfolder monthly, which is why you see the messages in the EmailMessages_8_2021 (August 2021) folder.
If you want to access the original message, use the View original email option to download a copy of the .eml file. The .eml file is a faithful copy of the original, complete with headers showing the transfer of the message from the sending server to delivery for Teams.
Getting and Using Channel Email Addresses
To retrieve the address of a channel, use the Get email address option in the channel menu and then use the Copy button (Figure 4) to copy the email address to the clipboard. The user can then paste the address into email headers as needed. Note the dangerous option to remove the email address from the channel as discussed above.
Figure 5 shows the advanced settings view, which includes the email address (and a display name composed from the channel name and the team name). We can also see any limitations set on email delivery. A team owner can choose to limit acceptance to email sent by team members. Otherwise, Teams will accept email from any email address and deliver it to the channel (even to private channels) if the sender complies with the restricted domain list configured for the tenant.
If delivery is restricted to a channel and the sender is not a team member or from an accepted domain, they receive a message from Teams with the following:
Delivery has failed to these recipients or groups:
1e2d0eb3.office365itpros.com@emea.teams.ms
The administrator has restricted permissions to send emails to this channel.
Using Channel Email Addresses in Distribution Lists and Groups
Obviously, people can use the channel email address to address a message on an ad-hoc basis. For more persistent use, you can create a mail contact for the channel address. This approach has the advantages of making the address readily available to all users through the GAL and allowing the channel to be a member of a distribution list. Microsoft’s support documentation for sending email to a channel calls out using a channel address as part of a distribution list. I have never had an issue when using a channel email address for a mail contact and adding the mail contact to distribution lists.
If you want to have the channel in a Microsoft 365 group, you can use the channel address to create a guest account in Azure AD and include the guest account in the group membership. I use this technique to capture copies of all messages sent to a Microsoft 365 group in a team channel.
Keeping Ideas Flowing
The Email Integration capability in Teams allow users to send messages to channels to create new conversation threads as easily as sending email to any other recipient. It’s a nice feature to have and something that people who split their work communications between email and Teams will find useful, once they know how to use the technology. Isn’t that always the way?
Hello All,
We’ve encountered an issue since adding @microsoft.com to the allowed domain list. Emails and alerts generated from Azure are not reaching the channel. When we switched the recipient inbox to a personal one, the sender appeared as Microsoft. However, reverting to the channel’s email address results in the messages not being delivered. The message trace in the EXO Admin Center shows no records for undelivered messages. Notably, Non-Delivery Reports (NDRs) are only generated if the sender’s domain is not on the list.
Best regards,
Norbertas
This might be because Microsoft often submits messages direct and bypasses the normal SMTP processing done by EXO. In other words, weird stuff can happen with Microsoft generated email.
Maybe worthwhile checking the headers of a message that arrived successfully to a recipient mailbox to see if any clues can be derived from its path.
Hello All,
We had an issue after adding @microsoft.com to allowed domain list. Generated emails/alerts from azure are not landing into the channel, we tried to change the receiver inbox to personal you could see sender is Microsoft. but once you put back to the channel email address, the message is not landing, on the message trace in EXO admin centre no records find for message who are not delivered. NDR only coming back if the sender domain is not in the list.
Best regards,
Norbertas
Hi Tony, would you happen to have an idea if the “Advanced Settings” for Email Channels, where we control if it’s only Team Members of the Specified Domains – have an equivalent PowerShell command?
Context: Currently facing issue where switching the control (from Team Members to Specified Domains) – the setting keeps reverting back to Team Members.
Hi Tony , it would seem that email sent to a Teams channel does not use Exchange Online mail connectors to get back to on-prem mailboxes. Instead email delivery is attempted via MX lookup which triggers anti-spoofing protection by our ISV mail policy.
Can you confirm this behavior or provide any insight?
Teams uses a separate infrastructure to handle email sent to channels. The traffic doesn’t go near your regular Exchange Online tenant.
Is there a way to email only Tagged members of a teams site?
No. Tagging is a Teams mechanism to address members. It doesn’t extend to email.
Can we create a policy to allow only a few channels to receive emails from a specific domain?
You’d have to configure each channel. Go to the channel, select Get email address and then advanced settings. You can then configure the channel to receive email from specific domains.
Hi Tony, we’re having issues where Team members can’t get/copy a Channel email address until the Team Owner does so first. Our admin believes settings are correct to allow any member to use the Channel email address, but it just doesn’t work for a member until an Owner does it once on every Channel. Are we missing a setting or can this be turned off through PowerShell to your knowledge? We’d like any member to be able to use the Channel email addresses, without Team Owners having to do something first for every Channel.
I have never experienced this problem and just tried to get the email address for a channel using a “normal” team member account in a team that I know the owner has not done anything with channel email addresses. The action worked. I tried in a couple of other teams and the action worked there too. Maybe worth asking Microsoft support to check out your tenant to see if anything strange is in place? They can see your tenant settings – I can’t.
Hi Tony,
i have been trying to send an email with attachment to a teams channel. Last time i tried this, it worked perfectly.
Do you know any changes here?
Nope. Things seem oddly delayed at the moment. I shall ping Microsoft and ask if anything is going on.
There are some issues. Microsoft is working on the problem.
I am starting to notice some issues with emails that are not showing up on Teams as post. I am utilizing the contacts and distribution list idea. I know you said you haven’t encountered any issues. is that still the case? How many contacts do you have in a distribution list?
I have also noticed a delay, sometimes over an hour before they appear on the Teams as posts.
I haven’t noticed any problems. What kind of messages are you having issues with?
They are just plain emails, with no images or attachments. Seems to work fine when emailing directly, but as soon as its part of distribution group it seems to not work. I did work in the past.
How odd. I checked my own tenant and found that emails sent to a Microsoft 365 group are being copied to a Teams channel. Maybe log a call with Microsoft and have them look? At the very least, it would allow Microsoft Teams engineering to investigate.
True. I will give that a shot. I wonder if its because I have Distribution groups inside distribution groups ( 3 levels deep)
I am emphatically say that I have never tested that scenario.
We have been using Google Voice for 2FA/MFA where the authenticating system only allowed SMS for 2FA, and multiple people need to be able to login with the same credentials (i.e. Apple, all machines are registered to the same AppleID).
Anyway I had figured out how to use O365 Transport rules to forward these SMS (MFA) emails from GoogleVoice to the correct private Teams Channel, but all of a sudden the emails aren’t getting to Teams. I’ve tried 3 different ways to do this forwarding (Mail Flow Rules, Mailbox Rules, and even GMAIL Filtering), but it seems somehow Teams is blocking emails that appear to be “Forwarded” (I’m guessing this is somehow recorded in the SMTP headers).
Is this something you might know about, or how to get around or fix?
I just did a quick test and forwarded email doesn’t seem to be the issue. I’d log a support incident and have Microsoft Support look at what’s going on.
Hi Tony,
Thanks, I can get regular emails to Auto-Forward with rules, but seems there is some kind of SPAM filtering that’s blocking forwards of GoogleVoice emails.
I added a “Category” to verify the rule was being executed – it applied – and forwarded to another O365 mailbox in a different tenant and it landed in that mailbox’s Junk folder which is where I’m guessing it’s landing in Teams.
I’ll give support a try…
Yep. Sounds like there’s something in those messages that cause Exchange Online Protection to consider them to be spam. Maybe it’s just because the email is from Google…
Had you found any solution to this? Using Google Voice to teams channel and seeing the exact same thing. I created a MFA@ shared maibox on our tenant and those deliver fine. I then set that to forward to the teams channel and nothing shows up and no NDR. If I manually forward a message it delivers fine so this has to be some filtering on the O365 side.
No solution. Then again, I am not paid to pursue solutions to gaps which might appear in Microsoft technology. The only people who fall into that category are Microsoft’s support personnel, which is why you need to work the issue through them rather than here. I can lobby the developers, but quite honestly, when I go to bat to try and get something changed, I focus on more important issues than Google Voice messages not getting to Teams. That’s not what you might like to hear, but it’s an honest answer.
The strange thing is text to the Google Voice forwards normally and so does the forward verification so it just seems to be something getting filtered with the actual MFA messages from Duo, Google Apps, ect.
After getting the run-around by MS support, they will not respond to questions or admit there is a SPAM filter, but I’m convince now there is one…
Yesterday I stumbled on https://support.microsoft.com/en-us/office/send-an-email-to-a-channel-in-teams-d91db004-d9d7-4a47-82e6-fb1b16dfd51e?ui=en-us&rs=en-us&ad=us, in the Troubleshooting section there’s a point “The email includes the channel email address as part of a distribution list. Make sure that the channel email address is being used directly.”
If you look at the SMTP headers of an example email that gets to a regular mailbox, you will see that the Channel Email address will NOT be in the “To:” field, but rather only in the “X-Forwarded-To:” field, i.e. they are blocking emails that are FORWARDED to the Channel. The email has to be addresses TO the Channel, “forwarded to” is not the same.
I don’t know when these rules came into force but it must have been very recently, as this process USED to work until a few weeks ago.
Where is the Team channel in the hierarchy of your DL? Is it a member of the top-level DL or in one of the nested DLs?
Hi Tony,
We’ve noticed that some email which contain rich format + images are totally ‘mismatched’ while they are landed in the Teams channel… What we get on the Teams side is just the text itself, in the better case, or an unreadable long string, at the worse one.
Have you encountered with such issues? Is there any solution/workaround for that?
Rgds,
Oded.
Is there a way to subscribe a Teams channel email address to a listserv server? I have tried doing this, but it appears that the aggressive spam filters operating on emea.teams.ms email addresses. When the confirmation email is sent from the listserv server, it never makes it to the Teams channel email address.
If the ListServ server has a poor email reputation, it’s possible that its messages will be suppressed. Try using the advanced settings for the channel to add the domain for the ListServ server as an approved source of messages. It might help.
It doesn’t appear that our tennet policies for spam and mail protection are applied, which means more spam will get sent to these addresses than to a shared mailbox if you allow external senders. Often malware will be detected from the defender settings in sharepoint after the email attachment is stored instead of being blocked from delivery to the mailbox.
Tenant anti-spam policies are not applied because the email flowing into Teams via a channel address doesn’t go through the standard routes. This is a good reason to restrict inbound email to channels to specific SMTP domains.
Hi Tony
Is there a way where you can email the teams channel (the sender email and subject is identical) and it handled in the same conversation?
As it is now, every time i email the channel it generates a new conversation.
Thanks
Do you mean can you reply to a channel conversation rather than starting a new conversation? If so, no. The reason is that the email client has no knowledge of the Teams thread (conversation) and can’t pass that information through the connector to Teams.
Yes that’s what i mean Tony.
I figured it wasn’t possible, even though the subject is identical.
Thanks for the reply.
Hi Tony,
I have noticed that some non-alphanumeric characters in the email’s subject appear to be stripped out of the corresponding eml file name at the time of creation in the channel folder. Do you happen to know if all non-alphanumeric characters get stripped or if there are some that slip through? We have been using some characters as delimiters in email subjects previously but this doesn’t work with the eml files now!
Kind regards,
Aidan
What kind of characters are stripped? This might be a result of the way messages flow to a hidden mailbox and are then picked up by a connector. I haven’t noticed issues in the past but I suspect I have never used the kind of characters you might be using.
Is there a way to remove the message out of the EmailMessages folder in files and only put the attachments into the files?
Not without doing some programming. I imagine that you could use the SharePoint PnP library to find and remove the copies of the email messages.
Thanks Tony appreciate the response
I’ve been trying to replace user-managed 365 groups with Team channels for email distribution. The issue I have with doing this is that emails sent to the channel email address only show up in the channel conversations, not in member inboxes. Is there a way to have emails that are sent to the channel address delivered to member’s email addresses?
Only by including the users as addressees for the message. A channel email address is not a distribution list.