Migration of spamassassin settings from an old to a new server

Discussion in 'Installation/Configuration' started by voltron81, Feb 12, 2010.

  1. voltron81

    voltron81 New Member

    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
     
  2. voltron81

    voltron81 New Member

    no suggestions?
    :cool:
     
  3. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    Should work. Have you tried it?
     
  4. voltron81

    voltron81 New Member

    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
     
  5. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    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.
     
  6. voltron81

    voltron81 New Member

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

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    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.
     
  8. voltron81

    voltron81 New Member

    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:
     
  9. voltron81

    voltron81 New Member

    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
     

Share This Page