Fortinet black logo

Cookbook

Configuring outbound settings in FortiMail

Copy Link
Copy Doc ID 4d12c850-b7f4-11eb-92d0-00505692583a:1458
Download PDF

Configuring outbound settings in FortiMail

Now that inbound settings are configured in both Office 365 and FortiMail, you must next configure outbound settings in FortiMail.

  1. In FortiMail, go to Dashboard > Console to open the CLI console.

  2. Enter the following commands, for each Office 365 server IP address, to add Office 365 as a trusted relay to FortiMail:

  3. config policy access-control receive

    edit 1

    set sender-ip-mask 23.103.132.0/22

    set action relay

    next

    edit 2

    set sender-ip-mask 23.103.144.0/22

    set action relay

    next

    edit 3

    set sender-ip-mask 23.103.191.0/24

    set action relay

    next

    edit 4

    etc...

Configuring outbound settings in FortiMail

Now that inbound settings are configured in both Office 365 and FortiMail, you must next configure outbound settings in FortiMail.

  1. In FortiMail, go to Dashboard > Console to open the CLI console.

  2. Enter the following commands, for each Office 365 server IP address, to add Office 365 as a trusted relay to FortiMail:

  3. config policy access-control receive

    edit 1

    set sender-ip-mask 23.103.132.0/22

    set action relay

    next

    edit 2

    set sender-ip-mask 23.103.144.0/22

    set action relay

    next

    edit 3

    set sender-ip-mask 23.103.191.0/24

    set action relay

    next

    edit 4

    etc...