You can filter out some kinds of spam from your project's discussion forums.
-
Open the site-options.conf file, the master configuration
file that controls your TeamForge site.
- vi
/opt/collabnet/teamforge-installer/8.2.0.0/conf/site-options.conf
Note: vi is an example. Any *nix text editor will work.
-
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
-
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
-
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
-
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.*
-
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.
-
Review the variables you have changed, then save the
site-options.conf file.
-
Restart the site.