SMTP Relay
Establishing an SMTP relay through Microsoft Office 365 requires configuration steps within Office 365 administration, including:
-
Register FMOS / FireMon Security Manager as an application
-
Configure FMOS to relay SMTP through an external server
-
Configure FMOS to relay SMTP through Microsoft 365
Step 1: Register FireMon Security Manager
-
Log in to Microsoft Entra using your administrator credentials.
-
Register FMOS / Security Manager as an application.
-
In the left pane, click App registrations.
-
Click New registration.
-
Enter a name in the Name field,
-
Select single tenant option in the Supported account types drop-down menu field (the exact name of the “single tenant” option may vary, depending on your instance, but there should be an option that references a “single tenant”)
-
Leave the Redirect URI field blank. This value is not used in the Client Credentials Flow
-
Click Register. Entra will create the application and redirect you to the overview page for the new application.
-
-
Copy the following values from the new application overview page into a document or other file for safekeeping and save for future use.
-
Application (client) ID
-
Directory (tenant) ID
-
Create a Client Secret.
-
Click Certificates & secrets.
-
Select the Client secrets tab and click New client secret.
-
In the Add a client secret dialog box, enter a Description, set an Expires time frame from the drop-down menu, and then click Add. When the dialog box closes, you will see the secret in the list of client secrets.
-
-
Copy the Client Secret.
-
Use the copy icon to copy the Value field to the clipboard.
-
Paste the value into a document or other file for safekeeping.
-
-
Add API permissions.
-
Click API permissions > Add a permission.
-
On the Request API permissions page, click the APIs my organization uses tab.
-
Use the search bar field to search for Microsoft Graph and click the link.
-
Click Application permissions.
-
Use the search bar field to search for Mail. (include the period).
-
Select the checkboxes to enable the Mail.Read and Mail.Send options.
-
Click Add permissions.
-
-
Grant admin consent.
-
When you return to the API permissions page, click Grant admin consent for <application name>.
-
On the Grant admin consent confirmation dialog box, click Yes.
-
Step 2: Configure FMOS to relay SMTP
-
Log in to the FMOS Server Control Panel
-
On the toolbar menu, click OS > SMTP
-
In the Configuration Mode drop-down menu, select Relay.
-
Enable all options in the Conventional SMTP Relay Settings section.
-
SMTP Authentication: enable
-
Relay Port: 25 (default)
-
Relay Auth Username: The user name used to authenticate to the SMTP relay
-
Relay Host: starttls (The host name or IP address of the SMTP relay server)
-
Security Mode: The SMTP security (encryption) method to use when connecting to the relay server.
-
Relay Auth Password: The password used to authenticate to the SMTP server
-
-
Click Save Configuration.
Step 3: Configure FMOS to relay SMTP through Microsoft 365
-
Log in to the FMOS Server Control Panel
-
On the toolbar menu, click OS > SMTP
-
In the Configuration Mode drop-down menu, select Microsoft365-relay.
-
Enable all options in the Microsoft 365 Relay Settings section.
-
Microsoft 365 Tenant ID: This is the value saved Step 1 during registration FMOS as an application
-
Microsoft 365 Client Secret: This is the value saved Step 1 during registration FMOS as an application
-
Microsoft 365 Client ID: This is the value saved Step 1 during registration FMOS as an application
-
-
Click Save Configuration.