Unable To Relay Mail Through Gmail Anymore
Hi,
I have my CentOS7 sendmail configured to relay outgoing system e-mail through my gmail account.
The setup recently stopped working. Gmail SMTP keeps returning “service unavailable”.
I think it has something to do with the recent changes in Gmail authentication procedures.
Does anyone know how to make the relaying work again? I could not find anything on the Net.
Thanks Frank
4 thoughts on - Unable To Relay Mail Through Gmail Anymore
I’m assuming you are pushing the mail to gmail through port 465 or
587. If that’s the case, if you aren’t already, you will need to set up and use a google “app password”. Alternatively, get whatever you are using on the CentOS side that authenticates with gmail to support OAuth 2.
You can no longer use your google side-wide password to authenticate
3rd party apps with gmail so need to use one of the alternatives in its place.
I would actually expect you to get an authentication failure message so they may have changed something else that disabled this approach.
I can send mail from my C7 box (via sendmail) to myself at my gmail account using gmail’s SMTP server. I don’t very often forward mail THRU
gmail to other sites, so I don’t know if that has changed.
Am 05.08.22 um 16:39 schrieb Frank Bures:
https://developers.google.com/gmail/imap/xoauth2-protocol
—
Leon
“app password” has done the job.
Thanks a bunch Frank