Re: [SLUG] moving spamAssasin from one server to another

From: Mike Branda (mike@wackyworld.tv)
Date: Tue Aug 09 2005 - 10:42:07 EDT


On Tue, 2005-08-09 at 10:07 -0400, patrick grantham wrote:
> What's the best approach for transferring the configuration of spamAssasin
> and what it has "learned" to another host?
>
>

I've been writing our "learned" files at the office to the config
directory. It's the bayes files in the ls below. Also here's the
command I use.

sa-learn -C /etc/mail/spamassassin --showdots --mbox --spam
--dir /var/spool/mail/definiteSpam

postfix1:~ # ls -la /etc/mail/spamassassin/
total 2228
drwxr-xr-x 3 root root 4096 May 10 16:46 .
drwxr-xr-x 3 root root 4096 Jan 5 2005 ..
-rw------- 1 root root 172032 May 10 16:14 bayes_seen
-rw------- 1 root root 2588672 May 10 16:14 bayes_toks
-rw-r--r-- 1 root root 410 May 10 16:46 local.cf
drwxr-xr-x 2 root root 4096 Jan 21 2005 oldfiles
-rw-r--r-- 1 root root 1581 May 9 17:10 user_prefs
postfix1:~ #

If the files aren't in your conf dir you could do a find on the bayes files.
Just copy those and the spamassassin conf's to the new box and you should be
good to go. Barring you are using the same OS or same build options for the
location of the conf files.

Mike Branda Jr.

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:53:40 EDT