I have a Postfix server that does outbound-only relay in a small network via a smarthost. There is no incoming mail (so no Dovecot), and outbound is restricted to a very small set of clients.

The relay has to go through GMail, which I have had working with user/password auth for several years. That's going away and GMail will require OAUTH2.

I've followed the thread at
https://www.mail-archive.com/postfix-users@postfix.org/msg104614.html
but solutions seem to require Dovecot, which I'd rather not add to this server.

I also found, from 2022,
https://www.mail-archive.com/postfix-users@postfix.org/msg97342.html
part of which is

> Weitse Venema:
>> Gino Ferguson:
Today's question: we were asked if we can send emails using oauth2 instead of basic auth.

The best I could find is this git repo: https://github.com/tarickb/sasl-xoauth2


Thanks, I had not seen this. Rhey have examples for Gmail and Office365.

Does anyone have any experience with this or with any other solutions?

There is an earlier effort at
http://mmogilvi.users.sourceforge.net/software/oauthbearer.html

Looks like tarickb is the way to go.

Is the last sentence still true if one doesn't want to install Dovecot?

The github repo shows recent commits, so it looks like it's still being maintained.

Thanks for any insight.

--
Jim Garrison
j...@acm.org

_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to