In the [ODBC] section, settings for interaction between Dr.Web MailD and databases via ODBC are specified:
Lib = {path to file}
|
Path to the library that supports ODBC version 3.0 or later.
Library must be built with thread support. UnixODBC is recommended. The library is searched according to the standard rules used by dlopen system call (please refer to the corresponding dlopen documentation).
In the current version this parameter cannot be changed with SIGHUP signal, restart of Dr.Web MailD is required.
|
Default value:
Lib = /usr/lib/libodbc.so
|
ConnectData = {string}
|
ODBC connection parameters.
The following two formats are supported:
•USER/PASSWORD/@DSN - Oracle syntax; •DSN=value;UID=value;PWD=value - ODBC syntax. To start working with ODBC, specify at least DSN.
In addition, it is recommended to use the connect_timeout parameter in ConnectData string (this parameter specifies wait time for the connection to be established).
This parameter value can also be locally overridden in a Lookup.
|
Default value:
ConnectData =
|
SizeLimit = {string}
|
Maximum number of strings received in response to a single database request.
When parameter value is set to 0, maximum number of received strings is not limited.
This parameter value can also be locally overridden in a Lookup.
|
Default value:
SizeLimit = 0
|
SkipDomains = {LookupLite}
|
List of domains for which query to database is not required.
This parameter often allows to improve total performance and considerably reduce server load.
Please note that the parameter value is LookupLite.
This parameter value can also be locally overridden in a Lookup.
|
Default value:
SkipDomains =
|
OnError = {ignore | exception}
|
Sets the mode of error handling (errors that occur in Lookup when connecting to the specified data source).
Allowed modes:
•ignore – ignore the error and continue message processing (the error is only logged); •exception – generate an exception which is handled as a message processing error. The handling method corresponds to the ProcessingError parameter value set for the module in operation of which this error occurred. The parameter value can also be locally overridden in a Lookup.
|
Default value:
OnError = ignore
|
To connect to ODBC data sources, Dr.Web MailD uses any library which supports ODBC version 3.0 or later. The used library must be built with thread support. It is recommended to use UnixODBC library version 2.0 or later.
If the specified host or database are not accessible, connection is attempted to be established until timeout occurs (the timeout value is specified for the connect_timeout parameter in the connection string). After that, an error is fixed and handled according to the action set for the OnError parameter.
|