Docker run Email config problem Passbolt CE

Hello,

Here my config:
Ubuntu 18.04
Passbolt with docker CE
I have a smtp server (10.0.0.200)

When I try to run this command:

docker run --name passbolt --net passbolt_network --restart always --mount type=bind,source=/var/passbolt/gpg,target=/var/www/passbolt/config/gpg \
             -p 443:443 \
             -p 80:80 \
             -e DATASOURCES_DEFAULT_HOST=mariadb1 \
             -e DATASOURCES_DEFAULT_PASSWORD=%my_password% \
             -e DATASOURCES_DEFAULT_USERNAME=userdb \
             -e DATASOURCES_DEFAULT_DATABASE=passboltdb \
           -e APP_FULL_BASE_URL=https://passbolt.mydomain.ch \
             -e EMAIL_TRANSPORT_DEFAULT_HOST='10.0.0.200' \
           -e EMAIL_DEFAULT_FROM='passbolt@mydomain.ch' \
             passbolt/passbolt:latest

Passbolt use the old certificats, I have no problem to login etc. but It doesn’t reconfigure my SMTP config.
I check that into the passbolt container here: /var/www/passbolt/config/app.php

Do you have any idea what I do false?

Thank you in advance!

Bryan

try bashing into the container and see what error it gives:

these are the environmental variables I currently use (through GMAIL)

            value: "passbolt@domain.com"
          - name: EMAIL_TRANSPORT_DEFAULT_HOST
            value: "smtp-relay.gmail.com"
          - name: EMAIL_TRANSPORT_DEFAULT_PORT
            value: "587"
          - name: EMAIL_TRANSPORT_DEFAULT_TLS
            value: "true"

Are you using default port 25?

Hello,
when I bash into :

and I put manually my datas it works fine! But I can’t create the conainer directly with the good variables

When I used your config, it seems to work, I bashed in to double check the variables with printenv, then i used the CLI to send out a test email (obviously failed, but it shows correct env variables)

root@b26e01dbf16a:/var/www/passbolt# printenv
HOSTNAME=b26e01dbf16a
PHP_EXT_DIR=/usr/src/php/ext
PHP_VERSION=7.3.8
PHP_MD5=
PHP_INI_DIR=/usr/local/etc/php
GPG_KEYS=CBAF69F173A0FEA4B537F470D66C9593118BCCB6 F38252826ACD957EF380D39F2F7956BC5DA04B5D
DATASOURCES_DEFAULT_USERNAME=passbolt
PHP_LDFLAGS=-Wl,-O1 -Wl,--hash-style=both -pie
PWD=/var/www/passbolt
DATASOURCES_DEFAULT_PASSWORD=passbolt
HOME=/root
EMAIL_TRANSPORT_DEFAULT_HOST=10.0.0.200
EMAIL_DEFAULT_FROM=passbolt@mydomain.ch
PECL_BASE_URL=https://pecl.php.net/get
PHP_SHA256=f6046b2ae625d8c04310bda0737ac660dc5563a8e04e8a46c1ee24ea414ad5a5
PHPIZE_DEPS=autoconf 		dpkg-dev 		file 		g++ 		gcc 		libc-dev 		make 		pkg-config 		re2c
TERM=xterm
PHP_URL=https://www.php.net/get/php-7.3.8.tar.xz/from/this/mirror
DATASOURCES_DEFAULT_DATABASE=passbolt
PHP_EXTRA_CONFIGURE_ARGS=--enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi
SHLVL=1
DATASOURCES_DEFAULT_HOST=8517f3db7ebe
PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHP_ASC_URL=https://www.php.net/get/php-7.3.8.tar.xz.asc/from/this/mirror
PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2
APP_FULL_BASE_URL=https://passbolt.mydomain.ch
_=/usr/bin/printenv

testing sending email

root@b26e01dbf16a:/var/www/passbolt# ./bin/cake passbolt send_test_email --recipient=youremail@domain.com

     ____                  __          ____  
    / __ \____  _____ ____/ /_  ____  / / /_ 
   / /_/ / __ `/ ___/ ___/ __ \/ __ \/ / __/ 
  / ____/ /_/ (__  |__  ) /_/ / /_/ / / /    
 /_/    \__,_/____/____/_.___/\____/_/\__/   

 Open source password manager for teams
---------------------------------------------------------------
 Debug email shell
---------------------------------------------------------------

Email configuration
---------------------------------------------------------------
Host: 10.0.0.200
Port: 25
Username: 
Password: *********
TLS: false

Sending email from: passbolt@mydomain.ch
Sending email to: youremail@domain.com
---------------------------------------------------------------

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.