Command-line Arguments

To run Dr.Web Anti-Spam from the command line, run the following command:

$ <opt_dir>/bin/drweb-ase [<parameters>]

Dr.Web Anti-Spam can process the following parameters:

Parameter

Description

--help

Purpose: to print help on existing command line parameters to the console or terminal emulator and shut down the corresponding process afterwards.

Short form: -h

Arguments: None.

--version

Purpose: to print component version information to the console or terminal emulator and shut down the corresponding process afterwards.

Short form: -v

Arguments: None.

Example:

$ /opt/drweb.com/bin/drweb-ase --help

This command outputs short help information about the Dr.Web Anti-Spam component.

Startup Notes

The option of starting the component directly from the command line of an operating system in a standalone mode is not provided. It is run automatically by the Dr.Web Anti-Spam component while scanning email messages for spam. Besides, if a FixedSocket parameter value is defined in the component configuration, then one component copy will be constantly run by Dr.Web ConfigD configuration daemon and will be available for the user through this UNIX socket. To manage component parameters, as well as to scan mail objects on demand, use Dr.Web Ctl utility designed for managing Dr.Web for UNIX Mail Servers from the command line (is run by the drweb-ctl command).

To scan an arbitrary email message by the Dr.Web Anti-Spam component for spam (by calling the Dr.Web MailD component), you can use the checkmail command of the Dr.Web Ctl tool. To do that, save the scanned email message on a disk (for example, in the .eml format) and use the command:

$ drweb-ctl checkmail <path to .eml file>

To get documentation on this component from the command line, run the following command: man 1 drweb-ase.