What are the X-headers used to sort and filter emails sent by TeamForge?
You can use these X-headers to sort and filter emails sent by TeamForge.
|X-TeamForge-Application||Tracker||Application, if applicable. Values include Documents, Wiki, Source Code, TeamForge, Tasks, Tracker, Discussion, File Releases.|
|X-TeamForge-Artifact-Monitoring||true||For artifacts, true if the user is monitoring the artifact directly. If value is false, you are monitoring the folder, not the artifact.|
|X-TeamForge-AssignedTo||admin||User assigned to artifact or task.|
|X-TeamForge-CommitPath||/path/to/my/branch||For Subversion commit emails: reports the greatest common path of all files in the commit. For example, if you modify the paths /a/b/file1 and /a/c/file2, the value of the X-TeamForge-CommitPath header is /a. If you modify /a/b/file1 and /file2, the value is / (the root path of the repository).|
|X-TeamForge-FolderId||tracker1005||If the object is a folder, the object’s ID, or the ID of the object’s container.|
|X-TeamForge-Forum||New user forum||For posts, this is the forum title.|
|X-TeamForge-PlanningFolder||/path/to/my/folder||The path to a planning folder.|
|X-TeamForge-ProjectId||proj1006||Project ID, if applicable.|
|X-TeamForge-ServerName||collab.net||Hostname portion of TeamForge URL.|
|X-TeamForge-Status||Open||Status of artifacts, tasks, documents, and document reviews. Values include:
|X-TeamForge-Type||Artifact||The type of the object, if applicable. Values include Tracker, Artifact, Document Folder, Document, Document Version, Wiki Page, Wiki Page Version, Task Folder, Task, FRS Package, FRS Release, Discussion Forum, Discussion Topic, SCM Repository, SCM Commit.|
Why is my email taking a long time to arrive?
TeamForge uses the James MTA to send and parse all email coming to and from the system. In this case, the best course of action is to look in the james mailet logfile.
Your logfile will help you to determine what is going on with the emails that are being sent from your system. Your logfiles will look very similar to this:
07/02/07 07:54:43 INFO James.Mailet: ?RemoteDelivery: Attempting delivery of Mail1170135534355-39088-to-domain.invalid to host domain.invalid at 192.168.0.1 to addresses [firstname.lastname@example.org] 07/02/07 07:55:43 INFO James.Mailet: ?RemoteDelivery: Could not connect to SMTP host: 192.168.0.1, port: 25; nested exception is: java.net.?ConnectException: connection to 192.168.0.1 timed out 07/02/07 07:58:43 INFO James.Mailet: ?RemoteDelivery: Storing message Mail1170135534355-39088-to-domain.invalid into outgoing after 7 retries 07/02/07 07:58:43 INFO James.Mailet: ?RemoteDelivery: Attempting delivery of Mail1170831482124-2756-to-company.com to host mx.company.com. at 127.0.0.1 to addresses [email@example.com]
As you can see, the James MTA stores outgoing emails to resend at a later time. These files can be located in this directory:
When you do a directory listing of the files, you will see a listing of files very similar to this:
The FileObjectStore is a binary file, but, the FileStreamStore can be viewed with an editor or your favorite paging program in order to determine the contents. Sometimes, the directory can grow to a large number, where you will not be able to use a standard bash expander to delete all of the files. In that case, use the following shell script to remove all of the objects from the outgoing directory:
for i in * ; do /bin/rm $i; done
Why would some users not get email?
Check your dnsserver-
James records all errors related to resolving DNS for outbound mail to:
/opt/collabnet/teamforge/james/james-<version>/apps/james/logs/dnsserver-.log. If you find that some of your TeamForge users are receiving email, but significant groups of others are not, you should consult this log to determine if James is experiencing difficulties in resolving their domain or MX records.
Why do search and email server show “Could not connect”?
Typically this means the tomcat container for James and the search service are not running.
You can restart this with the commands shown below. You may need to set the JAVA_HOME environment variable to the location of your JDK.
sh /opt/collabnet/teamforge/dist/james/james-2.2.0/bin/phoenix.sh stop sh /opt/collabnet/teamforge/dist/james/james-2.2.0/bin/phoenix.sh start
Why can’t TeamForge send my outbound mail?
If you are unable to send email directly due to firewall restrictions, or if mail is being rejected by the application server’s IP address, configure TeamForge to send outgoing messages through a gateway mail server.
Configure TeamForge to send outgoing message through a gateway mail server by adding the following to the
<mailet match="All" class="RemoteDelivery"> directive in the configuration file at
If your gateway mail server requires authentication to send email, you may also add the following directives:
Can I customize my site’s email notifications?
The default text for CollabNet TeamForge email notifications can be customized.
Email templates are located in the
templates/mail directory in the branding repository.
Some email templates that are commonly customized are:
Email template formatting follows the standard Velocity conventions:
user_welcome.vm ##subject Welcome to CollabNet TeamForge 5.0! ##subject ##body The Welcome message goes here... ##body Email subject line Email message text
Can I specify an alternate email address?
Yes, of course you can specify one or more alternate email address. TeamForge supports user profiles with one primary email address and up to three secondary email addresses.
The email address specified while creation of a user account is considered the primary email address. The alternate email addresses are optional and can be specified while updating the user profile.
How can I check if port 25 is open?
If you know the mail server is up and running, check whether you can talk over port 25 to your mail server. This can be done using a one-line command:
telnet <appserver name> 25 Substitute the <appserver name> with your own server.
Once you type this into your DOS window and hit return, you should see some sort of response from your mail server, as shown below:
When a discussion forum is set up, do all members receive a notification mail?
Yes. A mail informing users about the creation of discussion forum is sent to all the members of the project who have the Discussions (check box) selected as a monitored application.
Users can enable Discussions as a monitored application. To do that:
Go to My Workspace > My Page > Monitoring and select a project from the Edit Monitoring Subscriptions and Preferences pane.
Select the Monitored Applications tab.
Select the Discussions check box and click Save.
I am unable to edit a specific artifact via email, but I can do so via the web UI. Why is this?
There may be workflow rules applied to the tracker that require specific fields to be set. As you can only define the artifact title and description via email, the artifact creation fails. If you wish to create artifacts in this tracker via email, the tracker admin will need to disable these workflow rules.
In addition, you may not be able to edit artifacts belonging to a tracker via email, if the tracker has two mandatory flex fields with parent-child relationship, but no default value relationship between the default values of the parent and child flex fields. In such cases, it is recommended to always establish the default value relationship between flex fields that have a parent-child relationship.
How do I set up a local alias via James?
In situations where you need to obtain a SSL certificate for your domain, and your SSL certificate provider only permits you to use addresses related to your TeamForge domain, it may be necessary to generate an email alias from within TeamForge. Since there is currently no way to do this through the UI, you’ll have to do it from the James administrative interface.
First, you’ll need to connect to the James administrative interface on your system. If you’ve followed our best practices guide in our knowledgebase, you’ll know that you should have port 4555 firewalled to everyone but localhost. SSH to your TeamForge server, and then issue the following command:
telnet localhost 4555
This will bring up the Remote Administration Tool:
[root@app1 root]# telnet localhost 4555 Trying 127.0.0.1... Connected to localhost (127.0.0.1). Escape character is '^]'. JAMES Remote Administration Tool 2.2.0 Please enter your login and password Login id: admin Password: (text is echoed locally) Welcome admin. HELP for a list of commands
First, we’ll need to add a new user:
adduser <username> <password>
Then, we’ll need to set the forwarding address of that user.
setforwarding <username> <email address where you want email to go>
Finally, we’ll exit the James administrative interface.
Your changes should be in place.
Does TeamForge support using /etc/aliases for local mail delivery?
No, TeamForge uses the James SMTP server, which does not use the
To enable local mail aliases, you will need to configure user mapping in the
XMLVirtualUserTable in the
How can I stay informed about events on TeamForge site?
To keep up with changes, you can be notified by an automatic email when an item you are interested in is updated.
Monitoring items lets you stay up to date automatically on all changes without having to log into CollabNet TeamForge and check the status of each item.
You can monitor individual items, folders, and entire applications in each project for which you are a member. You can configure the frequency of email notifications to suit your personal preferences, and suspend monitoring messages entirely if you are out of the office or for any reason do not want to receive messages.
Items that can be monitored include:
- Entire applications, such as all tasks or all documents.
- Folders, such as task folders or document folders.
- All items in a tracker, forum, or package.
- Individual items, such as a task, a document, a tracker artifact, or a release.
You can tell by looking at each item whether you are currently monitoring it and how to begin or end monitoring it.
- For each item, list of items, or folder, you see a Monitor button or menu option.
- If you are currently monitoring an item, the Monitor option is replaced by a Stop Monitoring option, and the monitoring icon is displayed.
Whenever you create an item or edit an item, you automatically begin monitoring that item.
You do not receive monitoring notifications for your own changes to a monitored item.
If you have the appropriate permissions, you can see who is monitoring an item.
You can add other users to the monitored item. After a user is added to a monitored item, the user can continue monitoring the item, configure monitoring preferences for the item, or stop monitoring the item.
I receive a number of emails just because I am monitoring a folder. How can I restrict this?
Monitoring a folder might spam the mailboxes with emails that are generated for every small change.
Email notification preferences under the Monitoring sub-tab under My Workspace can be modified to Send Daily Digest Email, which provides a summary of the email alerts.
Go to Projects > My Workspace.
Select Monitoring from the My Page menu.
In Edit Monitoring Subscriptions and Preferences page, click All Projects and click on Email notification preference.
For each project, the monitoring folders under various components (Tracker/File Releases/Tasks/Discussions/Wiki) can be customized to Daily Digest Email.
Can TeamForge accept email for more than one domain?
You can configure James to accept email for more than one domain by adding the additional domains to the
<servernames> section in the
Add the domains to the
<servernames> section of this file:
Around line 53, you should see the following:
<servernames autodetect=""true"" autodetectIP=""true""> <servername>localhost</servername> </servernames>
You can add other host names for James to accept mail for by adding more
<servername> blocks. The comments in the config.xml file explain this further. Please keep in mind that these changes may be overwritten by future TeamForge upgrades.
How do I configure TeamForge to send mail on a specific network adapter in a multi-NIC configuration?
When a host has multiple NICs, James will try to do the right thing when sending mail. In some network setups, this is not correct, and manual configuration is needed.
James requires multiple changes to fully configure how it interacts with the network. Open the
config.xml file, located in
$SF_HOME/apps/james/james-2.2.0/apps/james/SAR-INF/ for version 5.1.
<mailet match="All" class="RemoteDelivery"> section. Add a subnode
$addr is the ip address that James should be sending mail from.
Near that area, there is a
<servernames...></servernames> section. Confirm/change the two autodetect options (
false. Next, add the fully qualified host name, and the ip address that will be used, to their own
After the changes are complete, save the config.xml and restart the application.
How do I send email from a specific sender address instead of the member address?
To send mail from a specific sender address set the MONITORING_EMAIL_FROM_ADMINISTRATOR token to true in the
TeamForge uses the member’s email address as the sender address when it delivers the mail. To reconfigure this setting in the
site-options.conf file, set the MONITORING_EMAIL_FROM_ADMINISTRATOR token to true, as shown in the following code sample: