Ms7 Search
Google 搜尋 翻譯
calendar
« 五月 2025 »
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
近期文章
文章分類
網站連結
Syndicate

« | »

Spamassassin 自動學習

2007-07-09 @ 19:42 in Linux

#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 ???? | ??

作者 seo services vancouver @ 04:00, 2012-03-03

Spamassassin 自動學習 | 豬窩

Valuable info. Fortunate me I discovered your website accidentally, and I'm surprised why this twist of fate did not
happened in advance! I bookmarked it.

作者 think g @ 23:26, 2020-06-21

Spamassassin 自動學習 | 豬窩

Right away I am ready to do my breakfast, later than having my breakfast coming yet again to read more news.

作者 g rsacwgxy @ 15:15, 2020-06-22

Spamassassin 自動學習 | 豬窩

Cbd oil that works 2020
Great post. I was checking continuously this blog and I am impressed!
Very useful info particularly the last part :) I care
for such info much. I was seeking this particular info for a
long time. Thank you and good luck. best rated cbd oil
http://t.co/4kPhN7Ek0L cbd oil that works 2020 http://t.co/4kPhN7Ek0L

作者 http://t.co/4kPhN7Ek0L @ 13:36, 2020-06-24

Spamassassin 自動學習 | 豬窩

There's certainly a lot to know about this issue.
I love all the points you have made.

作者 bidadigeleyarabalaga.org @ 21:48, 2020-06-26
1 2 3 4 5  下一篇»
發表迴響
 authimage