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