I have an identity with a dedicated outgoing SMTP server (gmail). It does not appear possible to choose OAuth2 as the authentication mechanism. I am able to set up a separate gmail account and use OAuth2 for that but I don't seem to have the option to do that with identity SMTP servers.
My gmail account forwards to an IMAP account and when I reply to those e-mails I want them to be sent from from my gmail address and sending gmail emails from an unauthorized server (not specified by SPF and not DKIM signed) is a bad idea.
At the moment I have the gmail identity set to use the gmail smtp servers but authenticate using an app password. So, everything works but I consider this less secure (and so does Google). I would greatly appreciate any tips for how to use OAuth2 for that gmail identity smtp account.
Thanks!