set-spam

Change the spam and virus scanners for all domains By default, Virtualmin uses the stand-alone ClamAV and SpamAssassin programs for virus and spam scanning, named clamscan and spamassassin respectively. However, on a system that receives a large amount of email, running these programs for each incoming message can generate significant CPU load. This command can tell Virtualmin to use the background scanning daemons clamd and spamd instead, which are faster but consume additional memory as then run all the time. To enable the ClamAV server, run it like so:

Change the spam and virus scanners for all domains#

By default, Virtualmin uses the stand-alone ClamAV and SpamAssassin programs for virus and spam scanning, named clamscan and spamassassin respectively. However, on a system that receives a large amount of email, running these programs for each incoming message can generate significant CPU load.

This command can tell Virtualmin to use the background scanning daemons clamd and spamd instead, which are faster but consume additional memory as then run all the time. To enable the ClamAV server, run it like so:

virtualmin set-spam --enable-clamd
virtualmin set-spam --use-clamdscan

To enable and use the SpamAssassin daemon process, run the commands:

virtualmin set-spam --enable-spamd
virtualmin set-spam --use-spamc

However, using spamc makes it impossible to have separate per-domain SpamAssassin configurations in Virtualmin.

Command line help#

virtualmin set-spam [--use-spamassassin | --use-spamc]
 [--spamc-host hostname | --no-spamc-host]
 [--spam-max bytes | --no-spam-max]
 [--use-clamscan | --use-clamdscan |
 --use-clamd-stream-client | --use-clamdscan-remote |
 --use-virus command]
 [--clamd-host hostname]
 [--enable-clamd | --disable-clamd]
 [--enable-spamd | --disable-spamd]
 [--quota-behavior "queue"|"bounce"]
 [--show]

Source: https://www.virtualmin.com/docs/development/api-programs/set-spam/

  • virtualmin, domain, email, mail, spam, spamassassin, clamav, quota, cli, command line
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Pre and Post Domain Modification Scripts

Virtualmin allows the use of custom scripts (Shell, Perl, Python and etc.) to automate tasks...

OS Support

Virtualmin runs on top of Webmin. Webmin works on almost every UNIX-like OS, so with some manual...

Professional Features

Virtualmin GPL is already an extremely powerful and flexible virtual hosting control panel, so...

How to Configure Secondary DNS

This guide provides administrators with a quick overview of setting up automatic DNS secondary...

How to Configure Cloudflare DNS

For users looking to integrate Cloudflare with Virtualmin Pro, the process is straightforward and...