nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.46k stars 4.08k forks source link

Use oauth2 for basic email server settings #21595

Open tinsjourney opened 4 years ago

tinsjourney commented 4 years ago

How to use GitHub

Is your feature request related to a problem? Please describe. The configuration for basic email server use user/password credentials. But gmail smtp now refused user/password login and force us to use the oauth2 authentication

Describe the solution you'd like Add extra option in authentication method drop down list to be able to set :

Additional context https://github.com/google/gmail-oauth2-tools give some exemple on how it works

szaimen commented 3 years ago

cc @nextcloud/server-triage is this feasible?

skjnldsv commented 3 years ago

@ChristophWurst ?

ghost commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions.

ChristophWurst commented 3 years ago

@ChristophWurst ?

This ticket is about email settings in Nextcloud, like for notifications.

ghost commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions.

errotu commented 2 years ago

I would also be very much in favor of this feature. More and more e-mail services only offer oauth2-identification (e.g. some Office365-environments).

BroOtti commented 2 years ago

I can't connect my Microsoft 365 e-mail account because Microsoft disables basic auth, and it's not possible to add an e-mail account through oauth. You can read more about it here: https://docs.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/deprecation-of-basic-authentication-exchange-online It's also not possible to add a gmail account with extended security enabled. Support for these would be nice.

aldfeu commented 2 years ago

I think all users from office 365 and gmail are very much in favor of this feature. For most of them, it is already or it will soon be not possible anymore to use accounts from microsoft or google in their nextcloud platform. Very sad.

rexchoppers commented 2 years ago

I would also like this - I'm scouting to use Nextcloud for a few projects but we used Office 365 so we can't pass our emails through into 1 place. Any help or work around would be great

aldfeu commented 1 year ago

Take a look at https://github.com/simonrob/email-oauth2-proxy or https://davmail.sourceforge.net/

unclesam87 commented 1 year ago

is there any progress with that? i have a big problem with several clouds that have exchange online smtp servers...

joshtrichards commented 1 year ago

Upstream tracker: symfony/symfony#48888

nguyenk commented 1 year ago

As mentioned in the upstream, I ended up using Microsoft Graph API (not direct SMTP relay). If it can help, here is a gist : https://gist.github.com/nguyenk/15dd504dbcf7322807cb8f93371937d7.

Benjamin-Watson0 commented 2 months ago

https://support.microsoft.com/en-us/office/modern-authentication-methods-now-needed-to-continue-syncing-outlook-email-in-non-microsoft-email-apps-c5d65390-9676-4763-b41f-d7986499a90d

Outlook mailbox needs to update the verification method?