Skip to Content

How to create safelist, blocklist and secondary account for particular mail user via API

This article describes how to create a safelist, blocklist, and secondary account for a specific mail user via API call.

Scope

FortiMail 7.0 and higher versions.

Solution

To create a blocklist for a specific mail user, use the following API call:

To create a blocklist for a specific mail user, use the following API call.

To check the created blocklist entry, use the following API call:

To check the created blocklist entry, use the following API call.

To create a safelist for a specific mail user, use the following API call:

To create a safelist for a specific mail user, use the following API call.

To check the created safelist entry, use the following API call:

To check the created safelist entry, use the following API call.

To create a secondary mail account for a specific mail user, use the following API call:

To create a secondary mail account for a specific mail user, use the following API call.

To check the created secondary account, go to FML and check User Preferences:

To check the created secondary account, go to FML and check User Preferences.

Note: There is a bug 0873052 (Unable to add a secondary account through API). It is fixed in v7.0.6, v7.2.3, and v7.4.0.