Mail App in Mac (unable to Verify Account & Password after upgrade to OS Sierra
I had this - I found that if you put your password into the little dialogues that Mail pops up, it always fails. If you instead go into Mail settings and enter the password in the server settings tab for the account and save, it works. 

Incidentally I have yet to see a config that works correctly with "Automatically manage connection settings" enabled.