Disable external messaging in a Yammer network
By default in Yammer, users can add external participants to their Yammer conversations with external messaging. Organizations can disable external messaging and use of external groups by creating a mail flow rule in Exchange online and configuring Yammer to use it.
When you have set up a mail flow rule and configured Yammer to use it, when a user tries to add an external participant in Yammer, the user receives an error message stating that they are unable to add external participants because it violates their company's policy. The user will not be allowed to post the message.
You can set this up for your home Yammer network, or for external Yammer networks.
Step 1: Define the mail flow rule in Exchange Online
Yammer only checks to see if any mail flow rules are defined: it does not check the content of the rules. However, Exchange Online does check the content of the rules, so you need to create a rule that won't impact mail flow.
Here is an example of a simple rule you can create to disable external messaging in Yammer that won't impact email flow:
- In Name, enter a name such as "Disable Yammer external messaging and external groups"
- In Apply this rule if, specify **firstname.lastname@example.org**. Note that the exact value doesn't matter: it just must be in valid email format.
- In Do the following, select Reject the message with the explanation and add an explanation such as "This disables external groups and messaging in Yammer".
- In Choose a mode for this rule, select Enforce.
- Click Save.
Step 2: Configure Yammer to use Exchange Online mail flow rules
Log in to Yammer as a verified admin, and in the Yammer admin center, go to Content and Security > Security Settings.
Under External Messaging, select Enforce your Exchange Online Exchange Transport Rules (ETRs) in Yammer. (Mail flow rules are also known as Exchange Transport Rules.)
FAQ for mail flow rules and Yammer
Q: If I have on-premises Exchange Transport rules, will those work?
A: No. Yammer only checks for mail flow rules established in Exchange Online.
Q: Do all Exchange Online mail flow rules work with Yammer?
A: Not all mail flow rules from Exchange Online apply to Yammer. We suggest using the sample rule defined above.
Yammer ignores the following conditions and actions (they are mostly about identifying spam messages):
For any other mail flow rule you have in place that is not on this list, if you have configured Yammer to enforce your Exchange Online mail flow rules, Yammer will block external messaging and external groups.
Q: Is this available to Yammer Basic networks?
A: No. In order to apply mail flow rules, the Yammer network must be associated with an Office 365 tenant which includes Exchange Online, so that we know which mail flow rules to look at. Linking a Yammer network to Office 365 requires Yammer Enterprise.