File tree Expand file tree Collapse file tree 4 files changed +283
-67
lines changed
Expand file tree Collapse file tree 4 files changed +283
-67
lines changed Original file line number Diff line number Diff line change @@ -756,15 +756,13 @@ from_email = alertflow@airflow.com
756756# If you want airflow to send emails on retries, failure, and you want to use
757757# the airflow.utils.email.send_email_smtp function, you have to configure an
758758# smtp server here
759- smtp_host = localhost
759+ smtp_host = $AIRFLOW__SMTP_HOST
760760smtp_starttls = True
761761smtp_ssl = False
762- # Example: smtp_user = airflow
763- # smtp_user =
764- # Example: smtp_password = airflow
765- # smtp_password =
766- smtp_port = 25
767- smtp_mail_from = airflow@example.com
762+ smtp_user = $AIRFLOW__SMTP_USER
763+ smtp_password = $AIRFLOW__SMTP_PASSWORD
764+ smtp_port = $AIRFLOW__SMTP_PORT
765+ smtp_mail_from = $AIRFLOW__SMTP_MAIL_FROM
768766smtp_timeout = 30
769767smtp_retry_limit = 5
770768
Original file line number Diff line number Diff line change @@ -17,6 +17,11 @@ _AIRFLOW_WWW_USER_LAST_NAME=${_AIRFLOW_WWW_USER_LAST_NAME}
1717
1818# Email
1919EMAIL_MAIN=${ EMAIL_MAIN}
20+ AIRFLOW__SMTP_HOST=${ AIRFLOW__SMTP_HOST}
21+ AIRFLOW__SMTP_USER=${ AIRFLOW__SMTP_USER}
22+ AIRFLOW__SMTP_PASSWORD=${ AIRFLOW__SMTP_PASSWORD}
23+ AIRFLOW__SMTP_PORT=${ AIRFLOW__SMTP_PORT}
24+ AIRFLOW__SMTP_MAIL_FROM=${ AIRFLOW__SMTP_MAIL_FROM}
2025
2126# External Postgres Connection
2227# https://airflow.apache.org/docs/apache-airflow/stable/howto/connection.html
You can’t perform that action at this time.
0 commit comments