Hudson邮件服务器不工作

时间:2013-10-18 05:04:38

标签: jenkins hudson jenkins-plugins hudson-plugins

我已经验证了我的AuthSmtp设置。我确信一切都是完美的。无法确定无法发送邮件的原因。

我运行所有测试并且Hudson尝试发送邮件后得到此异常

ERROR: Unknown SMTP host: mail.authsmtp.com
javax.mail.MessagingException: Unknown SMTP host: mail.authsmtp.com;
nested exception is:
    java.net.UnknownHostException: mail.authsmtp.com
    at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1932)
    at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:638)
    at javax.mail.Service.connect(Service.java:295)
    at hudson.tasks.Mailer$DescriptorImpl.send(Mailer.java:509)
    at hudson.tasks.Mailer$DescriptorImpl.send(Mailer.java:476)
    at hudson.tasks.MailSender.execute(MailSender.java:91)
    at hudson.tasks.Mailer.perform(Mailer.java:112)
    at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:34)
    at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:646)
    at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:624)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:600)
    at hudson.model.Build$RunnerImpl.post2(Build.java:163)
    at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:566)
    at hudson.model.Run.run(Run.java:1414)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:40)
    at hudson.model.ResourceController.execute(ResourceController.java:82)
    at hudson.model.Executor.run(Executor.java:137)
    Caused by: java.net.UnknownHostException: mail.authsmtp.com
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:175)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:385)
at java.net.Socket.connect(Socket.java:546)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:286)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:231)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1900)
... 16 more

[DEBUG]跳过监视的依赖关系更新; build未配置触发器:feature-mentoring-connections-v2#102 完成:成功

可能出错的地方。

1 个答案:

答案 0 :(得分:0)

找不到服务器“mail.authsmtp.com”

java.net.UnknownHostException: mail.authsmtp.com
  • 这是一个有效的网址吗? (你可以ping它)
  • jenkins可以ping这个URL(创建一个为你做ping的testjob)
  • 是否存在防火墙问题?