[Rspamd-Users] Unable to disable rspamd for a recpt

George Asenov george.asenov at wpx.net
Fri Dec 2 15:03:08 UTC 2022


Hello,

I  meant only to bump the question up if it is missed ...
Anyway
settings {} is included here just to clarify where I added the sniped.
It is added in the right place rspamd/local.d/settings.conf  without 
settings {} section. Sorry if mislead someone.

But in https://rspamd.com/doc/configuration/settings.html
clearly says:

/quote

Important notice: This is NOT applicable to want_spam option. This 
option disable ALL Rspamd rules, even history or data exporting. 
Actually, it is a full bypass of all Rspamd processing

/endquote

But it don't disable anything!

On 02-Dec-22 4:01 PM, C. Bernard via Users wrote:
> Hi there
> 
> Zitat von "G.W. Haywood via Users" <users at lists.rspamd.com>:
>> Hi there,
>>
> [..]
>>
>> Please show the entire settings file, not just a part of it.
>>
>> Quoting the documentation at
>>
>> https://rspamd.com/doc/configuration/settings.html
>>
>> [quote]
>> Settings structure
>>
>> The settings file should contain a single section called “settings”:
>> [/quote]
>>
>> Are you sure that you have such a settings section, and have you
>> placed your "whitelist" settings within it?  Something like
>>
>> settings {
>>   ...
>>   ...
>>
>>   whitelist { ... }
>>
>>   ...
>>   ...
>> }
> 
> Which would not be correct. The official example here:
> https://rspamd.com/doc/configuration/settings.html
> never shows "settings { .... }" in any example.
> The quoted sentence above is, in my opinion, wrong. It shall not contain 
> the settings (key words) but rather
> only the content of a settings section.
> What is found in the settings.conf file by rspamd is put into a settings 
> section by rspamd.
> 
> I usually test this with the rspamadm configdump command.
> This has 2 nested settings when you put "settings {" there again:
> settings {
>      settings {
>          authenticated {
>              authenticated = true;
>              priority = "high";
> 
> Which won't work, (i guess). Ah it doesn't:
> output of configdump command:
> nested section: settings { settings { ... } }, it is likely a 
> configuration error
> 
> But I often fail to find the information I seek. It must be me.
> 
> for example:
> what is the difference of
> 
> /quoting the man page:
>         Also for each command you can check list of available 
> command_options
>         by running
> 
> 
>                rspamadm help command
>                rspamadm command --help
> /end_quote
> But the produce different output:
> 
> [me at beastly /usr/local/etc/rspamd/local.d]# rspamadm help configdump
> Rspamadm 3.4
> Usage: rspamadm [global_options] command [command_options]
> 
> Showing help for configdump command
> 
> Perform configuration file dump
> 
> Usage: rspamadm configdump [-c <config_name> [-j --compact -m] [<path1> 
> [<path2> ...]]]
> Where options are:
> 
> -j: output plain json
> --compact: output compacted json
> -c: config file to test
> -m: show state of modules only
> -h: show help for dumped options
> --help: shows available options and commands
> 
> AND:
> [me at beastly /usr/local/etc/rspamd/local.d]# rspamadm  configdump --help
> Usage:
>    rspamadm [OPTION?] configdump - dumps Rspamd configuration
> 
> Summary:
>    Rspamd administration utility version 3.4
>    Release id: release
> 
> Help Options:
>    -?, --help               Show help options
> 
> Application Options:
>    -j, --json               Json output (pretty formatted)
>    -C, --compact            Compacted json output
>    -c, --config             Config file to test
>    -h, --show-help          Show help as comments for each option
>    -s, --show-comments      Show saved comments from the configuration file
>    -m, --modules-state      Show modules state only
>    -g, --groups             Show symbols groups only
>    -d, --symbol-details     Show full symbol details only
>    -T, --skip-template      Do not apply Jinja templates
> 
> /end_output
> 
> I looked for info what the '-g' does. And couldn't find it. (I saw a it 
> used in a probable bug report) I used the wrong help command, I see now.
> (I just found my answer a minute ago...), so my question would be now:
> 
> Why is the definition about symbol R_SUSPICIOUS_URL
> not output with rspamadm configdump
> command, but only when using command option  -g
> ?
> I was of the opinion that rspamadm configdump dumps all ( complete) 
> config including all overrides and local.d changes and additions. I 
> seems not to.
> 
> 
>>
>>> It's been 2 days with no answer?
> 
> I have send mails to the list, that we never answered and some even 
> weren't published. So that's no news to me. There is mostly only a small 
> group of people that could answer correctly, and I am not amongst them 
> most of the time...
> 
> Cheers
> C.
> 
> 
> 
> 

-- 
Warm regards
George A.
WPXHosting


More information about the Users mailing list