Configuration Files |
General format of configuration files All Dr.Web for UNIX mail servers settings are stored in configuration files which you can use to configure all suite components. Configuration files are text files, so they can be edit in any text editor. They have the following format: --- beginning of file --- Configuration files are formed according to the following rules: •Symbols ';' or '#' mark the beginning of a comment. Text that follows these symbols is ignored by Dr.Web for UNIX mail servers modules when reading a file. •Contents of the file is divided into sets of named sections. Possible section names are hardcoded and cannot be changed. The section names are specified in square brackets. •Each file section contains configuration parameters, grouped by meaning. •One line contains a value (or values) only for one parameter. •General format for parameter value setting (spaces enclosing the '=' signed are ignored) is the following: <Parameter name> = <Value> •Parameter names are hardcoded and cannot be changed. •Names of all sections and parameters are case insensitive. •Order of sections in a file and order of parameters in sections are of no consequence. •Parameter values in a file may be enclosed in quotation marks (and must be enclosed in quotation marks if they contain spaces). •Some parameters can have more than one value. In this case, parameter values are separated by a comma or each parameter value is set separately in different lines of the configuration file. If values of a parameter are separated by commas, spaces between a comma and a value are ignored. If a space is a part of a value, the whole value must be enclosed in quotation marks.
Example of assigning several values to a parameter: 1) Separating values by commas: Parameter = Value1, Value2,"Value 3" 2) Setting of each parameter value separately: Parameter = Value2
Parameter description rules used in this Manual Each parameter in this manual is described as follows:
Status can be designated by one of following icons:
If a parameter Status is not specified in its description, this parameter cannot be used in Mail Processing Rules. Description of parameters is provided in this document in the same order as they are specified in the corresponding configuration file created upon Dr.Web for UNIX mail servers installation. The Parameter type field can be one of the following: •numerical value — parameter value expressed as a whole non-negative number. •time — parameter value expressed as a date unit. The value is a whole number that can be followed by a symbol defining the type of a date unit (s – seconds, m – minutes, h – hours; symbol is case insensitive). If the value does not have a symbol, the parameter is expressed in seconds (by default). Examples: 30h, 15m, 6 (in the last example, time is expressed in seconds). •size — parameter value expressed as a unit of memory size (disk space or RAM). The value is a combination of a whole number that can be followed by a symbol defining the type of a memory size unit (b – bytes, k – kilobytes, m – megabytes, g – gigabytes; symbol is case insensitive). If the value does not have a symbol, the parameter is expressed in bytes. Examples: 20b, 15k •permissons — parameter value expressed as a three-digit number which determines file access permissions in UNIX format: oRead permission (r) is specified by 4; oWrite permission (w) is specified by 2; oExecute permission (x) is specified by 1. First digit in the value defines permissions for the file owner, second digit - for owner's group, and third digit - for all other users (neither owners nor members of the group). Examples: 755, 644 •logical (Yes/No) — parameter value expressed as a string that can be one of the following: "Yes" or "No". •path to file/directory — parameter value expressed as a string which contains a path to a file or folder in the file system. Note, that names of files and folders are case sensitive. If mentioned, you can specify a file mask as a parameter value. A mask can include the following symbols: o? – replaces one symbol in the file (folder) name; o* – replaces any sequence of symbols (including an empty sequence) in the file (folder) name. Example: "?.e*" – this mask defines all files with a name consisting of only one character and with an extension which is of any length and starts with "e" (x.exe, g.e, f.enable and others). •action — parameter value expressed as a string which contains actions (those that are applied to objects by Dr.Web for UNIX mail servers components). In some cases, the parameter can have one basic and three additional actions specified (in such a case, the name of the parameter type is actions list). Basic action must be the first in the list. Different parameters can have a different action list and, in this case, it is specified separately for each parameter. For information on available actions, see Allowed actions. •address — parameter value expressed as a string which contains socket address of a Dr.Web for UNIX mail servers component or used external program. oinet — a TCP socket, ADDRESS is specified in the following format: PORT@HOST_NAME, where HOST_NAME can be either a direct IP address or domain name of the host. Example: Address = inet:3003@localhost olocal — a local UNIX socket, ADDRESS is a path to the socket file. Example: Address = local:%var_dir/.daemon opid — a real process address that is to be read from the process PID file. This address type is allowed only in certain cases that are explicitly designated in the parameter description. •text value, string — parameter value expressed as a text string. The text can be enclosed in quotation marks (and the text must be enclosed in quotation marks if it contains spaces). •pool options — settings of a thread pool. The parameter value has a special format, described in Special parameters types. •Lookup — parameter value expressed as strings. In these strings, search objects (separated by commas) are specified. •LookupLite — light Lookup (can contain only an explicit value or Lookup with the file prefix). •Storage — interface for access to data store objects. It differs from the Lookup parameter in the list of allowed prefixes and in the fact that the $s macro cannot be used. •TLSSettings — settings of the secure connection which uses TLS or SSL protocol. TLSSettings have a special format, described in Special parameters types. •strings list — parameter value expressed as a list of strings separated by commas. If the parameter value corresponds to the file:/path_to_file format, the text values are taken from the specified file (in the path_to_file part). In this file, each text value must be specified in a separate line. If an error occurs when reading the file, information on the error is logged and program loading continues •log level — parameter value expressed as a string which contains the verbosity level of logging into the file or syslog system service. •value — parameter has the type that is not described in the previous items of the list. In this case, all available values are provided. Behaviour of the modules if configuration file parameters are ill-defined •If any parameter value is incorrect, the respective Dr.Web for UNIX mail servers module outputs an error message and terminates. •If any unknown parameter is found when loading a configuration file, Dr.Web for UNIX mail servers logs the corresponding message and continues operation in the normal mode.
|