简体   繁体   English

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

[英]Alert email in TFS and power tools

I have a problem with TFS and email notifications. 我对TFS和电子邮件通知有疑问。 I can not receive any emails from TFS server for work item tracking. 我无法从TFS服务器收到任何用于工作项跟踪的电子邮件。 I correctly have configured web.config in ...\\Web Services\\Services in TFS server and I am using power tools for alert. 我已经在TFS服务器中的... \\ Web Services \\ Services中正确配置了web.config,并且正在使用电动工具进行警报。 But when I set an alert to notify me for an item, any event haven't happened yet. 但是,当我设置警报以通知我某件商品时,尚未发生任何事件。 I have checked event viewer in TFS server but didn't have any information, error or warning for my alert(email). 我已经在TFS服务器中检查了事件查看器,但是没有任何有关警报(电子邮件)的信息,错误或警告。 If I change emailNotificationFromAddress in web.config, after Team Foundation Core Web Service Application restart a warning happens including this message: 如果我更改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."

and after that, It hadn't happened any event for any alerts! 之后,它没有发生任何警报事件!

Just a guess, but most TFS problems I've encountered boil down to user privileges. 只是一个猜测,但是我遇到的大多数TFS问题归结为用户权限。

Check which user account TFS is using (it's likely to be TFSSERVICE or TFSREPORTS, and almost certainly won't be your administrator login). 检查TFS正在使用哪个用户帐户(可能是TFSSERVICE或TFSREPORTS,几乎可以肯定不是您的管理员登录名)。 Make sure this user account has access to the mail server you're using. 确保此用户帐户可以访问您正在使用的邮件服务器。

You can solve this using an account with minimal rights on exchange server, but that do have the 'send as' rights. 您可以使用在交换服务器上具有最小权限的帐户来解决此问题,但是该帐户确实具有“发送为”权限。 Alternatively you can allow anonymous send on your exchange server smtp connector ONLY from the ip address of the TFS. 另外,您也可以仅从TFS的IP地址允许匿名在Exchange Server smtp连接器上发送。

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

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