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 自動學習 | 豬窩
Hey there! I know this is kinda off topic but I'd figured I'd ask.
Would you be interested in exchanging links or maybe guest writing a blog
article or vice-versa? My site addresses a lot of the same subjects as
yours and I believe we could greatly benefit
from each other. If you might be interested feel free to send me an e-mail.
I look forward to hearing from you! Awesome blog by the way!
Spamassassin 自動學習 | 豬窩
Howdy, i read your blog from time to time and i
own a similar one and i was just curious if you get a lot of spam remarks?
If so how do you stop it, any plugin or anything you can recommend?
I get so much lately it's driving me mad so any help is very much appreciated.
Spamassassin 自動學習 | 豬窩
excellent points altogether, you just received a emblem new reader.
What may you recommend about your put up that you simply
made a few days in the past? Any certain?
Spamassassin 自動學習 | 豬窩
Hi there, i read your blog from time to time and i own a similar one and i was just curious if you get a lot of spam feedback?
If so how do you protect against it, any plugin or anything you can suggest?
I get so much lately it's driving me insane so any support is very much appreciated.
Spamassassin 自動學習 | 豬窩
When I initially commented I seem to have clicked
the -Notify me when new comments are added- checkbox and now
whenever a comment is added I get four emails with the exact same comment.
There has to be a means you can remove me from that service?
Many thanks!