[Postfix/Rspamd] Do not reject unauthenticated sender mismatches but rewrite their subject and assign symbol SPOOFED_SENDER with score 1.0

This commit is contained in:
andryyy
2017-10-04 23:16:39 +02:00
parent 405c49fb0a
commit 073c6c6e73
5 changed files with 26 additions and 7 deletions

View File

@@ -2,7 +2,7 @@ rules {
DKIM_FAIL {
action = "add header";
expression = "R_DKIM_REJECT & !MAILLIST & !MAILCOW_WHITE & !MAILCOW_BLACK";
require_action = ["no action", "greylist"];
require_action = ["no action", "greylist", "soft reject"];
}
VIRUS_FOUND {
action = "reject";
@@ -19,4 +19,9 @@ rules {
expression = "WHITELISTED_FWD_HOST";
require_action = ["greylist", "soft reject"];
}
ADD_UNAUTH_SUBJ {
action = "rewrite subject";
subject = "[Unauth] %s";
expression = "SPOOFED_SENDER";
}
}