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.
Note. Email that is diagnosed with close to 100% certainty as containing spam or a virus will be immediately rejected by our server and never accepted. If there is any doubt, however, then the mail is accepted and handled based on the spam and virus delivery settings above.
Some of the more useful pages are listed below. Please see the sidebar menu for more.