"Sasl Authentication Failed" with Mutt and Gmail, Why? [Closed]

I am confused by this, I have installed a lot of new packages and followed some tutorials after googling but I keep getting this kind of SASL -error. I am not sure whether the mistake is in some Gmail settings or should I check some settings in Ubuntu?

I thought this tutorial here would have solved this problem (i am simply trying to set up local mail reading with mutt, using gmail) but I cannot see the instructed things with telnet: "250-STARTTLS 250-AUTH PLAIN LOGIN" so that is why it is not working.

$cat .muttrc

set imap_user = ""  
set imap_pass = "pass"   
#set smtp_url = "smtp://:465/"  
set smtp_url = "smtp://:587/"    
set smtp_pass = "pass"  
set from = ""  
set realname = "name"    
set folder = "imaps://imap.gmail.com:993" 
set spoolfile = "+INBOX"  
set postponed="+[Gmail]/Drafts"    
set move = no
2

This

set smtp_url = "smtp://:587/" 

should probably be

set smtp_url = "smtps://@smtp.gmail.​​​com:465/"

2 differences:

  • use smpts and not smtp;
  • it is not clear if you meant that but name in your command should be like (not just the xxx in front of the @)

Also make sure

  • openssl
  • libsasl2
  • gnutls-bin

are installed.

5
Alexander Ross

Alexander Ross

Gaming, Esports & Interactive Media Writer

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.

Share this article
Twitter Facebook Pinterest