FortiManager
FortiManager supports network operations use cases for centralized management, best practices compliance, and workflow automation to provide better protection against breaches.
jchavez
Staff
Staff
Article Id 382331
Description This article describes how to configure Gmail to allow relaying and configure email notification workflows with FortiManager.
Scope FortiManager v7.6.2.
Solution

First, set up a Gmail account. To do this, go to account settings and select security.

 

1.png

 

Having a second method of account authentication is important, otherwise, the mail relay permission cannot be continued.

Another email account, cell phone number, or an application can be added.

 

2.png

 

Search for 'App passwords' in settings. Once located, assign a name to the app and then select Create.

 

3.png

 

As a final step, the password for the new 'App' will be displayed. This password should be kept safe, as it will be used in the configuration of FortiManager.

 

These are all the steps required in the Google account.

 

4.png

 

Enter FortiManager and register a mail server. To do this, go to System Settings -> Advanced -> Mail Server -> Create New.

 

At this point, fill in the fields by naming the server, entering the Gmail SMTP server as 'smtp.gmail.com', and setting the port to '587'. Enable the authentication option, then add the Gmail account and the password generated in the 'App'.

Optionally, specify the 'from' field for the emails.

 

5.png

 

Perform a mail test from the configured Gmail account to a Hotmail account. To finish, select 'OK'.

 

6.png

 

If the test is successful, a green notification will appear, if not, it will appear in red.

 

7.png

 

When checking the Hotmail recipient, the test email will appear like this.

 

8.png

 

For this example, there are two administrators: one with the 'Super_User' role 'admin', and another with the 'Restricted_User' role 'example1', each having their corresponding emails.

 

9.png

 

User 'Admin' has a Gmail email, while User 'example1' has a Hotmail email.

 

'Admin'.

 

10.png

 

'example1'.

 

11.png

 

To activate Workspace, navigate to System Settings -> Advanced -> Workspace. Select 'Workflow (All ADOMs)' and create an 'Approval'.

 

12.png

 

To create the new matrix, select the ADOM and the group and/or user responsible for approving all change requests. In the notification section, specify the users to be notified of the event, including when the approval request is halted with the change details and when it is approved.

 

The mail server previously configured is then selected.

 

13.png

 

A functional test was performed by logging in as the user 'example1' and creating a security policy for LAN browsing. The following image shows the user 'example1', with both 'Policy Package' and 'Config Status' synchronized before the change.

 

14.png

 

The 'lock' icon is selected when it turns green, and a prompt to create a new session will appear.

 

15.png

 

The session is given a name for identification purposes.

 

16.png

 

A new policy is created.

 

17.png

 

Once the changes are made, select 'save'.

 

18.png

 

To send the approval email to the user, 'submit' must be selected, which triggers the notification.

 

19.png

 

Before completing the action, add a comment to highlight the change and select the 'Attach configuration' option to provide more details for user approval. 

 

20.png

 

In this case, the user 'admin' receives the approval email, which includes session details. The most important detail is the 'Approval Matrix', with the status marked as 'pending'.

 

21.png

 

In the last email, the HTML attachment displays the following details: package or script.

Note: It is important to exclude the specific Gmail account and allow these attachment types in the anti-spam solution.

 

22.png

  

Example of how the change details are displayed in 'Policy Package'.

 

23.png

 

Example of how the change details are displayed in 'Script'.

 

24.png

 

Note: This type of detail is very helpful for users approving changes, as it allows them to analyze the changes before approval or even add comments to modify the change.

 

To approve the change, log in as 'admin', select the lock icon, and all sessions requiring approval will appear. 

 

25.png

 

Select the session to approve, then choose 'Approve' and add a comment to identify it.

 

26.png

 

Once approved, the column 'Approval Status' shows 1/1, completing the workflow. The only remaining step is to install the policy package.

 

27.png

 

The last notification receives approval and contains the action 'Approve', along with other options such as 'Reject', 'Repair', or 'Discard', depending on the user's choice.

 

28.png

 

This configuration is very helpful when many administrators make changes at the same time and maintain the quality of the change when another person reviews it.