rustdesk-server-pro icon indicating copy to clipboard operation
rustdesk-server-pro copied to clipboard

SMTP Authentication via oAuth2.0 or Azure

Open imello86 opened this issue 1 year ago • 3 comments
trafficstars

Is your feature request related to a problem? Please describe. Enable SMTP authentication via oAuth2.0 or Azure, in order to send email via Exchange 365 Servers

Describe the solution you'd like Configure SMTP server authentication similar to OIDC authentication, in order to choice alternative methods in RustDesk Server. RustDesk Server must be authenticated via oAuth2.0 or Azure in order to recognize email sender.

Notes Exchange 365 Server disabled traditional authentication

imello86 avatar Mar 05 '24 07:03 imello86

there's no email sending functionality in this project.

Are you sure you're posting to the correct repository?

paspo avatar Mar 06 '24 08:03 paspo

Thanks @paspo , moved to pro

rustdesk avatar Mar 06 '24 08:03 rustdesk

Because basic SMTP auth is going away in Exchange Online, I wrote a service that will accept via SMTP and sends the email via the Microsoft Graph API.

https://github.com/andrewheberle/graph-smtpd

Access is not unauthenticated so make sure it’s not open to the world, although some basic sender and source IP filters are possible.

I’m using it so RustDesk, running as a container under Docker, sends via my service.

It’s probably got bugs and maybe won’t work for you but for basic stuff it’s been ok in my testing (it is a pre v1.0 release)

andrewheberle avatar Jul 22 '24 10:07 andrewheberle