You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2023-06-07 16:47:17

GeekClassy
Member
Registered: 2023-04-17
Posts: 7

Email notifications using Oauth

Hi everyone,

I have been struggling with an issue I can't wrap my head around.
I'm trying to setup follow-up notifications using the new SMTP + OAUTH method.

My app is hosted on an OVH web cloud server and I'm using Microsoft Exchange Online to send emails.

I created my Azure app and added client ID, tenant ID and secret in GLPI.
I set the callback URL as the return URI in Azure.

The email sender i the one I'm authenticated with.

Port : 25

When I try to send the test mail, I receive the generic message "Failed to send test email". I tried with different options for the SMTP host like "smtp.office365.com", "ssl0.ovh.net" (as I have that entry in my OVH DNS) or "mydomain..mail.protection.outlook.com" (that one is crashing the webserver).

If anyone has any idea I haven't tested yet, please help !
I have also tried and failed to locate a log file that could contain more information on that failure.

Regards,

Rudy

Offline

#2 2023-06-07 16:55:53

WebGreg
Member
Registered: 2020-02-27
Posts: 739

Re: Email notifications using Oauth

Hi.

Did you use the search function? There are a few threads that might help you. maybe this one:

https://forum.glpi-project.org/viewtopic.php?id=287012


--
GLPI 10.0.7
GLPI-Inventory 1.2.1
Ubuntu Server 20.04 LTS

Offline

#3 2023-06-07 17:01:22

GeekClassy
Member
Registered: 2023-04-17
Posts: 7

Re: Email notifications using Oauth

Hi WebGreg,

Thanks for your quick response !
I have indeed searched and followed a tutorial of this kind but I am still facing the issue.
Moreover, this is for using the collectors with the Oauthimap plugin. For the time being I'm more concerned with sending emails using the glpi build-in method than receiving them !

Offline

#4 2023-06-07 17:06:45

WebGreg
Member
Registered: 2020-02-27
Posts: 739

Re: Email notifications using Oauth

I don't use it, so it's hard for me to advise. I can only help you searching smile Maybe this?

https://forum.glpi-project.org/viewtopic.php?id=280491
"This SMTP Server - domain.mail.protection.outlook.com only allows sending email to internal emails (on the same tennant). If you want to send outside you have to use smtp.office365.com"


https://forum.glpi-project.org/viewtopic.php?id=34347

Last edited by WebGreg (2023-06-07 17:21:09)


--
GLPI 10.0.7
GLPI-Inventory 1.2.1
Ubuntu Server 20.04 LTS

Offline

#5 2024-10-15 14:16:53

COINNDM
Member
Registered: 2024-10-15
Posts: 1

Re: Email notifications using Oauth

We are on a fresh cloud instance (licensed) and running into exactly this issue. Did anyone ever find a solution?

I am wondering whether it has to do with conditional access rules?

Offline

Board footer

Powered by FluxBB