One trouble I had while configuring for my gmail account was the lacking support for Google's XOAUTH extension for SMTP and IMAP authentication. After a little research, I found that you can create app passwords[0] in Google after you've activated 2FA. This allowed me to use standard PLAIN authentication with passwords that don't allow for management of the whole google account.
[0] - https://myaccount.google.com/apppasswords