On 16/07/2024 08:53, Mariusz Piasecki via dovecot wrote:
Hi,
unfortunately no :(
In sql query instead of variable %d I get user
UPDATE used_domain_quota SET bytes=bytes+4359,messages=messages+1 WHERE domain = 'h.user@example.com';
and domain can receive emails when over quota.
On 15.07.2024 20:15, yoh2010--- via dovecot wrote:
Mariusz Piasecki, hello.
I have a similar problem after migrating from Debian 10 (Dovecot 2.3.4) to Debian 12 (Dovecot 2.3.19). Have you found a way to solve the problem?
Best regards, Evgeniy Rusachenko
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
Hi looks like a bug introduced as an unintended regression between 2.3.16 and 2.3.17. In 2.3.17 the username field is always taken as the default i.e. username. The %d override, though it is read when parsing the config is not used for the lookup.
The quota dict is going away in 2.4 which is a strong indication that no patch would be accepted, since the code is no longer present in the main branch. You'll probably want to start looking into quota count plugin and quota clone plugin if you still want to publish the quota to mysql tables. I don't know if it's possible to use a domain quota with quota count plugin. I didn't see an explicitly documented way.
John