Skip to main content
Prerequisites

Enforce TLS

In activeguard/mta/startup_cfg/postfix_custom/main.cf, set the following parameters to enforce TLS on all connections. In SaaS, they are normally already configured like this.
main.cf
If you had to change anything, click Publish. The new Postfix settings become active within about one minute.

Route all emails to M365

  1. Open main.cf in activeguard/mta/startup_cfg/postfix_custom/.
  2. Set relayhost to <GUID>.mail.protection.outlook.com. You find your <GUID> in the M365 Exchange Admin Center under Mail flowAccepted domains.
    main.cf
If for any reason you need to route your emails to different M365 regions, configure the following in addition:
  1. For every domain that should be routed separately, add a corresponding entry in the transport and sender_dependent_transport file.
    transport
    sender_dependent_transport
    By default, subdomains need to be added separately. Please see Subdomain matching to change the default.
  2. In main.cf, configure the following two lines:
    main.cf
When you finish editing the Postfix files, click Publish. The routing configuration becomes active within about one minute.

Next steps