Automatically trained SpamAssassin databases are unused

Issue or symptom

Mail sent to the "junkmail" and "notjunkmail mailboxes" for automatic training may not be used to train the database in the correct location.

Solution

If this happens, follow these steps to resolve the issue:

  1. Log in as root.
  2. Move the unused SpamAssassin database aside with this Terminal command (on a single line):

  3. # mv /var/amavis/.spamassassin /var/amavis/.spamassassin.old

  4. Create a link in that location to the correct database with this Terminal command:

  5. # ln -s /var/clamav/.spamassassin /var/amavis/.spamassassin 

Published Date: Oct 10, 2016