Fortinet white logo
Fortinet white logo

Cookbook

Configuring outbound settings in FortiMail

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

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...