I am unable to get Team alerts for TFS 2012 to work. My question is basically the same as this one (TFS 2012 Team Alerts do not work). But since i am able to elaborate a bit in my question i decided to ask it again.
- Personal alerts DO work, so it is not an obvious smtp server error
- Team alerts DO NOT work
- Our TFS is not connectd to an active directory
- All users have specified "Preferred email" in their preferences
- Users are assigned to teams as specified by my alerts
This is an example of a personal alert that works fine
And here is an example of a team alert that does not work
The setup is basically the same except for the "wildcard" parameters in the filters
Where does TFS pick [Members' Default Alert Address]? Is that not the same as Preferred email?
Any pointers would be appreciated
Addendum
Looking at the Tfs cammand prompt tool (tfsconfig configuremail) and Administration Console raises further questions
Team Foundation Server Administration Console shows enabled alerts and correct settings
But the command prompt tool, tfsconfig configuremail says the alerts are disabled
I have found no way to acivate alerts with the command prompt tool (http://msdn.microsoft.com/en-us/library/vstudio/dd236903.aspx), only the checkbox in Administration Console
Main clues as of now:
- Where do TFS pick [Members' Default Alert Address]?
- How come there is a mismatch of enabled/disabled alerts?
Posting this as an additional step of verification if the aforementioned does not help. I'm working with TFS 2012. I initially step through the steps outlined above and got email notifications working, however after sometime it simply stopped.
After repeating the steps above and having no success I referred to the event viewer Applications and Service Logs --> Microsoft-Team Foundation Server --> Debug as Urban mentions. I found thousands of errors relating to the TFSJobAgent. I opted to restart the service: "Visual Studio Team Foundation Background Job Agent" via the Services.msc via Administrative Tools, and all pending email alerts were immediately received.
I initially searched the services list looking for something starting with TFS after coming across this Microsoft documentation: http://msdn.microsoft.com/en-us/library/ms253108.aspx I found related service.
After following all of the instructions here (and finding that weird undocumented enabled/disabled configuration as well), I still had the same problem.
I then read this question - it seems that the answer is the same: without Active Directory, TFS will not send team alerts. Users can set their preferred email address, which TFS will then sync to Active Directory as the "[Member's default email address]". If no Active Directory is found, that sync won't work, which means their default email is blank. Blank email means no alert sent (which means no error about the sending failing either).
So, unless someone writes a plugin (or the TFS team changes how it works under the hood), you need Active Directory for team alerts to work.
I had the same issue. Your internal smtp server (only sends internal e-mails) does not require authentication.
I set as username: anonymous Password: 123
I was suprised that it worked ;-).
Just host SMTP on the local machine (TFS machine) and put the IP of local machine in Relay section along with 127.0.0.1.
I was struggling for the error for hours and finally it fixed up my issue...
To send email notifications, you must configure the following in your deployment, pleae make sure Your firewall must be configured to allow communications between Team Foundation Server and your SMTP server.
The service account for Team Foundation Server (referred to by the placeholder TFSService) must either be a domain account with permission to send email, your SMTP server must be configured to allow anonymous senders to send email, or you must have previously created an account specifically to use as the email account for alerts.
If you used a system account (such as Network Service) as the service account for Team Foundation Server, you must either configure your SMTP server to allow anonymous senders to send email, or you must make sure that you configure the integrated authentication settings appropriately for your deployment. If you do not, email notifications will not be sent.
For more information, please refer to http://msdn.microsoft.com/en-us/library/ms400808.aspx
I have decided to answer this one myself, mainly because it might not be a proper solution for a tfs without an active directory (based on answer/comments in this post)
These are the steps i have taken to make sure that team alerts are sent
tfsconfig configuremail /Enabled:True