Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Quota Warning to user mailbox if user mailbox reaches 90% of allowed space #3054

Open
mas1701 opened this issue Aug 30, 2023 · 4 comments

Comments

@mas1701
Copy link

mas1701 commented Aug 30, 2023

Impacted versions

  • OS Type: any supported
  • OS Version: any supported
  • Database Type: any supported
  • Database version: any supported
  • Modoboa: 1.17.0 or newer
  • installer used: N/A
  • Webserver: any supported

Steps to reproduce

Current behavior

Users using MS Outlook. Unfortunately, Outlook does not show mailbox quotas or quota warnings, except for MS Exchange mailboxes. Deliberately, I'd guess. Therefore, users IMAP mailboxes fill up to the point where no new mail can be delivered.

Recommending users to switch to another e-mail client like Thunderbird is no solution in a business environment where a lot of computers would be affected by this change. With cursing IT admins pushing for Microsoft 365 instead, despite GDPR problems.

Expected behavior

While this is not Modoboa's fault at all, I'd suggest a way to send automatic warnings to users consuming more than 80%, 90% oder 95% of their quota or having less than 50 MB / 100 MB free, whichever is reached first.

Possible solution

A warning plugin that sends quota warnings on a per-mailbox level to affected users in danger of quota overrun. Customizable text preferred.

As an intermediate solution, a quick-and-dirty hack would be acceptable.

@tonioo
Copy link
Member

tonioo commented Aug 31, 2023

@mas1701
Copy link
Author

mas1701 commented Sep 2, 2023

@mas1701 Have you checked https://doc.dovecot.org/configuration_manual/quota/#quota-warning-scripts ?

Yes, @tonioo , thanks!

I already noticed this Dovecot-internal feature, but currently, I'm experiencing some trouble getting dovecot-lda to work at all. So far, dovecot-lda has yet to deliver any mail to a user's mailbox, even a simple test does not work. I'm on Debian 10 btw.

I will however check the information you provided, since there seem to be some minor differences here and there. Maybe it helps.

@mas1701
Copy link
Author

mas1701 commented Sep 3, 2023

Got quota warnings to work now, after fixing some permissions, however there is one strange message:

Sep 3 03:40:36 mailsrv dovecot: lda(E-MAIL-ADDRESS-HERE)<106566>: Error: quota: Failed to get quota resource STORAGE_BYTES for INBOX: quota-dict: dict_lookup(priv/quota/storage) failed: Connection closed (reply took 0.000 secs (0.001 in dict wait, 0.000 in other ioloops, 0.000 in locks)) - copying mail anyway

Although it says "error", not "warning", I'm still getting the correct quota warning mail.

@tonioo
Copy link
Member

tonioo commented Oct 23, 2023

@mas1701 Don't you see anything else interesting in your logs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants