Einen Überblick über das Administrationstool KeyHelp der Keyweb AG und dessen Download gibt es auf https://www.keyhelp.de

Dieses Forum soll es interessierten Benutzern ermöglichen, sich über KeyHelp auszutauschen und Hilfe bei Problemen zu finden.

Quota is not working on email account

For questions about the usage of KeyHelp and the configuration of it services.
Antworten
martins
Beiträge: 9
Registriert: Mo 18. Nov 2019, 13:32

Quota is not working on email account

Beitrag von martins »

Hello dev team,

I have just installed KeyHelp on Ubuntu 18.04 on a machine with 1GB RAM, 150GB Disk Space, all work fine, but I am a bit worrying about disk quota allocation to the email accounts. I have set 1MB quota for an email account, but when the quota exceed for about 120%, the email account still send and receive the emails even with the 2MB attachment.

I tried to switch both webmail (Rainloop and Roundcube) but still the same.

One thing, quota service is inactive by default, I did enabling the quota service manually with the following command:

Code: Alles auswählen

service quota start
The status as follow

Code: Alles auswählen

root@my-server:~# service quota status
● quota.service - Initial Check File System Quotas
   Loaded: loaded (/lib/systemd/system/quota.service; disabled; vendor preset: enabled)
   Active: active (exited) since Thu 2019-11-21 11:58:06 +09; 14min ago
     Docs: man:quotacheck(8)
  Process: 3192 ExecStart=/usr/share/quota/quota-initial-check.sh (code=exited, status=0/SUCCESS)
 Main PID: 3192 (code=exited, status=0/SUCCESS)

Nov 21 11:58:06 my-server systemd[1]: Starting Initial Check File System Quotas...
Nov 21 11:58:06 my-server systemd[1]: Started Initial Check File System Quotas.
Repquota check

Code: Alles auswählen

root@my-server:~# repquota /
*** Report for user quotas on device /dev/sda2
Block grace time: 7days; Inode grace time: 7days
                        Block limits                File limits
User            used    soft    hard  grace    used  soft  hard  grace
----------------------------------------------------------------------
root      -- 6408512       0       0         133893     0     0
daemon    --      64       0       0              4     0     0
man       --    1876       0       0            141     0     0
www-data  --     536       0       0             12     0     0
systemd-network --      12       0       0              3     0     0
syslog    --    6428       0       0              9     0     0
_apt      --      24       0       0              4     0     0
lxd       --       4       0       0              1     0     0
dnsmasq   --       4       0       0              1     0     0
landscape --       8       0       0              4     0     0
pollinate --       4       0       0              1     0     0
falko  --      32       0       0             10     0     0
keyhelp   --  235492       0       0          11809     0     0
bind      --      12       0       0              3     0     0
mysql     --  187352       0       0            284     0     0
ftp       --       4       0       0              1     0     0
postfix   --      88       0       0             52     0     0
vmail     --   20648       0       0            201     0     0
opendkim  --      72       0       0             18     0     0
clamav    --  275336       0       0              9     0     0
postgrey  --   10324       0       0              8     0     0
debian-spamd --    2040       0       0             29     0     0
amavis    --    3848       0       0             34     0     0
client1   --  390916 1048576 1048576            998 174763 174763
mailhost  --     208  102400  102400             11 17067 17067
test1      --     384   10240   10240             14  1707  1707
#62583    --       4       0       0              2     0     0
But the problem still persists. :(

Do you guys have any idea? or did I miss something?

Thank You
Benutzeravatar
stfn116
Beiträge: 289
Registriert: Mi 9. Jan 2019, 11:43
Wohnort: Bavaria

Re: Quota is not working on email account

Beitrag von stfn116 »

The email- quota settings are inherited from the overall user-quota.

e.g. if your user client1 has 100 megabytes of storage and the email storage is 2 megabytes you can exceed the mailbox size, until you reach your limit.

in this example you could fill up your mailbox up to fifty times (50x 2mb) ;)

hope this was your problem ;)
:D Wer meint, Kompetenz sei teuer, möge es einmal mit Inkompetenz versuchen. Zitat: Bernd W. Klöckner. :lol:
Benutzeravatar
Alexander
Keyweb AG
Beiträge: 1464
Registriert: Mi 20. Jan 2016, 02:23

Re: Quota is not working on email account

Beitrag von Alexander »

Mail-Quota is currently set to "noenforcing".

I have put it on my to-do list for the next update:
The Admin will get a checkbox within "Configuration" -> "Email server" where he can configure it the way he want.
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
martins
Beiträge: 9
Registriert: Mo 18. Nov 2019, 13:32

Re: Quota is not working on email account

Beitrag von martins »

@stfn116: thx for the explanation mate.

Thank you Alexander for your response. I really recommend this feature to be added on the next update. Keep up the good work.
martins
Beiträge: 9
Registriert: Mo 18. Nov 2019, 13:32

Re: Quota is not working on email account

Beitrag von martins »

Hello Alexander!

I just want to follow up this thread. I am about to make KeyHelp for the production use, but will you help me to guide about this mail QUOTA allocation? is there any manual way to configure it?

I have my dashboard quota screenshot for a user test here: https://pasteboard.co/JtKxrd5.png

As you can see, the WebSpace quote allocation is work fine, when it reached the disk limitation, the user can not upload anymore, but the Mailbox quote is a bit strange, it increases every time I try to send an email with/or without the attachment. And the email is successfully sent and the quote is increasing to the total of the amount disk quota allocation that allocated to that user.

Thank You!
Benutzeravatar
Alexander
Keyweb AG
Beiträge: 1464
Registriert: Mi 20. Jan 2016, 02:23

Re: Quota is not working on email account

Beitrag von Alexander »

Hello,

for now, the removal of ":noenforcing" from the line "quota = maildir:User quota:noenforcing" in the file /etc/dovecot/dovecot.conf enables a hard quota. Perform a "service dovecot restart" to make the changes work.
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Antworten