How can I migrate Warden settings from one server to another?

Administrators can go to Warden -> Settings -> Content Filter Settings -> Policy Migrator to export Warden content filter policies, blacklists, and whitelists from one server to another.

Policy Migrator

To migrate Warden policies, Blacklists Whitelists from one server to another

  1. Go to Warden -> Settings -> Content Filter Settings -> Policy Migrator.
  2. Select the users you want to migrate.
  3. Select Warden as the data source.
  4. Press the Export button to export the content filter policies, blacklists, and whitelists and save them to your computer as an XML file.
  5. Go to Warden -> Settings -> Content Filter Settings -> Policy Migrator on the new server and press the Browse button under Policy Import section and select the XML file you just exported. Press the Import button to import them into the new server.

To migrate Bayes training data from one server to another

Administrators can also use the sa-learn command to export Bayes data from one server and import it on another. To export the Bayes data run the following command:

sa-learn -u amavis --backup > /tmp/amavis-bayes.db

Transfer the /tmp/amavis-bayes.db file to the new server and run the sa-learn command below to import the Bayes data into the Warden database (Warden must be installed first):

sa-learn -u amavis --restore /tmp/amavis-bayes.db

Note: It will likely take at least a few hours to import a large database. It takes about two hours to import a dump with 2 million tokens.

  • blacklists, export, import, migration, whitelists, migrate, bayes
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How can I change the interface language of the extension?

You can change the interface language under Settings -> Application Settings -> Locale...

How can I disable admin email notifications in Amavis?

Amavis has different default options for controlling where virus, spam, banned file attachments,...

How can I whitelist or blacklist a mail server from greylisting?

To Whitelist a Mail Server From Greylisting Navigate to Warden -> Settings ->...

How can I enable third party anti-virus signatures within Warden to improve the ClamAV detection rate?

Warden supports enabling third party anti-virus signatures to improve the detection rate. These...

How can I setup a local caching DNS resolver to speed up DNS queries used by Amavis?

Run the following command to check if local DNS caching is enabled: host -tTXT...