top | item 39052409

(no title)

sir | 2 years ago

If you can’t switch to OAuth, you can use my proxy to allow any IMAP (or POP/SMTP) client to be used with a “modern” email provider, regardless of whether the client supports OAuth 2.0 natively: https://github.com/simonrob/email-oauth2-proxy. No need for your client to know about OAuth at all.

discuss

order

rfoo|2 years ago

Submitted title is misleading. Turns out, it's not "all but OAuth", it's "all but OAuth and app password".

If you can't switch to OAuth, you can simply create an app password and continue using that as your IMAP password as usual.

fps_doug|2 years ago

This is surprisingly non-shitty by Google. I must admit that I didn't know that before. Can you limit such a passcode to just IMAP/SMTP, or can it be used to log in to other parts of Google?

nanna|2 years ago

Brilliant. So this is how you could keep a client like mu/mu4e functional for Gmail and outlook365.

yashasolutions|2 years ago

actually app password will keep working. Which is basically all you need for mu4e

emersion|2 years ago

Unfortunately this requires users to setup their own OAuth client, which is a pretty manual/cumbersome process.

sir|2 years ago

There's no good way around that unfortunately. The proxy could build in an OAuth client for the major providers, but it's unlikely that this would be trusted by default without significant effort being put into review processes.

As the readme explains, there's nothing to stop you using the existing OAuth client details from another source (such as the many already trusted open source email clients that exist).

rollcat|2 years ago

Same if you're building any OAuth-enabled client from source.

(Remind me, what's stopping me from extracting the client secrets from the compiled binary, and re-using them elsewhere?)

polski-g|2 years ago

I ended up ripping the app ID out of Thunderbird and using that for my OAuth process to Gmail.

mschuster91|2 years ago

Thank you for writing that, really helped me out back when Microsoft pushed OAuth for Office 365.

codepoet80|2 years ago

Thank you for making this. I'd been puzzling through how to build something similar. Starred and downloaded, I'll definitely be using!