Combine rewrite-subject with add-header?

991 views
Skip to first unread message

Frank Schnell

unread,
Sep 13, 2017, 1:55:01 PM9/13/17
to rspamd
Hello, is there a way to retain the X-Spam add-header action when also have a rewrite-subject action?

Maybe the workaround is use the milter header module's "spam-header" and change its header name to "X-Spam"? But I'm already using "spam-header" so I can't repurpose it, is that the only workaround?

Thomas Plant

unread,
Sep 15, 2017, 4:22:23 AM9/15/17
to rspamd
Hello,

I added to override.d/metrics.conf:

subject = "*** SPAM *** %s";

actions
{
    reject
= 15;
    rewrite_subject
= 6;
    add_header
= 6;
    greylist
= 4;
}

And it rewrites subject and adds header when reaching score of 6.

I'm just a beginner with rspamd, so be carefully with my advices ;-)

Greetings,
Thomas
Reply all
Reply to author
Forward
0 new messages