[HOW TO] Transfer SpamAssassin's settings from one server to another?

Created:

2016-11-16 13:03:53 UTC

Modified:

2017-04-24 11:58:46 UTC

0

Was this article helpful?


Have more questions?

Submit a request

[HOW TO] Transfer SpamAssassin's settings from one server to another?

Applicable to:

  • Plesk 12.5 for Linux

Question

There is a file with SpamAssassin's settings from an old Plesk server.

Is it possible to import this file to a new Plesk server?

Answer

The file with SpamAssassin's settings for domain is located at /var/qmail/mailnames/domain.tld/info@domain.tld/.spamassassin/user_prefs

The file with server-wide SpamAssassin's settings is located at: /etc/mail/spamassassin/local.cf

All the values in those files are taken from Plesk database.

It is not possible to import the settings directly, because updating of those files will not update the database and the settings will not by applied.

Workaround

To transfer the data from the file to the email Spam Filter:

  • Extract email addresses from the initial file

  • Sort them out on black and white lists

  • Copy and paste email addresses to Spam Filter's black and white lists accordingly:

    Domains > domain.tld > Email Addresses > info@domain.tld > Spam Filter > Show Advanced Settings

To transfer the data from the file to the server's Spam Filter:

  • Prepare two files: with a black list and with a white list

  • Go to Tools & Settings > Spam Filter > Black List > Click "Add Addresses"

  • Check From file and choose the file with the black list

    or

    Check From list and copy and paste email addresses.

  • Perform the same actions with the white list.

More information about Spam Filter available in our Administrator's Guide

Have more questions? Submit a request
Please sign in to leave a comment.