Enforce TLS
Inactiveguard/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
Route all emails to M365
- Open
main.cfinactiveguard/mta/startup_cfg/postfix_custom/. - Set
relayhostto<GUID>.mail.protection.outlook.com. You find your<GUID>in the M365 Exchange Admin Center under Mail flow → Accepted domains.main.cf
Advanced routing
Advanced routing
If for any reason you need to route your emails to different M365 regions, configure the following in addition:
- For every domain that should be routed separately, add a corresponding entry in the
transportandsender_dependent_transportfile.transportBy default, subdomains need to be added separately. Please see Subdomain matching to change the default.sender_dependent_transport - In
main.cf, configure the following two lines:main.cf