rspamd/rspamd.com

Wrong default value in spf.conf

Closed this issue · 0 comments

Hi,

sorry if this is in a wrong format or should be reported as a bug. This is my first time opening an issue on GitHub.

In local.d/spf.conf as well as in the docs on rspamd.com we have the following entry: min_cache_ttl = 5m;

This is computed to 5.000.000 seconds and not to five minutes. Dumping the current config using rspamadm configdump verifies this, as well as the logfiles of rspamd showing an entry of "5000000" seconds.
This should maybe be adjusted to min_cache_ttl = 300 so that we get 5 minutes/600 seconds in the end.

I noticed as well that using the default configuration results in the LRU cache having more entries than its configured limit.
2024-03-25 09:20:24 #88015(normal) <69a45a>; task; rspamd_spf_maybe_return: stored SPF record for xyz.com (0xd853e6669dcf3900) in LRU cache for 5000000 seconds, 20142/2000 elements in the cache
Not sure if this is intended.