Skip to content

Use standard custom rule path in examples#91

Open
Chostakovitch wants to merge 2 commits intorspamd:masterfrom
Chostakovitch:master
Open

Use standard custom rule path in examples#91
Chostakovitch wants to merge 2 commits intorspamd:masterfrom
Chostakovitch:master

Conversation

@Chostakovitch
Copy link

Hey there!

I wrote my first rules using the tutorial and I found the comment hinting /etc/rspamd/local.d/custom_rule.lua a bit misleading.

I wonder if it is an old way of autoloading rules? Or maybe the file is meant to be manually included in a plugin?

But I think most readers will first try simple rules and expect them to be loaded.

If you agree, here's a mini-PR. Have a nice day!

@fatalbanana
Copy link
Member

fatalbanana commented Feb 20, 2026

It should be lua.local.d; rspamd.local.lua is the old (if still valid) way; certainly not local.d.

@Chostakovitch
Copy link
Author

@fatalbanana

rg -l lua.local.d
changelogs/3.11.0.md
static/rss/changelog.xml
src/data/changelogData.js

rg -l /etc/rspamd/rspamd.local.lua
docs/faq.md
docs/tutorials/clickhouse_analytics.md
docs/tutorials/migration.md
docs/developers/writing_rules.md
docs/developers/examples.md
docs/about/features.md
docs/modules/external_relay.md

It seems like the new path never made its way to the docs. Is it a good idea to update /etc/rspamd/rspamd.local.lua occurences to the new path?

@Chostakovitch
Copy link
Author

@fatalbanana I proposed something but not sure about wording.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants