[Rspamd-Users] Whitelisting sender domains

J. Fahrner jf at fahrner.name
Tue Apr 27 09:37:19 UTC 2021


Am 2021-04-27 08:44, schrieb FredZ via Users:
> /etc/rspamd/local.d/multimap.conf
> WHITELIST_SENDER_DOMAIN {
>       type = "from";
>       filter = "email:domain";
>       map = "/etc/rspamd/local.d/whitelist.sender.domain.map";
>       score = -1000.0
>   }
> 
> 
> /etc/rspamd/local.d/whitelist.sender.domain.map
> whitelisteddomain.tld
> whitelisted.domaon.tld
> 
> Obviously whitelisteddomain.tld and whitelisted.domaon.tld are the
> actual domains I want whitelisted.
> 
> However this doesn't seem to be working as emails from the domains in
> the list are still being marked as spam.

Are you sure you are testing the correct field? Usually type=from checks 
the envelope from. You can test the result by pasting the email source 
code into "scan/learn" in the webui. Under "test selectors" you can show 
the field content you are checking for.

If you want to check the header from field, use:

type = "header";
header = "From";

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0xA9189208.asc
Type: application/pgp-keys
Size: 5499 bytes
Desc: not available
URL: <https://lists.rspamd.com/pipermail/users/attachments/20210427/81c78726/attachment.bin>


More information about the Users mailing list