Spamassassin 自動學習
#useradd -M blacklist
#useradd -M whitelist
以後如果收到垃圾信的話, 就把信 "以附加檔案方式轉寄" 給自己 Server 上的 blacklist 信箱; 如果是被 Spamassassin 誤判為垃圾信的郵件, 就把它轉寄給 whitelist. 也就是說, 讓這兩個信箱收集可以給 Spamassassin 學習的範本. 學習的指令如下:
學習黑名單:
#sa-learn -D --showdots --spam --mbox /var/mail/blacklist
學習白名單:
#sa-learn -D --showdots --ham --mbox /var/mail/whitelist
學習完成後, 即可將 blacklist 與 whitelist 信箱清空:
#true > /var/mail/blacklist; true > /var/mail/whitelist
讓系統每小時自動學習黑/白名單: 於 /etc/cron.hourly 建立一個可執行的 shell 檔, 內容為:
#!/bin/sh
if [ -s /var/spool/mail/blacklist ]; then
sa-learn --spam --mbox /var/spool/mail/blacklist > /dev/null 2>&1
true > /var/spool/mail/blacklist
fi
if [ -s /var/spool/mail/whitelist ]; then
sa-learn --ham --mbox /var/spool/mail/whitelist > /dev/null 2>&1
true > /var/spool/mail/whitelist
fi
參考自 http://spamgoaway.blogspot.com/search/label/spamassassin
迴響
Spamassassin 自動學習 | 豬窩
I think the admin of this website is really working hard in support of his site, since here
every information is quality based material.
Spamassassin 自動學習 | 豬窩
Greetings! Quick question that's totally off topic.
Do you know how to make your site mobile friendly?
My blog looks weird when browsing from my iphone 4. I'm trying to find
a theme or plugin that might be able to
resolve this issue. If you have any suggestions, please share.
With thanks!
Spamassassin 自動學習 | 豬窩
Hi, I think your website might be having browser compatibility issues.
When I look at your blog in Ie, it looks fine but when opening in Internet Explorer,
it has some overlapping. I just wanted to give
you a quick heads up! Other then that, terrific blog!
Spamassassin 自動學習 | 豬窩
I was able to find good info from your blog posts.
Spamassassin 自動學習 | 豬窩
Awesome things here. I'm very glad to see your post. Thanks so much and I am looking forward to
contact you. Will you kindly drop me a e-mail?