Re: GMail SMTP: no authenticators available?

2021-01-20 Thread Will Yardley
On Wed, Jan 20, 2021 at 04:22:04PM -1000, Baron Fujimoto wrote:
> 
> The following in my muttrc was used successfully util this problem began:
> 
> set smtp_url = smtp://u...@example.org@smtp.gmail.com

Do you have smtp_authenticators (unset by default) set?

set smtp_url = "smtps://lu...@example.com@smtp.gmail.com"
set smtp_authenticators = 'gssapi:login'

Are you using an "app password"? Typically, you'll need to (at least I
did)
https://support.google.com/mail/answer/185833?hl=en-GB

If not, you may want to switch to one. If so, you may want to make sure
it's still active, and check to see if your organization changed any
policies that might be causing the issue, whether that's disabling
certain protocols, or enforcing MFA.

FWIW, when I was using gsuite with Mutt (for work), I would typically
have to auth once for IMAP and once for SMTP.

Good idea trying alternate ports, but you may also want to doublecheck
that your provider is not blocking or hijacking SMTP (and see what you
get using telnet and / or openssl s_client to connect to smtp.gmail.com
directly). Kevin's suggestion should also help show any issues along
those lines.

w



Re: GMail SMTP: no authenticators available?

2021-01-20 Thread Kevin J. McCarthy

On Wed, Jan 20, 2021 at 04:22:04PM -1000, Baron Fujimoto wrote:
Our org's email is hosted by Gmail (via GSuite). I had been using 
neomutt (built from MacPorts) successfully for years. Recently though, 
I can no longer send email successfully using GMail's SMTP servers. I 
get the error, "No authenticators available". IMAP still works 
fine. This change occurred while I had a neomutt session open; it was 
working one day when I left, but the next day, no bueno.


Do you have $smtp_authenticators set to anything?  If so, trying leaving 
it blank so Mutt can try all possible authenticators it knows about.


You might also enable debugging (-d 2) and see if the debug file gives 
any interesting information.  After enabling TLS, the SMTP server would 
typically send an AUTH line indicating acceptable authentication 
mechanisms, for example:

  250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH

Since you compiled against SASL, it should be able to handle at least 
LOGIN and PLAIN.


--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA


signature.asc
Description: PGP signature


GMail SMTP: no authenticators available?

2021-01-20 Thread Baron Fujimoto

Our org's email is hosted by Gmail (via GSuite). I had been using neomutt (built from 
MacPorts) successfully for years. Recently though, I can no longer send email 
successfully using GMail's SMTP servers. I get the error, "No authenticators 
available". IMAP still works fine. This change occurred while I had a neomutt 
session open; it was working one day when I left, but the next day, no bueno.

Although I had been using neomutt above (because it's what's available as mutt 
in MacPorts), I also tried compiling and installing real mutt (2.0.4) from 
source and I am seeing the same behavior with real mutt as well[*].

I don't know if it's relevant, but prior to not working at all, I'd had to 
enter my password whenever I start mutt for IMAP access, as well as *each time* 
I wanted to send a message via the SMTP server.

The following in my muttrc was used successfully util this problem began:

set smtp_url = smtp://u...@example.org@smtp.gmail.com

Where u...@example.org is my hosted gmail address.

I also tried the following with the same results:

set smtp_url = smtp://u...@example.org@smtp.gmail.com:587
set smtp_url = smtps://u...@example.org@smtp.gmail.com

I haven't seen any other traffic about this on the list, so presumably it's not 
a general problem.

Any suggestions would be appreciated.

[*] Built on MacOS 11.1 with "./configure --enable-sidebar --enable-compressed 
--enable-imap --enable-smtp --enable-debug --enable-hcache --with-ssl=/opt/local 
--with-sasl=/opt/local"