[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] gmail oauth2 howto

From: Anders Eriksson
Subject: Re: [Nmh-workers] gmail oauth2 howto
Date: Sun, 9 Oct 2016 21:49:42 +0200

On Sun, Oct 9, 2016 at 8:12 PM, David Levine <address@hidden> wrote:
Also, you'll need to use mhlogin before using xoauth2.  See
the mhlogin(1) man page for instructions and example with


Tried that, and adding -tls moved things forward a bit (strace shows STARTTLS and unreadable exchanges afterwards).


 $ mhlogin -user andtho888 -saslmech xoauth2 -authservice gmail
Load the following URL in your browser and authorize nmh to access Gmail:


Enter the authorization code: <CODE>

address@hidden ~ $ send -sasl -saslmech xoauth2 -authservice gmail -tls -user andtho888
Use "/home/anders/Mail/draft"? yes
post: problem initializing server; [BHST] Authentication failed: 5.7.8 Username and Password not accepted. Learn more at
send: message not delivered to anyone

Is there a verbose switch to show e.g. which user/pwd its using? I've been away from nmh for 15 years so memory is a bit rusty...

Next step? andtho888 is a gmail user account (the same as the one I authenticated with with the broswer). The mhlogin man page is not clear what 'user' is. It could just as well be read as just <token> to be used verbatim with -user for send(1) fo the purpose of some internal linkage.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]