Content
Send mail by external SMTP from docker ; OP 6.0
Added by Damian Kraków over 8 years ago
Hi
I have problem with send email from docker with external SMTP server (on another machine with different IP).
I run by this configuration:
docker run -d -e EMAIL_DELIVERY_METHOD=smtp -e SMTP_ADDRESS=ADDRESS_MAIL_SERVER -e SMTP_PORT=587 -e SMTP_DOMAIN=ADDRESS_MAIL_SERVER -e SMTP_AUTHENTICATION=login -e SMTP_ENABLE_STARTTLS_AUTO=true -e SMTP_USER_NAME=“openproject@DOMAIN” -e SMTP_PASSWORD=“password” -e SMTP_OPENSSL_VERIFY_MODE=none -p 9090:80 —name openproject -e SECRET_KEY_BASE=secret -v /openproject/pgdata:/var/lib/postgresql/9.4/main -v /openproject/logs:/var/log/supervisor -v /openproject/static:/var/db/openproject openproject/community:6.0
Everything is ok, but I can’t send test mail.
On machine with docker I don’t install postfix - I think that I don’t need while use external SMTP.