Skip to content

Make greylisting configurable and document what it delays - #47

Open
byjpr wants to merge 1 commit into
claude/admiring-planck-25cvzffrom
claude/fix-24-greylisting
Open

byjpr wants to merge 1 commit into
claude/admiring-planck-25cvzffrom
claude/fix-24-greylisting

Conversation

@byjpr

@byjpr byjpr commented Oct 9, 2026

Copy link
Copy Markdown
Owner

Closes #24

Correction to the issue

The issue said greylisting delays all first-contact mail. Rspamd's greylist module (src/plugins/lua/greylist.lua) only greylists messages whose score is already at or above greylist_min_score, which defaults to the greylist action threshold of 4. Clean mail from well-configured senders, including most 2FA codes and password resets, is not delayed. Only mail that already looks suspicious gets its first attempt deferred.

Changes

  • settings.greylisting = { enable = true; minScore = 4; } writes local.d/greylist.conf:
    • greylist_min_score = <minScore> when enabled;
    • enabled = false; when disabled.
  • The settings.nix comment explains the real behaviour and the trade-off.

Testing

  • Default config renders greylist_min_score = 4;.
  • The CI fixture (enable = false) renders enabled = false;.
  • All 5 provider example systems build. nixfmt, shellcheck and tofu validate pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_01G22o7QQ17GRtkCqpJNFr9B


Generated by Claude Code

settings.greylisting.enable/minScore control Rspamd's greylisting.
Greylisting only applies to mail that already scores >= minScore (4 by
default); clean mail is not delayed, which the settings comment now says.

Closes #24

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G22o7QQ17GRtkCqpJNFr9B
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.

[Low] Greylisting delays first-contact mail (2FA codes, password resets) with no way to tune it

2 participants