[conspire] (forw) Re: [Golugtech] Fw: [Alpine-info] O365 XOAUTH2 via fetchmail

Akkana Peck akkana at shallowsky.com
Fri Apr 22 15:32:10 PDT 2022


Rick Moen writes:
> > I have to use Google's SMTP server when I post to google groups.
> > I currently use msmtp, password authenticated. 
> 
> And simple password auth works, for that?  I'm glad if it does (for your
> sake).  Perhaps you mean it works for that, but XOAUTH2 is mandated for
> GMail specifically.

Simple password auth works for gmail as long as you enable "less
secure apps". And Google being Google, they periodically reset that
pref and password-authenticated SMTP stops working until I go click
through several screens re-enabling it.

> > it's more to do with Google's old scripts and documentation that
> > haven't been updated as they changed the server side.
> 
> Heh.  The cynical take on that would be that this is the
> passive-aggressive way to discourage people, but certainly a more
> parsimonious explanation is that developers hate writing documentation.
> ;->

True 'nuff. But in this case developers also can't be bothered
updating a 2-page Python script even when people post pull requests
(there's a PR for a python3 port), so I think it's more the
passive-aggressive neglect.

Alex Kleider writes:
> I don't pretend to understand exactly what it is that you are trying to do...
> ...but I've been successful in my attempts to send emails in an automated fashion (using Python's Pymail.send.send method and my gmail account as a mail transfer agent.) The only caveat is that one must first set "lesssecureapps" [1] (https://myaccount.google.com/u/1/lesssecureapps?pli=1&rapt=AEjHL4MjjvQ_vFhfyNJA4L8D6F7Ebe23Pp8XOtkTzUpxd4mp5NhUHiFxACtGDaF0HkPzo03agudCrj5aMFoKkq3n4WtyaZZ9yQ&pageId=none)

If you're needing to set "less secure apps", then you're probably
using your gmail password, like I am. Which currently works but I
suspect it won't work forever.

> [1] in the process of generating this email, I've discovered that as of May 22nd the ability to do this will go away!  Don't know what I'll do after that.  Any suggestions??

Aha -- I've long suspected it would eventually go away.

I wish I could find a way to make OAuth2 work. Apparently it has
worked in the past, but the methods for generating the OAuth tokens
have bitrotted

        ...Akkana



More information about the conspire mailing list