2015-07-21 106 views
0

我試圖使用擴展Jenkins電子郵件插件從Jenkins發送電子郵件。 這裏是作業的輸出:Jenkins未能發送電子郵件

Performing post-build step 
Checking if email needs to be generated 
Email was triggered for: Always 
Email was triggered for: Always 
Sending email for trigger: Always 
messageContentType = text/plain; charset=UTF-8 
Adding recipients from project recipient list 
Adding recipients from trigger recipient list 
Setting In-Reply-To since last build was not successful 
Successfully created MimeMessage 
Sending email to: [email protected] 
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc] 
DEBUG SMTP: useEhlo true, useAuth true 
DEBUG SMTP: useEhlo true, useAuth true 
DEBUG SMTP: trying to connect to host "webmail-apac.nsn-intra.net", port 465, isSSL false 

MessagingException message: Could not connect to SMTP host: webmail-apac.nsn-intra.net, port: 465 
Sending email for trigger: Always 

messageContentType = text/plain; charset=UTF-8 
Adding recipients from project recipient list 
Adding recipients from trigger recipient list 
Setting In-Reply-To since last build was not successful 

沒有,這樣的問題:我怎麼能檢查西隧是什麼問題? 我只看到: MessagingException消息:

"Could not connect to SMTP host: webmail-apac.nsn-intra.net, port: 465" 

我如何調查的原因是什麼?

回答

1

我認爲這是一個網絡問題,您的詹金斯服務器無法端口465

上達到您的SMTP服務器,您可以啓動下面的命令來檢查端口是開放的? (您詹金斯的服務器上,與詹金斯帳戶運行詹金斯應用程序)

telnet webmail-apac.nsn-intra.net 465 

如果該端口是開放的,你應該看到這樣的響應:

➜ ~ webmail-apac.nsn-intra.net 465 
Trying XXX.XXX.XXX.XXX... 
Connected to webmail-apac.nsn-intra.net. 
Escape character is '^]'. 

如果該端口未打開,嘗試禁用Jenkins服務器上的防火牆。

+0

telnet:連接到地址X.X.X.X:連接超時 –

+0

到端口25:連接被拒絕。所以這是防火牆問題? –

+0

是的我想,你的jenkins服務器在Linux或Windows上運行? –