我想将 Rundeck 配置为允许电子邮件通知。
我rundeck-config.properties
的是:
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"]
当我运行作业时,我得到的错误是:
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"
我尝试了在 Google 上可以找到的所有内容,但错误仍然存在。
我也试过了telnet smtp.gmail.com 465
,它有效
有人可以帮助我吗?