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

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!

作者 best web hosting 2020 @ 00:15, 2020-08-07

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.

作者 web hosting services @ 20:57, 2020-08-07

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?

作者 web hosting sites @ 16:34, 2020-08-11

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.

作者 best web hosting company @ 17:40, 2020-08-11

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!

作者 web hosting sites @ 07:36, 2020-08-14
發表迴響
 authimage