You are browsing the latest version of the documentation which is not released yet. See the current stable version instead.

How to set SMTP Server Container

For sending emails from our application we use SMTP server container in separate Kubernetes pod so we need to set some additional settings as permission to be able to send emails from webserver-php-fpm pod.

For this purpose, we have set RELAY_NETWORKS ENV variable with all private networks that can be created by docker into /project-base/kubernetes/deployments/smtp-server.yml for pod of SMTP container (#777), for instance:

image: namshi/smtp:latest
    value: :