LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-15-2010, 03:13 AM   #1
voltron81
LQ Newbie
 
Registered: Sep 2009
Posts: 22

Rep: Reputation: 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
 
Old 02-15-2010, 05:10 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,260

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
IIRC, your settings and rules are in /etc/mailspamassassin, and your install elsewhere. Spamassassin is more or less designed to be updated and to keep your unique rules to avoid this problem. Have you read the spamassassin doc on upgrading?
 
Old 02-16-2010, 03:36 AM   #3
voltron81
LQ Newbie
 
Registered: Sep 2009
Posts: 22

Original Poster
Rep: Reputation: 15
Hi, thanks for your reply.
I've read this http://spamassassin.apache.org/full/.../sa-learn.html and this: http://spamassassin.apache.org/full/.../sa-learn.html

So if I've understand correctly, with sa-learn-backup I'll bakup just the Bayes database.
To have a better learn of spamassassin, I need to do also something like:
Code:
sa-learn --spam /path/to/spam/folder
      sa-learn --ham /path/to/ham/folder
Is it correct?
Sorry but I don't have previous experience with spamassassin policy migration and I hope somebody can put me on the right way
Thanks
Michele
 
Old 02-16-2010, 04:56 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,260

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
I set up a system with this stuff years back. I used
Vipul's Razor - that caught over half of the spam, and was very accurate. I may have had one false positive, but not two.
DCC caught maybe 5%, but it's aimed at bulk mail, rather than spam. There are tricks the spammers are using to get around these two. They sometimes succeed, but the programmers get more clever.
There's something similar to the razor in python on sourceforge. The name escapes me. It caught squat - nothing. It may have improved.
Spamassassin (spamc/spamd)I had ready to bite at anything, and the dns & server based rules I found more effective than the page scanning ones. Mails made in M$ frontpage with .exe files attached should score in the double figures. You can add some custom rulesets

The key to this is where spamassassin has it's databases (.db files) If you don't destroy those, you are ok - I don't think you even have to learn the new system. You can check by saving off mails individually (mail1, mail2, etc). If they changed the database format between versions then an upgrade is messy.

The spamc man page will give you the options but I think it's
cat mail1 |spamc -R
for an onscreen report that isn't added. So check some of your mails that way. There is something for removing the report
spamassassin -r(?)
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Migration of spamassassin settings from an old to a new server voltron81 Linux - Server 1 04-10-2010 05:02 AM
migration of Thunderbird settings and files starkadder Linux - Software 2 11-12-2009 02:32 AM
server-to-server email migration tool. wachaca Linux - Server 5 12-15-2006 08:08 PM
Amavis Spamassassin Config, Where to change settings? schoeppchen Linux - General 1 08-15-2005 10:19 AM
Relay Server<-> GatewayServer<->filtering server: PostFix, amavis,spamassassin, cyrus admore Linux - General 0 11-02-2004 08:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration