Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5273375
  • 博文数量: 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-11-08 11:47:26

Hi,

Here is a real easy to script to use to scan ALL domains/users for a .Spam folder and this will scan the new and cur directories within it and then deleted them if you want to.

#!/usr/local/bin/bash
spamlearn=/usr/local/bin/sa-learn
LearnDirs=`find /home/vpopmail/domains/ -name .Spam -type d`
for dir in $LearnDirs; do
$spamlearn --spam $dir/cur > /dev/null
$spamlearn --spam $dir/new > /dev/null
# the rm lines are optional
rm -f $dir/cur/*
rm -f $dir/new/*
$spamlearn --sync
done

I have something else I need to post but I can't seem to find it yet.
阅读(2006) | 评论(0) | 转发(0) |
0

上一篇:電信IP

下一篇:qmail-limit-bounce-size.patch.txt

给主人留下些什么吧!~~