Create an Encryption Gateway Rule in Exchange Online for a specific sender

Do these steps to create a rule in Microsoft Exchange Online:

  1. Go to the Exchange Admin Center.
  2. Click on Mail flow in the menu on the left.
  3. Click on Rules.
  4. Click on add Add a rule.
  5. Click on Create a new rule.
  6. Enter a name.
    For example: Zivver Encryption Gateway.
  7. Under Apply this rule if * select The sender.
  8. Under Select one select is this person.
  9. Select the desired sender(s).
  10. Click Save.
  11. Under Do the following * select Redirect the message to.
  12. Under Select one select the following connector.
  13. Select the connector that you have created in Create a connector in Exchange Online.
  14. Click Save.
  15. Under Except if select The message headers….
  16. Under Select one select matches these text patterns.
  17. Click on Enter text.
  18. Enter X-Zivver-Transport.
  19. Click Save.
  20. Click Enter words.
  21. Enter ..*. (That is 2 dots, 1 asterisk/wildcard, 1 dot).
  22. Click Add.
  23. Click Save.
  24. Click Next.
  25. Enable the option Stop processing more rules.
  26. Enable the option Defer the message if rule processing doesn’t complete.
  27. Click Next.
  28. Click Finish.
  29. Click Done.

The rule is created but not enabled yet. Please make sure that the priority of all existing rules is correct. If the sent message needs to be processed by other rules first, please make sure that the rule created for Encryption Gateway has a lower priority.

As the rule is not enabled yet, no outbound message that matches the filter will be submitted to the Zivver SMTP Server. Please enable the rule when you are sure all priorities are correct.