New mail quota ignored after limit has been exceeded

Hi!
I have same problem with Mail Quota
and its not solved for me

Nethserver: 7.4.1708 (Final) + last upd
Module: Email

rpm -qa nethserver-mail-server
nethserver-mail-server-1.10.18-1.ns7.noarch

I have default mail quota 2GB per user

I set custom mail quota for user in 3GB
in page Managment-Email addresses i see 3GB
in page Status-Mail quota i see 2GB

i open ssh and run command
doveadm quota recalc -u USERNAME
and i see 3GB for user
and in page Status-Mail quota i see 3GB

But

if open roundcube web mail
or Thunderbird (IMAP) for this user

Mail quota is set to 2GB in page Status-Mail quota

i run command doveadm quota get -u USERNAME
and i see 3GB for user

if i send message from thunderbird or roundecube webmail
message sended, but not copied in folder Sent with error

sorry my English…

1 Like

Thank you for reporting it @xcod

So the mail quota value reported by clients is not the expected one. Did I understand correctly?

If that’s the case please consider the quota is updated when a new message arrives.

What is the error message?

2 Likes

Yes

The quota is not updated when a new message arrives.

Roundecube web mail error:

An error occurred while saving the sent message. Can not perform the operation. There is no free disk space.

Thunderbird error:

[OVERQUOTA] Quota exceeded (mailbox for user is full)

But message sends fine in Thunderbird and Roundecube, but not copied in Sent folder.

1 Like

Please have a look at /var/log/maillog, and see if you can find any relevant log message.

Then find the maildirsize file of your user and paste here its contents

find /var/lib/nethserver/vmail/ -name maildirsize
...
cat /var/lib/nethserver/vmail/USERNAME/Maildir/maildirsize

Just to have an idea of mailbox disk size (should not be exactly the same of mail quota)

du -h -s /var/lib/nethserver/vmail/USERNAME

cat /var/lib/nethserver/vmail/USERNAME/Maildir/maildirsize
2147483648S
2236622510 2033

2.1G /var/lib/nethserver/vmail/USERNAME

Please tell me if I’m wrong: to reproduce

  • USER quota is 2GB
  • USER fills his mailbox and goes overquota
  • USER starts to see errors (and messages are refused)
  • sysadmin increases quota up to 3GB from server-manager UI
  • USER still has errors

Yes :slight_smile:

In UI Managment-Email addresses
i select a user and set “Custom mailbox quota” 3GB

1 Like

Could you paste the output of

config show dovecot
db accounts show
1 Like

see private message :grinning:

Well I see

dovecot=service
     QuotaDefaultSize=20
     QuotaStatus=enabled

And

user@domain=user
     MailQuotaCustom=30
     MailQuotaType=custom

now, try again to increase the user quota from server manager, then check the messages log:

grep -B 20 nethserver-mail-quota-recalc /var/log/messages

That action should apply the new quota immediately…

i increase quota from 3GB to 4GB

see private message

esmith::event[9015]: Action: /etc/e-smith/events/mailbox-save/S95nethserver-mail-quota-recalc SUCCESS [0.090214]

…seems good!

cat /var/lib/nethserver/vmail/USERNAME/Maildir/maildirsize

Let’s see it again: what does it say?

4294967296S
2239335949 2037

1 Like

New quota applied: do you confirm?

New quota applied
but and the error has remained

The quota size has been written to disk :thinking:

I can’t figure out why clients aren’t updated… Can anybody reproduce it? /cc @quality_team

1 Like

do you see my last private message?
in UI Managment-Email addresses set 4GB
but in UI Status-Mail quota set 2GB
where does this value come from?
How is this related?

1 Like

Yep

From the maildirsize file. It is calculated by /usr/libexec/nethserver/mail-quota.

One explanation could be the default quota wins over the customized value.

Do you use POP3 access? Getmail? Groupware?

Could you attach the list of installed packages? Did you install anything by hand or from third-party repositories?

rpm -qa | grep ^neth

i use Thunderbird(pop3, imap), roundecube web mail
for this user i use only Thunderbird(IMAP) access and roundecube

rpm -qa | grep ^neth

nethserver-mail-server-1.10.18-1.ns7.noarch
nethserver-backup-data-1.3.2-1.ns7.noarch
nethserver-lang-en-1.2.4-1.ns7.noarch
nethserver-mail-filter-1.4.5-1.ns7.noarch
nethserver-release-7-5.ns7.noarch
nethserver-mail-smarthost-1.0.0-1.ns7.noarch
nethserver-ntp-1.1.3-1.ns7.noarch
nethserver-lib-2.2.6-1.ns7.noarch
nethserver-yum-1.4.1-1.ns7.noarch
nethserver-roundcubemail-1.2.9-1.ns7.noarch
nethserver-duc-1.4.3-1.ns7.noarch
nethserver-lsm-1.2.3-1.ns7.noarch
nethserver-httpd-admin-2.0.14-1.ns7.noarch
nethserver-mail-common-1.6.6-1.ns7.noarch
nethserver-backup-config-2.0.4-1.ns7.noarch
nethserver-hosts-1.2.2-1.ns7.noarch
nethserver-restore-data-1.2.3-1.ns7.noarch
nethserver-directory-3.2.3-1.ns7.noarch
nethserver-sssd-1.3.5-1.ns7.noarch
nethserver-unbound-1.1.0-1.ns7.noarch
nethserver-httpd-3.1.4-1.ns7.noarch
nethserver-mysql-1.1.3-1.ns7.noarch
nethserver-letsencrypt-1.1.4-1.ns7.noarch
nethserver-dnsmasq-1.6.6-1.ns7.noarch
nethserver-firewall-base-3.2.10-1.ns7.noarch
nethserver-phonehome-1.2.1-1.ns7.noarch
nethserver-openssh-1.2.1-1.ns7.noarch
nethserver-nethforge-release-7-0.3.ns7.noarch
nethserver-nut-1.3.1-1.ns7.noarch
nethserver-base-3.1.1-1.ns7.noarch
nethserver-php-1.2.0-1.ns7.noarch
nethserver-smartd-1.1.0-1.ns7.noarch
nethserver-antivirus-1.2.1-1.ns7.noarch

No

1 Like