小弟在 spamassassin 中設定檢查如下的規則
required_score 50.0
header SUBJECT_SPAM_1 Subject =~ /thought/i
describe SUBJECT_SPAM_1 Subject seems SPAM
score SUBJECT_SPAM_1 200
header SUBJECT_SPAM_2 Subject =~ /remembered/i
describe SUBJECT_SPAM_2 Subject seems SPAM
score SUBJECT_SPAM_2 200
header LOCAL_RCVD Received =~ /.*(\S+\.example\.com\.tw)/
describe LOCAL_RCVD Received from office Mail
score LOCAL_RCVD -1000
定義滿 50 分則視為 spam
然後進行測試
從公司內部發 mail 主旨帶有 上述的二個關鍵字
remembered & thought
觀察 X-Spam-Status 會回報檢查到規則 SUBJECT_SPAM_1 及 SUBJECT_SPAM_2
同時因有查到 規則 LOCAL_RCVD 所以最後分數判斷為 800 不為 spam
在從公司外部主機發同樣帶有 remembered & thought 的主旨之mail
但是卻遇到會去檢查規則 LOCAL_RCVD 因此也被判為非 spam
反而失去公司內部所發才不視為 spam 的用意
這是我定義錯誤還是公司內部發的 mail 規則扣的分數太多所致嗎?