Skip to content

Fix actions.conf syntax#95

Merged
vstakhov merged 1 commit intorspamd:masterfrom
Volker-Weissmann:master
Mar 29, 2026
Merged

Fix actions.conf syntax#95
vstakhov merged 1 commit intorspamd:masterfrom
Volker-Weissmann:master

Conversation

@Volker-Weissmann
Copy link
Copy Markdown
Contributor

@Volker-Weissmann Volker-Weissmann commented Mar 29, 2026

Currently, docs.rspamd.com recommends invalid syntax for your config files. This PR fixes this.

If I put this in my /etc/rspamd/local.d/actions.conf:

actions = {
    reject = 15;          # Refuse message
    add_header = 6;       # Mark as spam
    greylist = 4;         # Temporary delay
}

configtest complains:

# rspamadm configtest
unknown element in actions section: actions
nested section: actions { actions { ... } }, it is likely a configuration error
action actions has no threshold being set and it is not a no threshold action
rcl parse error: invalid action definition for: 'actions'
syntax BAD

But if I put this in my /etc/rspamd/local.d/actions.conf

reject = 15;          # Refuse message
add_header = 6;       # Mark as spam
greylist = 4;         # Temporary delay

everything seems to work

# rspamadm configtest
syntax OK

@vstakhov
Copy link
Copy Markdown
Member

Yeah, that's a good catch, thank you!

@vstakhov vstakhov merged commit 2eadfdb into rspamd:master Mar 29, 2026
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