This is an old revision of the document!
Spam and virus filtering in the Classic Linux environment is done in two different places.
First, when incoming mail arrives via SMTP, any mail that either contains an identifiable virus (as diagnosed by clamd), or is spam with a high degree of certainty (as diagnosed by rspamd), is immediately rejected and never accepted. This is not under user control.
Second, any mail that is accepted, which might or might not be spam, is spam-filtered via SpamAssassin. This is under control of the user, and can be switched on or off via the Virtualmin control panel.
If you go to the menu:
Virtualmin ⇒ Server Configuration ⇒ Spam and Virus delivery
you can see which folders are configured by default to receive spam and viruses. (You can also change these if you want to, but please exercise great caution, and make a screenshot before you make changes. Then you can restore any changes if needed.)
These spam and virus folders will be automatically created as soon as your first spam or virus is received.
Some of the more useful pages are listed below. Please see the sidebar menu for more.