FortiMail
FortiMail provides advanced, multi-layer protection against the full spectrum of email-borne threats
azhunissov
Staff
Staff
Article Id 313325
Description 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
  1. To create a blocklist for a specific mail user, use the following API call:

 

create_a_blocklist.png

 

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

 

get_block_list.png

 

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

     

    create_a_safe.png

     

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

 

get_safe_list.png

 

 

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

     

    create_a_secondary.png

     

     

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

 

check_secondary.png

 

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.