繁体   English   中英

TFS和电动工具中的警报电子邮件

[英]Alert email in TFS and power tools

我对TFS和电子邮件通知有疑问。 我无法从TFS服务器收到任何用于工作项跟踪的电子邮件。 我已经在TFS服务器中的... \\ Web Services \\ Services中正确配置了web.config,并且正在使用电动工具进行警报。 但是,当我设置警报以通知我某件商品时,尚未发生任何事件。 我已经在TFS服务器中检查了事件查看器,但是没有任何有关警报(电子邮件)的信息,错误或警告。 如果我更改web.config中的emailNotificationFromAddress ,则在Team Foundation Core Web Service应用程序重新启动后,会出现一条警告,其中包括以下消息:

"TF53010: The following error has occurred in a Team Foundation component or extension:
Date (UTC): 11/18/2009 1:38:59 PM
Machine: TFS
Application Domain: /LM/W3SVC/1520656728/Root/Services-6-129030251360070129
Assembly: Microsoft.TeamFoundation.Server, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v2.0.50727
Process Details:
  Process Name: w3wp
  Process Id: 5676
  Thread Id: 3292
  Account name: RPK\TFSService

Detailed Message: TF50282: Could not connect to the following e-mail server: mail.rpk.ir 
    Error message: System.Net.Mail.SmtpException: Mailbox unavailable. The server response was: 5.7.1 Client does not have permissions to send as this sender
   at System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response)
   at System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, String from)
   at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception)
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   at Microsoft.TeamFoundation.Server.WebServiceNotification.SendOneEmail(Boolean plaintext, String to)

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp."

之后,它没有发生任何警报事件!

只是一个猜测,但是我遇到的大多数TFS问题归结为用户权限。

检查TFS正在使用哪个用户帐户(可能是TFSSERVICE或TFSREPORTS,几乎可以肯定不是您的管理员登录名)。 确保此用户帐户可以访问您正在使用的邮件服务器。

您可以使用在交换服务器上具有最小权限的帐户来解决此问题,但是该帐户确实具有“发送为”权限。 另外,您也可以仅从TFS的IP地址允许匿名在Exchange Server smtp连接器上发送。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM