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 自動學習 | 豬窩

Hello There. I discovered your blog using msn. That is an extremely well written article.
I'll be sure to bookmark it and return to read more of your
useful information. Thanks for the post. I will definitely return.

作者 best website hosting @ 08:17, 2020-07-22

Spamassassin 自動學習 | 豬窩

I couldn't resist commenting. Exceptionally well written!

作者 cheapflight @ 21:17, 2020-07-27

Spamassassin 自動學習 | 豬窩

Hi! Would you mind if I share your blog with my twitter group?
There's a lot of folks that I think would really
appreciate your content. Please let me know. Many thanks

作者 delta air lines @ 08:54, 2020-07-31

Spamassassin 自動學習 | 豬窩

Hey I am so happy I found your blog, I really found you by accident,
while I was browsing on Google for something else, Anyhow I am here now and would just like to say kudos for a fantastic post and a all round thrilling blog (I also love the theme/design), I don’t
have time to read it all at the minute but I have book-marked it
and also added your RSS feeds, so when I have time I will be back
to read a lot more, Please do keep up the awesome work.

作者 web hosting company @ 01:34, 2020-08-06

Spamassassin 自動學習 | 豬窩

Amazing! Its in fact awesome post, I have got much clear idea regarding from this post.

作者 best web hosting sites @ 01:54, 2020-08-06
發表迴響
 authimage