On Fri, 17 Oct 2014 11:59:30 +0200
Reindl Harald wrote:

> Hi
> 
> does SA need anything to recognize a rsynced bayes on similar setups
> to load the new version or is it anyways reopened for each connection
> by spamd child?

I think so, and I don't recall any special handling being needed for
sa-learn, which can create a new token file. There is a lock-file that
can be used but I doubt it would be needed in this case.

I wouldn't just rsync it though. However the file is copied, I'd finish
with an atomic mv so there is no risk of a partial file.

> in case of clamd rsync "/var/lib/clamav/" is enough
> 
> background:
> 
> * a perfect trained bayes on the inbound spamfirewall
> * after recently a account was hacked and sent spam
>    (luckily not massive by rate-limits) which would have
>    been clearly caught by SA/spamass-milter i consider
>    to install SA also on the submission servers and just
>    rsync the bayes per cronjob

This is not ideal, a well-trained incoming database wont be
well-trained for outgoing mail.

Reply via email to