Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5352181
  • 博文数量: 1144
  • 博客积分: 11974
  • 博客等级: 上将
  • 技术积分: 12312
  • 用 户 组: 普通用户
  • 注册时间: 2005-04-13 20:06
文章存档

2017年(2)

2016年(14)

2015年(10)

2014年(28)

2013年(23)

2012年(29)

2011年(53)

2010年(86)

2009年(83)

2008年(43)

2007年(153)

2006年(575)

2005年(45)

分类: LINUX

2006-08-02 09:19:28

Setting up a cron job to force Bayes Expiry
By default, SpamAssassin learns to a journal instead of learning directly to the Bayes database. Unfortunately, occasionally SpamAssassin will need to re-sync the database and expire old tokens from the database, and it will do this before processing the message. To get around this, we can force expiry on a different schedule.

Add "bayes_auto_expire 0" to /etc/spamassassin/local.cf to stop SA from trying to expire old tokens.

Stop SpamAssassin and things that depend on it

    ....
    /etc/init.d/exim4 stop
    /etc/init.d/spamassassin stop
    Run "sa-learn --force-expire". (which takes ~25 secs on my machine)

Restart SpamAssassin and things that depend on it:

    /etc/init.d/spamassassin start
    /etc/init.d/exim4 start
    ....
    Bundle steps 2-4 into a crontab job(s). Thanks to  Rich Johnson for these instructions. (From  Debian bug 334829)

阅读(884) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~