Mac Mail keeps losing the 2 factor auth passwords for Gmail
I had the same problem. I updated to Sierra and then Mail kept asking for password but did not help when I re-entered them. I dug deeper and found the ports needed to be corrected (in Mail Preferences). Did that and it works now.