Bil*_*oks 7 email smtp jenkins
我在Windows 7机箱上安装了Jenkins ver 1.524,我正在尝试配置电子邮件,但"测试配置"报告错误.Jenkins在我自己的域帐户下作为服务运行.
我的设置如下:
SMTP server: smtp.corpdomain.com
Default user email suffix: @corpdomain.com
Not using authentication
Not using SSL
SMTP port: 25
Reply-To Address: tools@corpdomain.com
Charset: UTF-8
Run Code Online (Sandbox Code Playgroud)
当我测试配置时,我通常会得到以下异常:
javax.mail.MessagingException: Could not connect to SMTP host: smtp.amazon.com, port: 25;
nested exception is:
java.net.ConnectException: Connection timed out: connect
Run Code Online (Sandbox Code Playgroud)
然而,每隔一段时间我就收到以下信息:
com.sun.mail.smtp.SMTPSendFailedException: 553 5.1.8 <nobody@nowhere>... Domain of sender address nobody@nowhere does not exist
;
nested exception is:
com.sun.mail.smtp.SMTPSenderFailedException: 553 5.1.8 <nobody@nowhere>... Domain of sender address nobody@nowhere does not exist
Run Code Online (Sandbox Code Playgroud)
但是,我可以通过python脚本和java(使用javax.mail)在没有身份验证的情况下从命令行发送邮件而且没有错误,并且我能够在端口25上telnet到SMTP服务器,所以我看不到它是如何成为防火墙问题的.
另一个可能相关的注意事项:当我尝试通过Jenkins Web界面安装插件时,我收到了一个403响应URL" http://updates.jenkins-ci.org/update-center.json? uctest ".但是,我可以从同一台机器上的浏览器连接到该URL.
这可能是Tomcat配置问题吗?我不熟悉Tomcat,所以我不确定从哪里开始寻找.也许是我错过的Jenkins配置?还有其他想法吗?
提前致谢!
Pau*_*nry 18
FWIW nobody @ nowhere地址是Jenkins为系统管理员电子邮件地址附带的默认地址(在发送电子邮件时用作发件人地址)
你可以改变它
管理Jenkins>配置系统> Jenkins位置
首先,使用465端口
其次,在 AWS SES 中验证您的电子邮件,然后从此处更改默认发送电子邮件:Jenkins -> 配置系统 -> Jenkins 位置 -> 系统管理员电子邮件地址
| 归档时间: |
|
| 查看次数: |
6732 次 |
| 最近记录: |