Skip to content

Default mailbox quota and a free-space floor for the mail queue - #33

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

byjpr wants to merge 1 commit into
claude/admiring-planck-25cvzffrom
claude/fix-9-quota

Conversation

@byjpr

@byjpr byjpr commented Oct 9, 2026

Copy link
Copy Markdown
Owner

Closes #9

Changes

  • settings.defaultQuota (default "5G") feeds mailserver.quota.defaults.perUser. Every mailbox without its own quota is capped, so one flooded mailbox can't fill the disk. Over-quota mail is rejected at SMTP time (552 5.2.2 Mailbox is full) through Dovecot's quota-status policy service.
  • A build warning when defaultQuota = null.
  • Postfix queue_minfree = 4 × messageSizeLimit (100 MiB by default). When free space runs low, Postfix answers 452 and senders retry, instead of the disk filling until Postfix and Dovecot fail for everyone.

Disk-usage alerting is part of #7 / #31.

Testing

  • The generated dovecot.conf contains quota user { driver = count; storage_size = 5G }, and main.cf contains queue_minfree = 104857600.
  • 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.defaultQuota (5G) applies to every mailbox without its own quota,
and the build warns when it is set to unlimited. Postfix's queue_minfree
(4x the message size limit) makes it answer 452 (retry later) instead of
filling the disk completely.

Closes #9

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.

[Medium] Disk exhaustion: no default mailbox quota

2 participants