我正在尝试通过 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
。