bokysan / docker-postfix

Multi architecture simple SMTP server (postfix null relay) host for your Docker and Kubernetes containers. Based on Debian/Ubuntu/Alpine.
MIT License
555 stars 152 forks source link

Gmail not working? #187

Closed Ajtak closed 8 months ago

Ajtak commented 8 months ago

Hello, Gmail communication not working? I'm getting this error:

CLIENT_ID, CLIENT_SECRET, ACCESS_TOKEN, REFRESH_TOKEN I have setted correctly.

INFO    postfix/smtp[256]: 2C35B61E6B16: to=<abc@abc.cz>, relay=smtp.gmail.com[142.250.102.108]:587, delay=551, delays=551/0.13/0.23/0, dsn=4.7.0, status=deferred (SASL authentication failed; cannot authenticate to server smtp.gmail.com[142.250.102.108]: bad protocol / cancel)
bokysan commented 8 months ago

Hi,

It's difficult for me to help without having exact steps to reproduce, e.g:

I did find this in literary a minute of Googling -- have you tried all proposed solutions and verified you have correct permissions and everything else?

Have a lovely day, B

Ajtak commented 8 months ago

Version of the image: latest-alpine flavour (Debian / Ubuntu / Alpine): alpine Env Configuration: image

Ajtak commented 8 months ago

Solved, I had generated a key with the wrong scope.