"SASL authentication failed" with mutt and Gmail, why? [closed]

This

set smtp_url = "smtp://[email protected]:587/" 

should probably be

set smtp_url = "smtps://[email protected]@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 [email protected] (not just the xxx in front of the @)

Also make sure

  • openssl
  • libsasl2
  • gnutls-bin

are installed.