Limit the size of message attachments

To avoid overtaxing your mail server or your storage volume, you may want to set a ceiling on the size of the attachments that users can send to a forum via email.

When a user sends an attachment that is larger than the limit, the message is rejected and the user gets an email from the Site Administrator explaining that the attachment exceeded the limit.
Tip: Before imposing a file attachment size limit, it's a good idea to point your users to better ways of collaborating around large files. Consider suggesting source code repositories, backup systems, or other appropriate solutions.
  1. Open the site-options.conf file, the master configuration file that controls your TeamForge site.
    • vi /opt/collabnet/teamforge-installer/8.1.0.1/conf/site-options.conf
    Note: vi is an example. Any *nix text editor will work.
  2. Set the value of the DISCUSSION_MAX_ATTACHMENT_SIZE variable to a reasonable level. For example, if your users are given to using Microsoft Word documents on the site, you might set DISCUSSION_MAX_ATTACHMENT_SIZE to 10 MB, and increase the value by two or three MB at a time if users need more headroom.
  3. Review the variables you have changed, then save the site-options.conf file.