# Updated-Axb 2014-08-20 # This goes in /etc/mail/spamassassin # You'll need to set IP to your Redis server's IP # Redis-server-ip:Redis server listening port # <@LICENSE> # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to you under the Apache License, Version 2.0 # (the "License"); you may not use this file except in compliance with # the License. You may obtain a copy of the License at: # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # ########################################################################### # Tell SA to use Bayes/Redis backend bayes_store_module Mail::SpamAssassin::BayesStore::Redis # NOTE: In this example, we're not using Redis authentication assuming # the Redis server/port will not be reachable from the "outside". # See Redis docs for authentication syntax bayes_sql_dsn server=192.168.1.2:6379 use_bayes 1 use_bayes_rules 1 # Your choice if you want to use auto_learn bayes_auto_learn 1 use_learner 1 bayes_learn_to_journal 0 # THIS IS MANDATORY - You do NOT need to run sa-learn to expire tokens # *_ttl below takes care of it. bayes_auto_expire 1 # You will need to changes this according to your need # This replaces sa-learn's sql/file based expire routines. bayes_token_ttl 30d bayes_seen_ttl 14d