0

我已经验证了我的 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] 跳过观看的依赖更新;构建未配置触发器:feature-mentoring-connections-v2 #102 Finished: SUCCESS

可能出了什么问题。

4

1 回答 1

0

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

java.net.UnknownHostException: mail.authsmtp.com
  • 这是一个有效的网址吗?(你能ping通吗)
  • jenkins 可以 ping 此 URL(创建一个为您执行 ping 的测试作业)
  • 有防火墙问题吗?
于 2013-10-18T14:01:33.187 回答