Sending mails via OAuth SMTP

I'd like to have Plone send mails through a mail server that requires OAuth2 for SMTP connections. Has anyone ever done this? Is there a plugin or something?

Cheers, Manuel

I don't think zope.sendmail can do that. At least I do not find it here zope.sendmail/src/zope/sendmail at master · zopefoundation/zope.sendmail · GitHub ... Maybe this helps you writing your own oauth smtp code: OAuth2DotPyRunThrough · google/gmail-oauth2-tools Wiki · GitHub

Maybe you can setup a local postfix as a relay and let postfix do the Oauth2 authentication on the remote SMTP server, see: Setting Up OAUTH2 Support for Fetchmail and Postfix

Hi, which solution did you finally use ?

We set up our own mail server without OAuth.