FortiMail
FortiMail provides advanced, multi-layer protection against the full spectrum of email-borne threats
cysaw
Staff
Staff
Article Id 367710
Description

This article describes how to enable/disable the FortiGuard AntiSpam using the REST API with Postman.

Scope FortiMail.
Solution
  1. Login to FortiMail using the REST API with the following information.

URL: https://[FortiMail IP]/api/v1/AdminLogin
Method: POST
RESTAPI: {"name":"username","password":"password"}

cysaw_0-1735694182755.png

 

  1. After login, disable the FortiGuard Antispam Status using the following information.

URL: https://[Fortimail IP]/api/v1/SysFortiguard/
Method: PUT

RESTAPI: {"status": false}

 

cysaw_1-1735694182760.png

 

  1. Enable the FortiGuard AntiSpam using the following information:

URL: https://[Fortimail IP]/api/v1/SysFortiguard/
Method: PUT

RESTAPI: {"status": true}

 

cysaw_2-1735694182764.png

 

Contributors