Which conditions can a rule use?

Senders, recipients, internal or external, keywords and schedules.

A rule matches only when all its conditions are met. Empty conditions match everyone.

ConditionOptions
Include senders / Exclude sendersUsers, Entra ID groups, departments or email domains
Include recipients / Exclude recipientsEmail addresses or domains
RecipientsAll recipients, internal messages or external messages
Keywords to include or excludeWords or phrases in the subject only, body only, or subject and body
ScheduleDaily or weekly on chosen weekdays, every 1 to 52 weeks, optional start and end dates, all day or between set times, in a chosen time zone

Things to know

  • A message is internal when every recipient is in one of the tenant's own domains.
  • Groups and departments come from the directory. Membership changes apply after the next synchronization.
  • Choose groups with Choose groups; each appears by name and can be removed with ×. The rule keeps the group's Microsoft 365 ID, so renaming a group does not break it. A group deleted in Microsoft 365 shows as Unknown group; remove it.
  • Recipient groups and departments are not supported; use addresses or domains.
  • Keyword conditions only work in the cloud, because Outlook cannot check the text before sending. Outlook rules cannot have them; in Combined mode, the relay applies them.
  • Schedules are useful for seasonal banners or event campaigns: set an end date and the banner disappears by itself.

Updated 2026-11-24

Try it with your own Microsoft 365

15 days free for up to 1,000 people. No credit card.

Start your free trial