[Rspamd-Users] How to exclude authenticated users from checks?

Carsten Rosenberg cr at ncxs.de
Wed Nov 7 18:17:01 UTC 2018


Hey,

you can try disable the BAYES symbols directly and you can also adjust
scores in settings

> authenticated {
>         priority = high;
>         authenticated = yes;
>         # for a specific user
>         # user = "...";
>         apply {
>             groups_disabled = ["rbl", "spf", "neural", "policies"];
>             symbols_disabled = ["BAYES_HAM", "BAYES_SPAM"]
>             BAYES_SPAM = 1.0;
>         }
>             symbols ["WHITELIST_AUTHENTICATED"];
>     }

As there are special settings for local networks and authenticated users
by default you maybe want to add your server IPs to local_addr


On 07.11.18 16:35, Kai Schaetzl wrote:
> Kai Schaetzl wrote on Tue, 06 Nov 2018 15:36:40 +0100:
> 
>> apply "default" {
>>             #groups_disabled = ["rbl", "spf", "statistics"];
>>             groups_enabled = [""];
> 
> two things:
> 
> groups_enabled = [""];
> makes the whole entry disappear from the history in the webui?
> Shouldn't it get listed, anyway? This way it looks like no message got 
> processed.
> 
> apply "default" {
> (from examples, for instance rspamd.conf.local
> 
> should be:
> apply {
> 
> Then something like this works:
> 
> authenticated {
>         priority = high;
>         authenticated = yes;
>         # for a specific user
>         # user = "...";
>         apply {
>             groups_disabled = ["rbl", "spf", "neural", "policies"];
>             symbols ["WHITELIST_AUTHENTICATED"];
>         }
>     }
>     
> 
> Which makes me ask where to add symbols and scores nowadays. Website says 
> that metrics.conf is deprecated and to use actions.conf or groups.conf for 
> adding them. I tried adding a symbol to actions.conf, then to 
> rspamd.conf.local, but it isn't getting picked up. Do I have to enclose it 
> with metrics { } ?
> So, for the time being I added the symbols and scores to 
> local.d/metrics.conf. That works.
> Where and how is the recommended way? What about a local.d/symbols.conf ?

Symbols are now normally organized in groups, so when there is an
exiting config file in scores.d like rbl_group.conf make your
adjustments in local.d/rbl_group.conf

The new generic file should be local.d/groups.conf

#local.d/groups.conf
group "antivirus" {
  symbols = {
    "SOPHOS_VIRUS" {
      weight = 15;
      description = "Sophos found a Virus";
    }
}

--

Carsten


More information about the Users mailing list