Set up email for your CollabNet SourceForge Enterprise 5.1 site

After you have installed and configured CollabNet SourceForge Enterprise 5.1 in your VMware image, enable the site to send out emails to users.

You enable the site's email capacity by pointing to the appropriate DNS server.
  1. Identify the IP address of your DNS server. Use one of these methods:
    • Ask your local system administrator.
    • Inspect the resolv.conf file.
      • cat /etc/resolv.conf | grep nameserver | awk '{print $2}'
  2. Make a backup copy of the configuration file that SourceForge uses to deliver email.
    • cd /usr/local/sourceforge/runtime/james/apps/james/SAR-INF/
    • cp config.xml config.old
  3. In the config.xml file, find the dnsservers block and change the server tag to the IP address of your server. It should look like this:
      <dnsserver>
       <servers>
        <server>your.ip.address.here</server>
       </servers>
    
  4. Save the file and exit.
  5. Restart your SourceForge site.
    • /etc/init.d/collabnet stop all
    • /etc/init.d/collabnet start all
  6. Log into your site and click Admin > System Tools . The Email Server entry should read OK.
    Tip: If your Email Server is not OK, verify that the config.xml file is formatted correctly.