MSDN has an article about
How to: Configure SMTP Server and E-mail Notification Settings in the Services Web.Config File
1 TFS will use the service account(TFSService) to connect to SmtpServer, so TFSService must be a valid member of your SmtpServer, or your SmtpServer allow anonymous senders to send e-mail.
2 Edit the C:\Program Files\Microsoft Visual Studio 2008 Team Foundation Server\Web Services\Services\Web.config
<appSettings> <add key="ConnectionString" value="Data Source=[Server];Initial Catalog=TfsIntegration;Integrated Security=True;Persist Security Info=False;Application Name=TeamFoundation" /> <add key="eventingEnabled" value="true" /> <add key="DetailedExceptions" value="false" /> <add key="emailNotificationFromAddress" value="****@*****.***" /> <add key="smtpServer" value="[smtpHost]" /> <add key="enableEmails" value="true" /> </appSettings>
3 Reset IIS