Last Modified:

OITC's
STF Rule How To
Creation Instructions

OITC uses the Eudora Internet Mail Server and Simple Text Filter


VirusAlert_120x60 OITC's rules data base has been built to attempt to help mail admins manage and select the contextual filtering rules appropriate to there own facility.

The Rules Set data Base for Simple Text Filter version 1.1 and greater are presently available in Excel format. If you cannot support Excel please contact us at STFRules@oitc.com


Structure

STF Rules contain the following tab separated fields:


Source/Location

The Source/Location field is comprised of three contatinated parts: Thus, a Source/Location item would look like: ActionLocationQualifier.

The Location field specifies which area of an email that the rule applies to. Permissable values are:

Branding 120x60 blue/yellow

Qualifiers appear after the colon (":") of the Location field. Allowable qualifers are: mpf_120x60.gif


Rule

The Rule field contains the rule to be applied to the source field.

STF will search the location for the rule pattern. Rules are similar to regular expressions. The will match any text and contain wildcards. Wildcards are:

To identify special characters in a rules you can use the following escape sequences:


Error Msg

The Error Msg field contains the message that will be returned to the sending mail server if the rule is true. You must return the correct RFC status codes.

You can fill the error message with information about the email using replacement strings. These replacement strings are:

You can also fill the error message with macros from your pref files. These macros are identified as |macro_name|.

An example error message might be:

             550 5.7.0 Rejected by filter (code: 1023). Contact postmaster for details.


Log Msg

The Log Msg field contains the message that will be output to the error log if the rule is true.

You can fill the error message with information about the email using the replacement strings defined above.

You can also fill the error message with macros from your pref files. These macros are identified as |macro_name|.

An example error log entry might be:

             Bounced (BODY: Undotted Quad) [1023, %h (%i), Frm: %s To: %r]


Stat Name

The Stat Name field is used to accumulate performance statistics. If you wish to accumlate statistics enter an variable name here. Each time the rule is true the variable is incremented. You can accumulate information on each rule, on only some rules or you can group rule performance together by using the same, different or no variable names.


Putting it all together

The following is a example rule:
BOBY: http://%8# 550 5.7.0 Rejected by filter (code: 1023). Bounced (BODY: Undotted Quad) [1023, %h (%i), Frm: %s To: %r] UndottedQuad

The above rule means: Search the body of the email message for http:// followed by 8 numeric digits. If found reject the message and return 550 5.7.0 Rejected by filter (code: 1023). to the sending mail server and place Bounced (BODY: Undotted Quad) [1023, %h (%i), Frm: %s To: %r] in the error log and increment the count in the UndottedQuad stats valiable.

Try to say the rule out loud when you read it. This helps you clarify its operation.



©2001-2002 by OITC. All rights Reserved, USA and Worldwide