My mistake. Apologies.
My actions file now reads:
# cat actions.conf
#actions {
reject = 12;
add_header = 5;
rewrite_subject = 6;
subject = "***SPAM*** %s";
greylist = null;
#}
metrics {
symbol "MX_INVALID" {
score = 1.0;
description = "No connectable MX";
one_shot = "true"; }
symbol "MX_MISSING" {
score = 2.0;
description = "No MX record";
one_shot = "true"; }
symbol "MX_GOOD" {
score = -0.5;
description = "MX was ok";
one_shot = "true"; }
}
# rspamadm configtest
unknown element in actions section: metrics
symbol 'RBL_SPAMHAUS_CSS' has its score defined but there is no corresponding rule registered
symbol 'RBL_SPAMHAUS_XBL' has its score defined but there is no corresponding rule registered
symbol 'RBL_SPAMHAUS_PBL' has its score defined but there is no corresponding rule registered
symbol 'RBL_SPAMHAUS_DROP' has its score defined but there is no corresponding rule registered
symbol 'RBL_SPAMHAUS_SBL' has its score defined but there is no corresponding rule registered
symbol 'RBL_SPAMHAUS' has its score defined but there is no corresponding rule registered
syntax OK
This is now recognised:
X-Spamd-Result: default: False [11.00 / 12.00];
But of course my metrics no longer work. Now that metrics.conf is no longer valid, where should we put define metrics?