-
Notifications
You must be signed in to change notification settings - Fork 16.6k
Closed
Description
Why do I need TLS? This requires setting it up for any smtp server, even one I run locally.
2015-06-19 13:20:09,793 - root - INFO - Executing <Task(EmailOperator): email_pipeline_start> for 2010-10-10 00:00:00
2015-06-19 13:20:10,459 - root - ERROR - STARTTLS extension not supported by server.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/airflow/models.py", line 746, in run
task_copy.execute(context=self.get_template_context())
File "/usr/local/lib/python2.7/site-packages/airflow/operators/email_operator.py", line 36, in execute
send_email(self.to, self.subject, self.html_content)
File "/usr/local/lib/python2.7/site-packages/airflow/utils.py", line 339, in send_email
send_MIME_email(SMTP_MAIL_FROM, to, msg)
File "/usr/local/lib/python2.7/site-packages/airflow/utils.py", line 349, in send_MIME_email
s.starttls()
File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/smtplib.py", line 644, in starttls
raise SMTPException("STARTTLS extension not supported by server.")
SMTPException: STARTTLS extension not supported by server.
2015-06-19 13:20:10,503 - root - ERROR - Failed to send email to: ['[email protected]']
2015-06-19 13:20:10,503 - root - ERROR - STARTTLS extension not supported by server.
2015-06-19 13:20:10,503 - root - ERROR - STARTTLS extension not supported by server.
Traceback (most recent call last):
File "/usr/local/bin/airflow", line 10, in <module>
args.func(args)
File "/usr/local/lib/python2.7/site-packages/airflow/bin/cli.py", line 195, in test
ti.run(force=True, ignore_dependencies=True, test_mode=True)
File "/usr/local/lib/python2.7/site-packages/airflow/models.py", line 749, in run
raise e
smtplib.SMTPException: STARTTLS extension not supported by server.
I also tested this out with our production postfix server, and that didn't work for a different reason, which is not apparent yet. Which email SMTP servers have you tried this out with? Examples would be very helpful.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels