passbolt_docker icon indicating copy to clipboard operation
passbolt_docker copied to clipboard

SSL e-mail issue

Open ArtPixWebdesign opened this issue 4 years ago • 4 comments

using docker passbolt/passbolt:2.13.5-debian According to the documentation https://help.passbolt.com/configure/email/setup I was unable to send e-mails over SSL with my provider (non-SSL was working well).

The debug : trying the send email test https://help.passbolt.com/faq/hosting/why-email-not-sent inside the container, I saw that it was always trying with TLS and not SSL

The root cause : semms like the docker environnement variable EMAIL_TRANSPORT_DEFAULT_TLS=null was not processed correctly in the container (eq true)

The solution : I had to edit the php file inside the running container (docker exec -it passbolt...) sed -i "s/'tls' => env('EMAIL_TRANSPORT_DEFAULT_TLS', null),/'tls' => null,/" /var/www/passbolt/config/app.php to make it work...

ArtPixWebdesign avatar Jan 24 '21 20:01 ArtPixWebdesign

@ArtPixWebdesign Can you provide an example of your SSL environment variable settings that were not working?

garrettboone avatar Jan 25 '21 21:01 garrettboone

I think I just had a similar issue. Though it may be that I'm a little confused with the terminology. Is the environment variable EMAIL_TRANSPORT_DEFAULT_TLS supposed to specify if an encryption is used at all, or just if TLS or SSL is used? Like, the default value is null, does that mean, that the e-mails are sent unencrypted or are they just sent via SSL?

I think the documentation is not clear here, as the description just says 'Set tls'.

befocken avatar May 12 '21 22:05 befocken

@befocken In the cakephp docs here, it says that false will be "not TLS" and if SSL is desired, to include ssl:// in the host field.

garrettboone avatar Jul 22 '21 23:07 garrettboone

It appears this can be closed.

almereyda avatar Aug 01 '22 13:08 almereyda