Setting up Oauth SMTP Entra
Last updated
Was this helpful?
Last updated
Was this helpful?
Log in to your
In the Applications
> Application registration
> new application
menu
Enter an application name, then in URI redirection, enter web
.
Retrieve the GLPI redirection URL available in configuration
> notifications
> configuration of email notifications
. In way of sending emails
, select SMTP+OAUTH
.
You will see the redirection URL in the new menu that appears. Copy it and paste it into the redirection URI of your Entra application.
Click on Save
.
Now go to certificate and secret
.
Click on new client secret
.
Enter a name
and an expiry date
.
Then click on add
Once validated, the secret value
appears.
The addition of claims is necessary so that GLPI can use the SMTP service via the Entra application.
In the claims
tab, click on your application (in this case Microsoft graph).
On the right-hand side of the screen, search for smtp
.
select it then click on update permissions
.
Return to the application's overview
menu to find the information you need to enter into GLPI.
We filled in the secret value in the previous step, all that remains is to fill in the application ID
and the directory ID.
When you click on save
, you will be redirected to the Microsoft account to be connected.
In order for the account using SMTP services to be authorised to send mail, it is imperative to activate authenticated SMTP
from the Entra Tenant.
Go to users
and click on the relevant account
Then go to mail > manage mail applications
and select SMTP Authenticated
Once you have entered your Microsoft account details, you will need to accept the necessary authorisations. All that's left is to carry out a test send.
Connect to your
GLPI documentation