Subversion Repositories sysadmin_scripts

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
14 rodolico 1
#!/bin/bash
2
mkdir -p /var/vmail/spam
3
cp -al /var/vmail/*/*/Maildir/.ThisIsSpam/* /var/vmail/spam/
4
chown -fR debian-spamd:debian-spamd /var/vmail/spam
5
su debian-spamd -c "/usr/bin/sa-learn --spam /var/vmail/spam"
6
rm -fR /var/vmail/spam
7
 
8
mkdir -p /var/vmail/ham
9
cp -al /var/vmail/*/*/Maildir/.ThisIsNOTSpam/* /var/vmail/ham/
10
chown -fR debian-spamd:debian-spamd /var/vmail/spam
11
su debian-spamd -c "/usr/bin/sa-learn --ham /var/vmail/spam"
12
rm -fR /var/vmail/ham
13
 
14