James configuration if Git is on a separate server

You must set the JAMES_ACCEPTED_RELAYS token with the Git server's IP address if you want Git notification emails to be sent to the TeamForge application server.

See JAMES_ACCEPTED_RELAYS for more information.
  1. Log on to the TeamForge application server and do this.
    1. Stop the collabnet service.
      • /etc/init.d/collabnet stop
    2. Edit the site-options.conf file. Update the JAMES_ACCEPTED_RELAYS site-options token with the Git server's IP address.
      • vi /opt/collabnet/teamforge-installer/8.0.0.1/conf/site-options.conf
      JAMES_ACCEPTED_RELAYS=127.0.0.1,{__CEE_DOMAIN__},<The IP address of the Git server>
    3. Recreate the runtime environment.
      • cd /opt/collabnet/teamforge-installer/8.0.0.1
      • ./install.sh -r -I -V
    4. Edit the /opt/collabnet/teamforge/runtime/james/ apps/james/SAR-INF/config.xml file and comment out the <authorizedAddresses> node. For example:
      <!--  <authorizedAddresses>127.0.0.0/8</authorizedAddresses>   -->
    5. Start the collabnet service.
      • /etc/init.d/collabnet start
  2. Log on to the Git server and do this.
    1. Copy the site-options.conf file from the TeamForge application server to the Git server.
    2. Recreate the runtime environment.
      • cd /opt/collabnet/teamforge-installer/8.0.0.1
      • ./install.sh -r -I -V
    3. Edit the /opt/collabnet/gerrit/etc/gerrit.config file and update the 'smtpServer' property with the TeamForge application server's host name. For example:
      [sendemail]
                    smtpServer = <TeamForge application server host name>
    4. Restart the gerrit service.
      • /etc/init.d/collabnet stop gerrit
      • /etc/init.d/collabnet start gerrit