HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   Migration of spamassassin settings from an old to a new server (http://www.howtoforge.com/forums/showthread.php?t=43433)

voltron81 12th February 2010 12:15

Migration of spamassassin settings from an old to a new server
 
Hi to everybody.
I'm migrating a mailserver from an old to a new mailserver.
The new mailserver is based on ISPConfig 3.0.6.1.

I would like to migrate what spamassassin learnt in the past from the old mailserver to the new one.
Now the question:
- The 2 spamassassin versions are different. Is it a problem?
- Can I just migrate the database with this commands???
Code:

sa-learn --backup > sadb.bkp

sa-learn --restore ./sadb.bkp

-how to migrate SpamAssasins Auto White List and all others SpamAssassins databases?

Thanks
Michele

voltron81 14th February 2010 15:18

no suggestions?
:cool:

till 16th February 2010 11:14

Should work. Have you tried it?

voltron81 16th February 2010 14:56

Hi till,
thanks for your reply.
It should work, but I guess it backup just the Bayes database...
and I would like to migrate to the new server also the white/black list, etc...
How can I do it?

Thanks
Michele

till 16th February 2010 15:01

ISPConfig 3 uses amavisd, so your old blacklist and whiltelist are most likely not compatible. You might have to write a migration script for your blacklist which inserts them in the correct format into the mysql database.

voltron81 16th February 2010 15:18

Also in the old server I'm using amavis with spamassassin...
but I don't know how to migrate this data...

till 16th February 2010 15:21

If you use it with mysql binding, then you can copy the records into the new database as ispconfig uses the default database layout of amavis. If you dont use mysql bindings for whitelists, then you might have to write a migration script.

voltron81 16th February 2010 16:14

Hi till,
sorry, I wasn't clear.
What I want to migrate is not the whitelist, but the auto-whitelist (so that the new server is already learnt about that)

:confused:

voltron81 17th February 2010 10:43

Basically the file that I want to copy across is /root/.spamassassin/auto-whitelist

I literaly copy across this file to the ISPConfig server and rebooted amavis and spamassassin... and I hope now they can read it...
Is it correct?
There is a way to check if spamassassin is using this new file?

Thanks
Michele


All times are GMT +2. The time now is 04:59.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.