[Rspamd-Users] How to change greylist module threshold (or force it) for certain mails ?
Michal Soltys
msoltyspl at yandex.pl
Tue Oct 5 14:10:33 UTC 2021
Hi,
So far I've tried roughly three ideas, but none so far worked correctly:
1) via multimap in prefilter mode
forced_greylist {
type = "rcpt";
filter = "email:user";
map = [ 'testg' ];
symbol = "RCPT_TESTG";
description = "Greylist force";
score = 0.0;
prefilter = true;
action = "greylist";
}
This caused any emails addressed to testg@ to end in a greylist "loop" -
any retries attempted by the remote server (after the required 5min
timeout) ended again in a greylisted state.
2) via settings
boost_greylist {
id = "boost_greylist";
priority = high;
rcpt = "/^testg@/";
symbols = [ RCPT_TESTG ];
apply = {
actions {
greylist = -5.0;
}
}
}
This correctly added RCPT_TESTG symbol to all mails addressed to testg@
- but the -5.0 adjustment had no effect whatsoever.
3) via settings + force actions
In addition to 2:
rules {
force_greylist {
action = "greylist";
expression = "RCPT_TESTG";
honor_action = [ "add header", "reject" ];
}
}
This ends same as in case #1 - endless greylist "loop".
Is there any way to actually make this work ?
More information about the Users
mailing list