1 (edited by bnobre 2022-10-27 21:57:48)

Topic: Questions about section "Post-migration"

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.2
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Ubuntu 22.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi,

In the ""Migrate old iRedMail server to the latest stable release" topic, the last part is the "Post-migration - Force Dovecot to recalculate mailbox quota". There are two steps in this part, one for "Dovecot-2.x" and other for "Dovecot-1.x and Dovecot-2.x".

I performed the first step with the command: "doveadm quota recalc -A".
But I was in doubt about the second set. What is this step second for? Should I perform this second step? What is dict quota and what is it for?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Questions about section "Post-migration"

Re-login via POP3/IMAP (or webmail) will trigger Dovecot to recalculate mailbox quota.

So there is no need to empty the quota table when you recalced the whole quota with doveadm already

3 (edited by bnobre 2022-10-28 03:36:45)

Re: Questions about section "Post-migration"

Thx,

So is the command below actually the same thing as re-login???
For MySQL and PostgreSQL backend:
mysql> USE vmail;
mysql> DELETE FROM used_quota WHERE username='user@domain.ltd';

4

Re: Questions about section "Post-migration"

just use doveadm to recalc all quatas and you are fine

5

Re: Questions about section "Post-migration"

Cthulhu wrote:

just use doveadm to recalc all quatas and you are fine

The command "doveadm quota recalc -A" ????

Nice... Thx dude