diff --git a/roles/web-app-friendica/templates/env.j2 b/roles/web-app-friendica/templates/env.j2 index d7da61b58b..7860027bb4 100644 --- a/roles/web-app-friendica/templates/env.j2 +++ b/roles/web-app-friendica/templates/env.j2 @@ -18,8 +18,11 @@ MYSQL_PASSWORD={{ lookup('database', application_id, 'password') | dotenv_quote SMTP={{ email.host }} SMTP_DOMAIN={{ email.domain }} SMTP_PORT={{ email.port }} +SMTP_AUTH={{ email.auth | on_off }} +{% if email.auth | bool %} SMTP_AUTH_USER={{ email.username }} SMTP_AUTH_PASS={{ email.password }} +{% endif %} SMTP_TLS={{ 'on' if email.tls else 'off' }} SMTP_STARTTLS={{ 'on' if email.start_tls else 'off' }} SMTP_FROM=no-reply