Spamassassin 無法使用 user_scores_custom_query 規則解析配置行

Spamassassin 無法使用 user_scores_custom_query 規則解析配置行

我試圖透過 MySQL 設定 spamassassin 每個使用者設定文件,但出現此錯誤:

Sep  8 12:09:13.668 [12307] warn: config: failed to parse line, skipping, in "/etc/mail/spamassassin/local.cf": user_scores_custom_query SELECT preference, value FROM _TABLE_ WHERE username = _USERNAME_ OR username = '$GLOBAL' OR username = CONCAT('%',_DOMAIN_) ORDER BY username ASC

但我看不出這個配置行有什麼問題,有人可以幫助我嗎?

編輯:這是 local.cf 的全部內容。

required_hits 5.0
report_safe 0
required_score 5
rewrite_header Subject [SPAM]

user_scores_dsn DBI:mysql:spamassassin:localhost:3306
user_scores_sql_password db_username
user_scores_sql_username db_pass
user_scores_custom_query SELECT preference, value FROM _TABLE_ WHERE username = _USERNAME_ OR username = '$GLOBAL' OR username = CONCAT('%',_DOMAIN_) ORDER BY username ASC

答案1

透過快速查看文檔,我推斷出這被稱為user_scores_sql_custom_query而不是user_scores_custom_query

相關內容