title: Emails with Airflow
body: <p>Do I have to do any additional setup in order to get apache-airflow to send me emails on task failure. I have the following in my config file (unchanged from the defaults):</p>
  
  <pre><code>[email]
  email_backend = airflow.utils.email.send_email_smtp
  
  
  [smtp]
  # If you want airflow to send emails on retries, failure, and you want to use
  # the airflow.utils.email.send_email_smtp function, you have to configure an
  # smtp server here
  smtp_host = localhost
  smtp_starttls = True
  smtp_ssl = False
  # Uncomment and set the user/pass settings if you want to use SMTP AUTH
  # smtp_user = airflow
  # smtp_password = airflow
  smtp_port = 25
  smtp_mail_from = airflow@example.com
  </code></pre>
  
  <p>and in my task I have</p>
  
  <pre><code>'email': ['my.email@domain.co.uk'],
  'email_on_failure': True,
  </code></pre>
  
  <p>But it is not sending me emails when the task fails.</p>
  
  <p>I have seen this question: <a href="https://stackoverflow.com/questions/44573923/how-do-i-setup-airflows-email-configuration-to-send-an-email-on-errors">How do I setup Airflow&#39;s email configuration to send an email on errors?</a> but I didn't really understand what actions to take from it. I'm just looking for the basics on what needs to be done before airflow will send emails. Do I have to configure my own smtp server or should it work out the box?</p>
  
  <p>I'm running apache-airflow 1.9.0 on CentOS</p>