如何使用 Exchange 服务器发布巡航控制电子邮件

发布于 2024-07-22 17:43:14 字数 298 浏览 2 评论 0原文

我正在尝试设置 Cruise Control 来构建我的项目并检查构建失败。 我已经把大部分事情做好了。 我希望收到有关构建成功或失败的电子邮件。

但是,我处于相当受限的公司环境中,因此我没有可用的开放端口的 SMTP 服务器。 我们使用 Exchange/Outlook 发送电子邮件。 如何让 Cruise Control 使用 Exchange Server 发送电子邮件来发布结果?

I'm trying to set up Cruise Control to build my project and check for build failures. I've got most things working. I'd like emails sent to me on build success or failure.

However, I'm in a fairly restricted corporate environment, so I don't have an SMTP server with open ports available. We use exchange/outlook to send emails. How do I get Cruise Control to publish results using Exchange Server to send the emails?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

绝影如岚 2024-07-29 17:43:14

没有人回答,所以这是我迄今为止发现的。 如果 Exchange 服务器配置为允许 SMTP 或经过身份验证的 SMTP,那么您可以将其视为 SMTP 服务器。 但是,对我来说,我的服务器只允许 NLTM 身份验证。 JavaMail 不支持此功能,因此很难获取信息。 出版商予以支持。

唯一的方法似乎是定制发布商。 这将允许使用 Java 和交换之间的第三方链接。 这里有此类第三方库的列表:
http://java.sun.com/products/javamail/Third_Party.html

J-Integra(商业)和 j-xchange(LGPL) 看起来很有前途。 电子邮件发布者是开源的,并且可以进行子类化,因此这应该会让生活变得更轻松。 我目前计划使用此选项。

No-one has answered, so here is what I've discovered so far. If the exchange server is configured to allow SMTP or authenticated SMTP then you can just treat it as an SMTP server. However, for me my server only allows NLTM authentication. JavaMail does not support this, so it is hard to get the <email> publisher to support it.

The only way seems to be a custom publisher. This will then allow a third party link between Java and exchange to be used. There are a list of such 3rd party libraries here:
http://java.sun.com/products/javamail/Third_Party.html

J-Integra (commercial) and j-xchange(LGPL) look promising. The email publisher is open source and can be subclassed so this ought to make life easier. I currently plan to use this option.

人间☆小暴躁 2024-07-29 17:43:14

一种选择(如果您运行任何 *nix 版本)可能是在运行 Cruisecontrol 的计算机上设置邮件中继(后缀?),然后将邮件中继到经过适当身份验证的真实邮件服务器。

One option, if you run any *nix flavour) could be that you setup a mail relay (postfix?) on the machine where cruisecontrol is running that then will relay the mail to your real mail server with proper autentication.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文