Reduce discussion spam

You can filter out some kinds of spam from your project's discussion forums.

  1. Open the site-options.conf file. This is the master configuration file that controls your TeamForge site.
    • vi /opt/collabnet/teamforge-installer/8.0.0.1/conf/site-options.conf
    Note: vi is an example. Any *nix text editor will work.
  2. Add one or more MIME types to the Reject MIME types filter. The presence of any of these MIME types in an incoming message (via email) will cause its rejection with appropriate notification to the posting user. For example:DISCUSSION_REJECT_MIME_TYPES=application/pdf,text/xml
  3. Add one or more MIME types to the Drop MIME types filter. The presence of any of these MIME types in an incoming message (via email)will cause its attachment to be deleted with appropriate notification to the posting user. For example:DISCUSSION_DROP_MIME_TYPES=image/jpeg,image/jpg,text/xml
  4. Add one or more header names to the remove headers filter. If an incoming email posting contains any of these headers, they will be quietly removed from the message before it is archived and before subscribers are notified. For example:DISCUSSION_REMOVE_HEADERS=precedence,x-no-archive,Return-Path
  5. Add one or more header names to reject headers filter to be rejected or moderated (if discussion is moderated). Use regular expressions, each regular expression must match an entire header. The match of any of these headers in an incoming message (via email) will cause its rejection with appropriate notification to the posting user. For example:DISCUSSION_REJECT_HEADERS=(?s).*headername1:value2.*,(?s).*name2:value2.*
  6. Add one or more entries for Reject content filter. Use regular expressions, each regular expression must match an entire entry. The match of any of these entries in discussion body and subject of an incoming message (via email) will cause its rejection with appropriate notification to the posting user. For example: DISCUSSION_REJECT_CONTENT=(?s).*word.*,(?s).*spam.*
    Note: The content entry is a case sensitive.
  7. Review the variables you've changed, then save the site-options.conf file.
  8. Restart the site.