[Milter] Section

In the [Milter] section, parameters for managing operation of drweb-milter module are specified. This module is responsible for interaction between Dr.Web for UNIX mail servers and Postfix and Sendmail MTAs via Milter protocol. This section is included in the Dr.Web MailD configuration file only if the software version is designed for operation with MTAs mentioned above.

Address = {address}

Socket address to establish connection via Milter protocol.

It must comply with definition specified in settings of mail system (in sendmail.cf configuration file of Sendmail MTA and in main.cf configuration file of Postfix MTA).

Path to the PID file cannot be used as a value of this parameter.

Example:

Address = local:%var_dir/ipc/drweb-milter.skt

In the current version this parameter cannot be changed with SIGHUP signal, restart of Dr.Web MailD is required.

Default value:

Address = inet:3001@127.0.0.1

Timeout = {time}

Timeout for drweb-milter to connect to MTA.

Specified value must be greater than any Timeout parameter value in the MTA configuration file.

Default value:

Timeout = 2h

PendedConnections = {numerical value}

Maximum queue length for pending connections (drweb-milter waits for MTA to process messages).

Default value:

PendedConnections = 64

CanChangeBody = {logical}

Enables MTA to modify the body of a message received from the mail system.

Postfix MTA supports this function in version 2.4 or later.

In the current version, this parameter cannot be changed with SIGHUP signal, restart of Dr.Web MailD is required.

If this parameter value is set to Yes, a checked message is returned to MTA delivery queue with drweb-milter (Receiver) regardless of what queues (after-queue or before-queue) the checking plug-ins are assigned to.

If this parameter value is set to No, a checked message is returned to MTA delivery queue with drweb-sender (Sender) if the message was modified during the check (for example, when a virus was removed), as in this case the message cannot be returned to the mail system queue and it is transmitted to MTA as a new message. If the message was not modified, it is returned to the MTA delivery queue with drweb-milter (Receiver) regardless of what queues the checking plug-ins are assigned to.

All service notifications (including DSN), reports, redirected (with redirect action) and cloned messaged are sent only with drweb-sender (Sender), regardless of the CanChangeBody parameter value and what queues the checking plug-ins are assigned to.

For more information, see Message processing.

Default value:

CanChangeBody = Yes

ProcessingTimeout = {time}

Timeout for the drweb-milter module to wait for a message to be scanned.

It is recommended to set this parameter value greater than the SendTimeout parameter value from the [MailBase] section.

Note that value of the IPCTimeout parameter in the [General] section is also considered. Dr.Web MailD selects greater value among values of the ProcessingTimeout and IPCTimeout parameters. If during the selected timeout Dr.Web MailD does not return response to drweb-milter, action specified in the ProcessingErrors parameter is performed (see below) and "broken pipe" errors are recorded in the Dr.Web MailD log.

Default value:

ProcessingTimeout = 40s

ProcessingErrors = {action}

Action applied to messages that caused scanning errors.

Only one of these actions can be specified:

tempfail, discard, pass, reject.

Default value:

ProcessingErrors = reject

MinPersistConnection = {numerical value}

Minimum number of connections to the drweb-maild module.

In the current version, this parameter cannot be changed with SIGHUP signal, restart of Dr.Web MailD is required.

Default value:

MinPersistConnection = 2

UseStat = {logical}

Statistics of connections to the drweb-maild module.

Statistics is logged when drweb-milter process receives SIGUSR1 signal.

Default value:

UseStat = No

MaxFreetime = {time}

Maximum idle time before closing all connections with the drweb-maild module.

Default value:

MaxFreetime = 2m

ReplyPoolOptions = {pool options}

Settings for a pool of threads processing responses from the drweb-maild module.

Default value:

ReplyPoolOptions = auto