Setting Modifier Plug-In

All main parameters that regulate plug-in operation are set in the %etc_dir/plugin_modifier.conf configuration file. Description of the configuration file structure and parameter types can be found in Configuration Files. Parameters are described in the order they appear in the main configuration file.

In the  [Modifier] section, general settings for Dr.Web Modifier plug-in are specified:

[Modifier] section

 

GlobalRules = {list of rules}

List of global modification rules used by the plug-in for message processing.

Example:

The rule below adds a note in the html format to the message:

GlobalRules = select message, append_html "<b>checked!</b>"

The rule below deletes messages from the specified users:

GlobalRules = select mime(headers) From "weirdohacker@server.net", if found, reject, endif

Default value:

GlobalRules =

The parameter can be used in Rules

Encoding = {text}

Encoding that the plug-in uses for the text inserted with append_text and prepend_text commands directly from modification rules.

Default value:

Encoding = koi8-r

When a message is blocked (reject) by the plug-in in the synchronous mode, Dr.Web MailD response to a client contains SMTP code (55* or 250, depending on the ReturnReject parameter value in the [Receiver] section) and a text message which content is determined by values of the parameters described below. Their values must be enclosed in quotation marks.

The parameter can be used in Rules

UseCustomReply = {logical}

Use custom messages as an SMTP reply specified in the ReplyRuleFilter parameter when messages are rejected by Dr.Web Modifier.

Default value:

UseCustomReply =

The parameter can be used in Rules

ReplyRuleFilter = {text}

Custom message used as an SMTP reply when the message is rejected by Dr.Web Modifier.

Default value:

ReplyRuleFilter =

If UseCustomReply = No or the corresponding string is not specified, the following standard message outputs: "The message has been rejected by the Dr.Web MailD".