title: Rundeck Gmail SMTP not Working - smtp.gmail.com Unknown Host
body: <p>I want to configure Rundeck to allow e-mail notifications.</p>
  
  <p>My <code>rundeck-config.properties</code> is:</p>
  
  <pre><code>grails.mail.host = "smtp.gmail.com"
  grails.mail.username = "name@domain.com"
  grails.mail.port = 465
  grails.mail.password = "******"
  grails.mail.props = ["mail.smtp.starttls.enable":"true","mail.smtp.auth":"true","mail.smtp.socketFactory.port":"465","mail.smtp.socketFactory.fallback":"false"]
  </code></pre>
  
  <p>When I run the Job, the error I get is:</p>
  
  <pre><code>2016-05-05 14:49:30,557 ERROR NotificationService - Error sending notification email to me@gmail.com for Execution 11: Mail ser
  ver connection failed; nested exception is com.sun.mail.util.MailConnectException: Couldn't connect to host, port: "smtp.gmail.com", 465; ti
  meout -1;
    nested exception is:
          java.net.UnknownHostException: "smtp.gmail.com". Failed messages: com.sun.mail.util.MailConnectException: Couldn't connect to host,
  port: "smtp.gmail.com", 465; timeout -1;
    nested exception is:
          java.net.UnknownHostException: "smtp.gmail.com"
  </code></pre>
  
  <p>I tried everything I could find on Google but the error keeps the same.</p>
  
  <p>I also tried to <code>telnet smtp.gmail.com 465</code> and it works</p>
  
  <p>Could someone help me?</p>