To support policy email notifications, a valid SMTP configuration is required. The following properties are used to configure SMTP:
smtp.sender- [required] the address the email is being sent from.smtp.host- [required] the SMTP server being used to send email.smtp.user- the username for the SMTP server (the sender email address). Required when using OAuth 2.0 authentication.smtp.password- the password for the SMTP server, if basic authentication is used.smtp.oauthToken- a static OAuth 2.0 access token for the SMTP server. This token must be manually rotated when it expires. For automatic token management, usesmtp.modeTypeinstead.smtp.port- [default: 25] the port of the SMTP server.smtp.auth- [default: false] true/false, if authentication is being used.smtp.tls- [default: false] true/false, if TLS is being used.smtp.additionalProps- a list of additional SMTP properties to configure the SMTP server. These are expected as comma-separatedkey -> valuepairs. For example:smtp.additionalProps = mail.smtp.ssl.enable -> true, mail.smtp.ssl.trust -> *You can refer to the full list of available SMTP properties here.
OAuth 2.0 Configuration
The following properties enable automatic OAuth 2.0 token management, where SRM fetches and refreshes the Bearer token automatically. See SMTP Authentication Setup for full setup instructions for each provider.
smtp.modeType- the authentication mode. Accepted values:clientCredentials- OAuth 2.0 Client Credentials grant. SRM fetches and refreshes access tokens automatically using the client ID and secret. Suitable for Microsoft Exchange Online / Office 365. See Client Credentials setup.refreshToken- OAuth 2.0 Authorization Code grant. SRM uses a stored refresh token to obtain access tokens. Required for Google Workspace (Gmail) and Yahoo Mail, which do not support the Client Credentials grant for SMTP. See Authorization Code setup.basic- standard username and password authentication (smtp.user+smtp.password). See Basic Authentication setup.oauthToken- static OAuth 2.0 access token (smtp.oauthToken). Must be manually rotated when it expires. See Static OAuth Token setup.
smtp.clientId- [required forclientCredentialsandrefreshTokenmodes] the OAuth 2.0 Application (Client) ID registered with the identity provider.smtp.clientSecret- [required forclientCredentialsandrefreshTokenmodes] the OAuth 2.0 client secret.smtp.tokenUrl- [required forclientCredentialsandrefreshTokenmodes] the token endpoint URL of the identity provider (e.g.https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token).smtp.authorizationUrl- [required forrefreshTokenmode only] the authorization endpoint URL of the identity provider (e.g.https://accounts.google.com/o/oauth2/v2/auth).smtp.redirectUri- [required forrefreshTokenmode only] the redirect URI registered with the identity provider. Must be set tohttps://<srm-host>/x/smtp-oauth/callback.smtp.oauthScope- the OAuth 2.0 scope to request.- [required for
refreshTokenmode] — e.g.https://mail.google.com/for Gmail, orhttps://outlook.office.com/SMTP.Send offline_accessfor Microsoft delegated access (the space separates two OAuth 2.0 scopes). - [recommended for
clientCredentialsmode] — Microsoft Entra v2.0 token endpoints require a scope; usehttps://outlook.office365.com/.defaultfor Exchange Online app-only access. Omitting this will produce a warning and may cause token fetch to fail.
- [required for
smtp.additionalOAuthParams- [optional,refreshTokenmode only] additional parameters to append to the OAuth 2.0 authorization URL, as comma-separatedkey -> valuepairs. For example:smtp.additionalOAuthParams = access_type -> offline, prompt -> consent(required by Google to obtain a refresh token).CAUTION:Parameter values must not contain commas. Pairs with comma-containing values are silently ignored.