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 master site configuration file in a text editor. For example:
    • vi /opt/collabnet/teamforge-installer/5.4.0.0/conf/site-options.conf
  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 rest of the variables in the site-options.conf file to make sure their values are right for your installation, then save the file.