簡體   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