I have multiple gmail accounts that don't use two-factor auth and these work perfectly with Evolution. The setup wizard pre-populates all the required settings. I'm having trouble with a Gmail account that uses two-factor auth. I have Evolution 3.18.5.2 on Ubuntu 16.04.2 LTS 64 bit.
When I tried to setup a gmail account with two-factor, I naturally have no way to enter an auth token. So I setup an App password for that account in Gmail's security settings.
When I entered the email address in Evolution's account setup the wizard wasn't able to auto-fill all the settings, so I copied these from one of the other accounts that was working. I.e. receiving mail from imap.googlemail.com on port 993, SSL on dedicated port, Authentication: password. Sending mail to smtp.googlemail.com on port 465, Authentication: Login.
When I try to retrieve my mail I'm shown a 'Mail authentication request' dialog. I enter my email address and the App password that Gmail provided. Evolution continues to prompt for these details, so presumably they aren't being accepted.
How do I set this up to work correctly?