I will gladly Venmo $20 USD to the first individual who can post an example below providing a working example of SMTP Gmail (over port 587) sending via docker-compose.
As seen in my last post running this command ./bin/cake passbolt send_test_email within the container results in this error:
Hey @diego, I have allowed less secure apps and ran the captcha unlock google provides. This same email account is being used on two other docker-compose applications that are sending via smtp.
My question is does gmail smtp sending work for anyone on docker-compose? If so, could anyone provide me an example of their docker-compose.yml env/passbolt.env? If it works for me, $20 via Venmo.
Those are the only email env variables you need to customize to make passbolt send emails with gmail.
Here some snip of the su -c 'bin/cake passbolt send_test_email' -s /bin/bash www-data
If you receive this email, it means that your passbolt smtp configuration is working fine.
.
[250] 2.0.0 OK 1529346783 q14-v6sm967867wmd.20 - gsmtp
> QUIT
This looks like there is a problem with your credentials or your setup on the gmail side.
Remember that docker-compose env files syntax doesn’t handle quotation and so quotes would be part of the val (just in case you are quoting the password).
For instance if you use an app password (16 digit password generated by gmail) the passbolt.env file would look like: