Trouble with add header, rewrite subject.

Daku

Verified User
Joined
Sep 24, 2015
Messages
18
Hello, i need to find configuration where was added headers, and subject change.

If i set in local.d/actions.conf
reject = 19.9;
add_header = 8;
greylist = 4;
rewrite_subject = 8.01;
subject = "[SPAM] %s";
and /etc/rspamd/local.d/milter_headers.conf

#
# This file will be overwritten by the next rpm update
# use /etc/rspamd/override.d/file.conf' - to override the defaults
#

#add extended headers (see score and symbols in header)
extended_spam_headers = true;

# Add score headers for authenticated users or local IP
skip_authenticated = false;
skip_local = false;

# Add the known spam header of spamassassin
# "X-Spam" header of rspamd is not removed
use = ["spam-header"];
routines {
spam-header {
header = "X-Spam-Flag";
value = "Yes";
}
}

but directadmin force thier *****SPAM*****


At set header, whole charset in message was cracked.

It must be in config.


Found !!!

# add x-spam-status header if message is not ham
warn
condition = ${if eq{$acl_m_rspamd_on}{1}}
#when rspamd hangs, exim just adds empty spam_score/spam_score_int, and writes 'Yes, spam_score=, ...' in the headers
condition = ${if def:spam_score}
! condition = ${if match{$spam_action}{^no action\$|^greylist\$}}
set acl_m_spam_subject = ${perl{get_spam_subject}}
add_header = X-Old-Subject:$h_Subject
--> remove_header = Subject
--> add_header = Subject:$acl_m_spam_subject$h_Subject:
add_header = X-Spam-Status: Yes, score=$spam_score, +EASY_IS_SPAM total spam score
set acl_m_easy69 = ${eval:$acl_m_easy69 + EASY_IS_SPAM}

There it loose charset coding and in mail it looks like i put ASCI with UTF8 encoding ...
 
Last edited:
Back
Top