[Rspamd-Users] white lists

natan natan at epf.pl
Tue Oct 24 15:36:28 UTC 2023


Hi
For test i use multimap.conf:

whitelist_users {
type = "from";
map = "redis+selector://rcpts_smtp_lower";
symbol = "whitelist_users";
condition = "rcpts_smtp_lower :is 'true'";
action = "add header = 'X-Whitelist: true'";
description = "Local rcpt whitelist";
score = -100;
}

redis-cli
127.0.0.1:6379> HGETALL rcpts_smtp_lower
1) "user at mydomain.ltd"
2) "true"

cat redis.conf
servers = "127.0.0.1";
expand_keys = true;

rspamd not whitlisted user at mydomain.ltd like not load whitelist_users

for test i create

local_wl_from { type = "from"; map = 
"$LOCAL_CONFDIR/local.d/local_wl_from.map.inc"; symbol = 
"LOCAL_WL_FROM"; description = "Local from whitelist";score = -100;}

and this works fine

Any idea ?




W dniu 24.10.2023 o 15:27, natan pisze:
> Hi
> I any one known working solutions or exaple konfigurations ?
>
> I try find in google but not found real informations
>
>
> W dniu 24.10.2023 o 14:06, natan pisze:
>> Hi
>> In documentations is "require" enable redis.expand_keys
>>
>> https://rspamd.com/doc/configuration/redis.html but I dont knwon eher 
>> I must require and how create example
>> like:
>> from: e-mail/domain
>> to: e-mail/domain
>> -- 
>
> -- 

--


More information about the Users mailing list