Notifications
Everything to know about configuring SonarQube Server’s email notifications.
Notifications are sent to users on particular predefined events and on analysis-related events they have subscribed to. You cannot subscribe to notifications for another user. If you believe a user should be receiving notifications, then you must notify the user that they should subscribe.
Prerequisites
Make sure that the server URL is properly set in SonarQube Server otherwise the notification emails will not redirect to the right SonarQube Server URL:
Go to Administration > Configuration > General Settings > General > General.
Check the Server base URL parameter.
Configuring the SMTP authentication
Two SMTP authentication modes are supported: basic and modern authentication. Currently, modern authentication is supported in SonarQube Server only with the Microsoft email service provider (Microsoft Exchange). When using Microsoft Exchange, modern authentication (using OAuth 2.0 token-based authorization) is highly recommended for security reasons.
Configuring SMTP basic authentication
Go to Administration > Configuration > General Settings > Email Notification.
In SMTP Configuration, select Basic Authentication (it’s selected by default) and set the parameters as described below.
Select Save configuration.
Configuring SMTP modern authentication
You can use SMTP modern authentication only with a Microsoft Exchange server.
Setting the notification queue processing frequency
You can change the frequency with which the SonarQube Server processes the notification queue. To do so:
Set the
sonar.notifications.delay
property (in seconds) in<sonarqubeHome>/conf/sonar.properties
.Restart the server for the new value to be taken into account.
Related pages
Last updated
Was this helpful?