> For the record, this still adds the original 'X-Spam' header which I
> thought gets overridden by 'spam-header'.
That configuration works as expected in my testing:
"milter": {
"add_headers": {
"X-Spam-Flag-My_Unique_Header": "Yes",
"X-Rspamd-Server": "localhost.localdomain"
},
"remove_headers": {
"X-Spam-Flag-My_Unique_Header": 1,
"X-Rspamd-Server": 1
}
}
Note that "hide" isn't a valid configuration element; it would not
cause you trouble however.
Best,
-AL.