Fortinet white logo
Fortinet white logo

Cookbook

Configuring the inbound policy for weighted analysis

Configuring the inbound policy for weighted analysis

If you already have policies, you can select the antispam profile there in order to apply the weighted analysis profile that it references. Otherwise follow the example below to create a new policy.

Once these steps are complete, all incoming emails will be checked for all weighted analysis categories, with a greater emphasis for those emails containing action keywords. Emails that trigger the configured threshold are caught and dealt with according to your selected Action.

To apply an antispam profile in a policy via the GUI

  1. Go to either Policy > IP Policy > IP Policy or Policy > Recipient Policy > Inbound.

  2. Click New, or edit an existing policy.

    For this example, edit the IP-based policy for all incoming and outgoing traffic.

  3. Expand the Profiles section. From AntiSpam, select the AS_Inbound antispam profile that you configured earlier.

    Optionally, expand the Miscellaneous section and enable Take precedence over recipient based policy match.

  4. Click OK.

To apply an antispam profile in a policy via the CLI

config policy ip

edit <policy_int>

set profile-antispam AS_Inbound

set exclusive enable

end

Configuring the inbound policy for weighted analysis

Configuring the inbound policy for weighted analysis

If you already have policies, you can select the antispam profile there in order to apply the weighted analysis profile that it references. Otherwise follow the example below to create a new policy.

Once these steps are complete, all incoming emails will be checked for all weighted analysis categories, with a greater emphasis for those emails containing action keywords. Emails that trigger the configured threshold are caught and dealt with according to your selected Action.

To apply an antispam profile in a policy via the GUI

  1. Go to either Policy > IP Policy > IP Policy or Policy > Recipient Policy > Inbound.

  2. Click New, or edit an existing policy.

    For this example, edit the IP-based policy for all incoming and outgoing traffic.

  3. Expand the Profiles section. From AntiSpam, select the AS_Inbound antispam profile that you configured earlier.

    Optionally, expand the Miscellaneous section and enable Take precedence over recipient based policy match.

  4. Click OK.

To apply an antispam profile in a policy via the CLI

config policy ip

edit <policy_int>

set profile-antispam AS_Inbound

set exclusive enable

end