Friday 27 April 2012

How to change smtp server in TFS2008

Team Foundation Server 2008 is not the most user-friendly application to configure. Here is how to change the smtp server it is using for alerts and other outgoing emails

It is done by changing standard .Net smtp configuration section in the following files, change the host attribute on smtp/network node:

C:\Program Files\Microsoft Visual Studio 2008 Team Foundation Server\Web Services\Services\web.config
C:\Program Files\Microsoft Visual Studio 2008 Team System Web Access\Web\web.config

<configuration>...  <system.net>    <mailSettings>      <smtp deliveryMethod="network" from="teamserver@mydomain.net">        <network host="my.mail.server" port="25" defaultCredentials="true" />      </smtp>    </mailSettings>  </system.net>

No comments:

Post a Comment