Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 12th February 2010, 13:15
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
Default 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
Reply With Quote
Sponsored Links
  #2  
Old 14th February 2010, 16:18
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
Default

no suggestions?
Reply With Quote
  #3  
Old 16th February 2010, 12:14
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,717
Thanks: 840
Thanked 5,592 Times in 4,404 Posts
Default

Should work. Have you tried it?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #4  
Old 16th February 2010, 15:56
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
Default

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
Reply With Quote
  #5  
Old 16th February 2010, 16:01
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,717
Thanks: 840
Thanked 5,592 Times in 4,404 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 16th February 2010, 16:18
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
Default

Also in the old server I'm using amavis with spamassassin...
but I don't know how to migrate this data...
Reply With Quote
  #7  
Old 16th February 2010, 16:21
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,717
Thanks: 840
Thanked 5,592 Times in 4,404 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #8  
Old 16th February 2010, 17:14
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
Default

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)

Reply With Quote
  #9  
Old 17th February 2010, 11:43
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
 
Default

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
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig3 Mail Warn Errors reason8 General 3 25th November 2009 14:58
I don't recieve mail. privir Installation/Configuration 2 3rd June 2009 23:08
FTP cannot open remote folder!?! andysm849 Server Operation 23 17th October 2008 00:34
cacti problem - graphs have huge gaps Chip Installation/Configuration 7 8th February 2008 00:24
ispconfig - server migration best way sygram Installation/Configuration 3 26th October 2007 12:37


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


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