Mutt and google authentication

view full story

https://bbs.archlinux.org – I recently switched to using google's two factor authentication.To allow mutt to use IMAP and SMTP I set a separate application password which is in the muttrc (encrypted actually but this isn't important as it worked before.)When I open mutt, imap seems to work fine.However if I try to send an email using smtp I get an error:SASL authentication failedif I press send again I get:SMTP session failed: 535 5.7.1 http://support.google.com/mail/bin/answer.py?hl=en&answer=14257However third time lucky and it sends fine. (occasionally it comes up with the last error again and works the (HowTos)