Repository navigation
fix(dovecot): exempt vmail from default quota - #342
Merged
Merged
Conversation
The vmail user stores all public folders, but Dovecot applied the default user quota to it too: once public folders together exceeded that limit, messages to them were rejected. Give vmail its own quota, unlimited by default, set by the new DOVECOT_VMAIL_QUOTA_MB environment variable. It applies only when the quota plugin is enabled. Assisted-by: Claude Code:claude-opus-5-5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Public folders are stored in the mailbox of the internal
vmailuser, which also got the default mailbox quota. When all public folders together grew bigger than that limit, new messages for them were rejected with "Quota exceeded". NethServer/dev#8305Now
vmailhas its own quota, which is unlimited by default, so the default quota limits only user mailboxes. Administrators can still limit the total size of public folders with the newDOVECOT_VMAIL_QUOTA_MBenvironment variable (value in MB). This is a command-line setting only, documented in the README. Installations get the fix automatically after the update.reload-configadds the quota fields to thevmailline of/etc/dovecot/userswhen quota is enabledtests/40__api/60__dovecot.robotHow to test
runagent -m mail1 python3 -c 'import agent ; agent.set_env("DOVECOT_VMAIL_QUOTA_MB", "60")'andrunagent -m mail1 systemctl --user reload dovecot:doveadm quota get -u vmailshows a 61440 KB limituser*vmail): still worksGenerated by Claude Code:claude-opus-5-5 with nethserver-pr