unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Gnus, Oauth2, & nnimap-authenticator
@ 2025-01-02  6:36 David Masterson
  2025-01-02 17:16 ` Bob Newell
  2025-01-03 11:10 ` Eric S Fraga
  0 siblings, 2 replies; 6+ messages in thread
From: David Masterson @ 2025-01-02  6:36 UTC (permalink / raw)
  To: help-gnu-emacs

Does anyone have more documentation on setting up OAuth2 and using it
with NNIMAP in Gnus?  New email systems seem to be moving to Oauth2
protocol, but there is very little documentation on how to set it up
(especially for newbies) with Emacs email packages.  Any hints??
-- 
David Masterson



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Gnus, Oauth2, & nnimap-authenticator
  2025-01-02  6:36 Gnus, Oauth2, & nnimap-authenticator David Masterson
@ 2025-01-02 17:16 ` Bob Newell
  2025-01-03  3:07   ` David Masterson
  2025-01-03 11:10 ` Eric S Fraga
  1 sibling, 1 reply; 6+ messages in thread
From: Bob Newell @ 2025-01-02 17:16 UTC (permalink / raw)
  To: David Masterson, help-gnu-emacs



On Wed, Jan 1, 2025, at 20:36, David Masterson wrote:
> Does anyone have more documentation on setting up OAuth2 and using it
> with NNIMAP in Gnus?  New email systems seem to be moving to Oauth2
> protocol, but there is very little documentation on how to set it up
> (especially for newbies) with Emacs email packages.  Any hints??

The best way, if you require pure OAuth2, seems to be to hand off to msmtp rather than sending directly from Gnus, although that may trigger significant changes to your Gnus setup.  There is good online material showing how msmtp works with OAuth2.

Of course if your mail system allows for app passwords (you may have to hunt around as the option is often not easy to find) that is easiest, and it's what I do.  I haven't found a major provider that doesn't support app passwords (your mileage may vary).

Bob Newell
Honolulu





^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Gnus, Oauth2, & nnimap-authenticator
  2025-01-02 17:16 ` Bob Newell
@ 2025-01-03  3:07   ` David Masterson
  0 siblings, 0 replies; 6+ messages in thread
From: David Masterson @ 2025-01-03  3:07 UTC (permalink / raw)
  To: Bob Newell; +Cc: help-gnu-emacs

"Bob Newell" <bobnewell@bobnewell.net> writes:

> On Wed, Jan 1, 2025, at 20:36, David Masterson wrote:
>> Does anyone have more documentation on setting up OAuth2 and using it
>> with NNIMAP in Gnus?  New email systems seem to be moving to Oauth2
>> protocol, but there is very little documentation on how to set it up
>> (especially for newbies) with Emacs email packages.  Any hints??
>
> The best way, if you require pure OAuth2, seems to be to hand off to
> msmtp rather than sending directly from Gnus, although that may
> trigger significant changes to your Gnus setup.  There is good online
> material showing how msmtp works with OAuth2.

Hmm. msmtp would handle sending email, correct?  Does it also handle
getting the email from IMAP?

> Of course if your mail system allows for app passwords (you may have
> to hunt around as the option is often not easy to find) that is
> easiest, and it's what I do.  I haven't found a major provider that
> doesn't support app passwords (your mileage may vary).

Outlook.com was working fine, but seems to have moved to "Modern
Authentication" (which I think has to do with Oauth2).  So I tried a
free email account on Zohomail, but it has a strict DMARC policy which
causes gnu.org to reject it's email, but Zohomail does accept email from
gnu.org.  I've gotten SMTP working via icloud.com, so I'm using Zohomail
for incoming and Icloud for outgoing.  I'm still not sure of expiring
emails on Gnus and Zohomail (which will eventually overload the space if
expiry doesn't work), so I'm looking at other options.

-- 
David Masterson



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Gnus, Oauth2, & nnimap-authenticator
  2025-01-02  6:36 Gnus, Oauth2, & nnimap-authenticator David Masterson
  2025-01-02 17:16 ` Bob Newell
@ 2025-01-03 11:10 ` Eric S Fraga
  2025-01-04  7:52   ` David Masterson
  1 sibling, 1 reply; 6+ messages in thread
From: Eric S Fraga @ 2025-01-03 11:10 UTC (permalink / raw)
  To: help-gnu-emacs

If you are trying to work with Outlook, davmail
(https://davmail.sourceforge.net/) works well as an intermediary between
gnus and Outlook.

-- 
Eric S Fraga via gnus (Emacs 31.0.50 2024-12-17) on Debian 12.8




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Gnus, Oauth2, & nnimap-authenticator
  2025-01-03 11:10 ` Eric S Fraga
@ 2025-01-04  7:52   ` David Masterson
  2025-01-04  9:29     ` Björn Bidar
  0 siblings, 1 reply; 6+ messages in thread
From: David Masterson @ 2025-01-04  7:52 UTC (permalink / raw)
  To: Eric S Fraga; +Cc: help-gnu-emacs

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> If you are trying to work with Outlook, davmail
> (https://davmail.sourceforge.net/) works well as an intermediary
> between gnus and Outlook.

I tried, but I had trouble figuring out Davmail -- the docs are
confusing for a newbie.  Do you have a simplified Davmail properties
file for Gnus<->Outlook you could share along with the Gnus & SMTP setup
in Emacs?  I work better copying from others. ;)

Thanks
-- 
David Masterson



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Gnus, Oauth2, & nnimap-authenticator
  2025-01-04  7:52   ` David Masterson
@ 2025-01-04  9:29     ` Björn Bidar
  0 siblings, 0 replies; 6+ messages in thread
From: Björn Bidar @ 2025-01-04  9:29 UTC (permalink / raw)
  To: David Masterson; +Cc: Eric S Fraga, help-gnu-emacs


When you use Davmail with Gnus then Davmail handles OAuth but not Gnus.
You simply use your user with password and username like you always do.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-01-04  9:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-02  6:36 Gnus, Oauth2, & nnimap-authenticator David Masterson
2025-01-02 17:16 ` Bob Newell
2025-01-03  3:07   ` David Masterson
2025-01-03 11:10 ` Eric S Fraga
2025-01-04  7:52   ` David Masterson
2025-01-04  9:29     ` Björn Bidar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).