# Not able to accept or deny messages sent to group in Exchange Hybrid Scenario

One of the functionalities in Microsoft Exchange for Distribution Groups (or mail-enabled groups for that matter) is ability to setup…

blog

13 Aug 2018 en

![Not able to accept or deny messages sent to group in Exchange Hybrid Scenario](/wp-content/uploads/2018/08/img_5b71f59c4f3c8.png)

[View images (3)](#pf-content-image-1-0)

One of the functionalities in Microsoft Exchange for Distribution Groups (or mail-enabled groups for that matter) is ability to setup approval workflow. This means you can require any message to be manually approved before it's delivered to user mailboxes. It's a standard functionality for Microsoft Exchange and generally works out of the box. Until it doesn't… Of course it doesn't stop by itself. It's strictly related to **Exchange On-Premise** in a **hybrid** scenario with **Exchange Online** and it manifested itself when some people were moved to **Exchange Online**, while another group stayed on-premise. There were simply no **Approve** / **Deny** buttons in the message that was sent to **Approvers**.

### 💡 Why this happens and how can I fix this?

It happens because you have disabled **TNEF**. And to fix it, you just need to (you guessed it!) make sure to enable **TNEF** (Transport Neutral Encapsulation Format). Before you go and enable it for the whole world you should stop and read about what it is actually and what are the consequences of it. [Microsoft TNEF Conversion](https://docs.microsoft.com/en-us/exchange/mail-flow/content-conversion/tnef-conversion) provides good overview. The short version of it is that if you enable it for everyone you will end up with **Winmail.dat **in your customer mailboxes. And you don't want that! To stay on the safe side you just have to enable **TNEF **to be utilized between **Exchange On-Premise** and **Exchange Online**. By default any messages sent within Exchange On-Premise have TNEF enabled and so things work just fine. If you enable HYBRID with Office 365 you need couple more steps for things to be in order. As you most likely know already your Office 365 should have 2 domains that come with it:

- 🌐 .mail.onmicrosoft.com
- 🌐 .onmicrosoft.com

Trick is you have to make sure that both of your **Tenant** domains and your on-premise domain are sending messages with **TNEF** Enabled.

### 💡 This part should be done on Exchange 2013/2016/2019 On-Premise

On your on-premise server:

```powershell
Get-RemoteDomain | Select Name, DomainName, TNEF*, Trust*, AllowedOOF*, IsIn*
```

Which should show at least **Default** (which is basically every undefined domain out there) and 2 additional remote domains called **Hybrid Domain – ….**

[!\[Exchange on-premises remote domain list showing Hybrid Domain entries with TNEFEnabled values\](/wp-content/uploads/2018/08/img_5b71f55e9e66f.png)](/wp-content/uploads/2018/08/img_5b71f55e9e66f.png)

```powershell
Name                       : Default
DomainName                 : *
TNEFEnabled                :
TrustedMailOutboundEnabled : False
TrustedMailInboundEnabled  : False
AllowedOOFType             : External
IsInternal                 : False


Name                       : Hybrid Domain - tenant.mail.onmicrosoft.com
DomainName                 : tenant.mail.onmicrosoft.com
TNEFEnabled                : True
TrustedMailOutboundEnabled : False
TrustedMailInboundEnabled  : False
AllowedOOFType             : External
IsInternal                 : False


Name                       : Hybrid Domain - tenant.onmicrosoft.com
DomainName                 : tenant.onmicrosoft.com
TNEFEnabled                : True
TrustedMailOutboundEnabled : False
TrustedMailInboundEnabled  : True
AllowedOOFType             : External
IsInternal                 : False
```

[!\[Exchange hybrid remote domain settings highlighting TNEFEnabled for onmicrosoft.com domains\](/wp-content/uploads/2018/08/img_5b71f59c4f3c8.png)](/wp-content/uploads/2018/08/img_5b71f59c4f3c8.png)

If it's not showing TNEFEnabled set to **true **for your **Hybrid Domain **you won't get Approval Workflow working. While not necessary needed for this scenario you may as well change those as well… the important bits Except **TNEFEnabled **are the rest of the settings out there. So make sure to set those up properly as well.

```powershell
# Domain 1
Set-RemoteDomain 'Hybrid Domain - .mail.onmicrosoft.com' -TNEFEnabled $true -TrustedMailInboundEnabled $True -TrustedMailOutboundEnabled $True -AllowedOOFType InternalLegacy

# Domain 2
Set-RemoteDomain 'Hybrid Domain - .onmicrosoft.com' -TNEFEnabled $true -TrustedMailInboundEnabled $True -TrustedMailOutboundEnabled $True -AllowedOOFType InternalLegacy
```

### 💡 This part should be done on Office 365

Similarly you have to do the same thing on the **Office 365** side only for your main domain. For example **evotec.pl**

[!\[Office 365 remote domain view for the main domain before enabling TNEF settings\](/wp-content/uploads/2018/08/img_5b71f6bc1dc33.png)](/wp-content/uploads/2018/08/img_5b71f6bc1dc33.png)

```powershell
Get-RemoteDomain | Select Name, DomainName, TNEF*, Trust*, AllowedOOF*, IsIn*
```

Check if your main domain is created already as remote domain? If it's not… create it.

```powershell
New-RemoteDomain -Name 'Evotec' -DomainName 'evotec.pl'
```

Finally fix settings for it.

```powershell
# Domain 1
Set-RemoteDomain 'Evotec.pl' -TNEFEnabled $true -TrustedMailInboundEnabled $True -TrustedMailOutboundEnabled $True -AllowedOOFType InternalLegacy
```

And that's it. After both ends cover **Remote Domains **with **TNEFEnabled** you will be able to approve/deny requests (as in buttons Approve / Reject will be available for you). In case you run into **NDR** after approving email… [M**icrosoft Exchange Approval Assistant – Your message couldn’t be delivered because delivery to this address is restricted to authenticated senders**](https://evotec.xyz/microsoft-exchange-approval-assistant-your-message-couldnt-be-delivered-because-delivery-to-this-address-is-restricted-to-authenticated-senders/) just follow this article.

## Related Projects

Projects that align with this post's tags, categories, and content.

[All projects](/projects/)

Matching projects...

[Back to Blog](/blog)

## Related posts

- [Sending email as an alias (proxy address) with Office 365](/blog/sending-email-as-an-alias-proxy-address-with-office-365/)
- [Creating Visual Indicators for spoofed / external emails with PowerShell](/blog/creating-visual-indicators-for-spoofed-external-emails-with-powershell/)
- [Office 365 – Report containing User Information and Mailbox Usage](/blog/office-365-report-containing-user-information-and-mailbox-usage/)

<!-- PowerForge markdown artifact sha256:6B86E69DB5AB9442691346F71D6D1FD3BF147881EBD0D4CA6445AED658BDEB8A -->
