如何在 Jenkins 中设置发件人的地址? [英] How can I set the Sender's address in Jenkins?

查看:35
本文介绍了如何在 Jenkins 中设置发件人的地址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在内部从 Jenkins 向匿名 SMTP 中继发送邮件.然后,该中继通过端口 587 上的 TLS 安全地发送邮件以进行在线交换.传输工作完美,问题是 Microsoft 要求发件人地址与身份验证凭据登录名匹配,该登录名与帐户电子邮件地址相同.例如,假设这是 foo@mycompany.com.如何让 jenkins 始终从 foo@mycompany.com 发送邮件?

I'm sending mail from Jenkins to an anonymous SMTP relay internally. That relay then securely sends mail to exchange online via TLS on port 587. The transport works perfectly, the issue is that Microsoft requires the Sender address match the authentication credentials login name which is the same as the account email address. For example sake, say this is foo@mycompany.com. How can I make jenkins always send mail from foo@mycompany.com?

顺便说一句,当我说传输工作完美时,我的具体意思是我可以将格式化的电子邮件文件放入 SMTP 中继服务器上的Pickup"目录中,并且只要发件人地址是,它就会正确发送给任何收件人foo@mycompany.com.

BTW when I say the transport works perfectly what I mean specifically is that I can drop a formatted e-mail file into the "Pickup" directory on the SMTP relay server and it is properly sent to any recipient provided the From address is foo@mycompany.com.

推荐答案

Jenkins 使用 系统管理员电子邮件地址 作为电子邮件通知的发件人地址.您可以在 Manage Jenkins -> Configure System 下进行配置.这是该页面上的 Jenkins Location 标题下!此设置与电子邮件通知设置的关联并不明显,因为它不在配置页面的 电子邮件通知 标题下.

Jenkins uses the System Admin e-mail address as the sender address for e-mail notification. You can configure this under Manage Jenkins -> Configure System. This is under the Jenkins Location header on that page! It is not immediately obvious that this setting is tied to the e-mail notification settings, since it is not under the E-mail notification header on the configuration page.

这篇关于如何在 Jenkins 中设置发件人的地址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆