Skip to content

Feature: quota per mailbox#1469

Merged
erik-wramner merged 4 commits intodocker-mailserver:masterfrom
youtous:pr-quota-feature
Apr 26, 2020
Merged

Feature: quota per mailbox#1469
erik-wramner merged 4 commits intodocker-mailserver:masterfrom
youtous:pr-quota-feature

Conversation

@youtous
Copy link
Copy Markdown
Contributor

@youtous youtous commented Apr 24, 2020

As mentioned in #1028, restricting quota per mailbox is an interesting feature. This PR implements a quota per mailbox.

Details:

  • New commands: setquota and delquota
  • New optional configuration file dovecot-quotas.cf
  • Quota warning (email sent to the user) when quota reached 80 and 95%, and when quota is below 80%
  • Dovecot-quota and Postfix-quota are now synced (use doveadm quota get -u user@domain for getting quota informations)
  • Supports imap-quota (IMAP clients requesting quota usage information)
  • Quota per mailbox is DISABLED when using SMTP_ONLY
  • Quota per mailbox is DISABLED when using LDAP_ENABLE (I don't use LDAP, feel free to implement it if you want, it should not be difficult)

TODO:

  • Fix tests
  • When merged, update the wiki

youtous added 4 commits April 24, 2020 14:56
add postfix service quota check


check-for-changes on quotas


setquota command


fix checkforchanges quota


addquota verify user exists


add setquota in setup.sh


merging addquota into setquota


test quota commands


add ldap tests for dovecot quota


fix smtp only quota postfix rules


test postfix conf


add quota test integration


add quota exceeded test


add wait analyze


fix tests


fix setup typo


add test fixes


fix error output


wip


update startup rules


fix setup


fix setup tests


fix output commands


remove quota on remove user


try to fix sync limit mails


check if file exists


fix path


change used quota user


fix post size


check if quota file exists


update tests


configure virtualmailbox limit for dovecot


last fix


fix quota expr


relax dovecot tests


auto create dovecot-quotas


fix dovecot apply quota test


wip quota warning


trying to fix get dovadm quota


dovecot applies fix


fix quota warning lda path


test count mail on quota


fix quota warning permissiosn


fix test
fix quota warning test: wait for postfix to be UP


increase postfix restart delay
@youtous
Copy link
Copy Markdown
Contributor Author

youtous commented Apr 25, 2020

I can confirm imap-quota is working: tested with rainloop:

screenshot

@erik-wramner
Copy link
Copy Markdown
Contributor

Looks like a nice feature, good work!

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