mundor
(Ricardo)
April 3, 2017, 4:46pm
1
Hello,
I also do not update the custom mail quotas on some accounts, I have 5 GB by default and I want 3 accounts with 10 GB, one yes they update a 10 but the other 2 are left with 5 GB.
Can you help me. Thank you.
NethServer Version: NethServer release 7.3.1611
Module: mail
mundor
(Ricardo)
April 5, 2017, 2:52pm
2
I made a new installation and again had the same problem. I think it’s a bug.
Please help.
dnutan
(Marc)
April 5, 2017, 3:05pm
3
Take a look at this post to see if it’s the same problem you are having:
NethServer release 7.3.1611 (Final):
@dev_team If you have a mail quota in place a users mailbox will be listed under Mail quota as soon as there is mail in his mailbox.
Now, if you are going to change the users mail quota to a different value by using Custom mailbox quota the view under Mail quota is not updated any more and calculations done on this page are not correct, too for this user.
It’s always reproducible here (new user or existing user).
mundor
(Ricardo)
April 5, 2017, 3:16pm
4
dnutan:
Take a look at this post to see if it’s the same problem you are having:
NethServer release 7.3.1611 (Final):
@dev_team If you have a mail quota in place a users mailbox will be listed under Mail quota as soon as there is mail in his mailbox.
Now, if you are going to change the users mail quota to a different value by using Custom mailbox quota the view under Mail quota is not updated any more and calculations done on this page are not correct, too for this user. It’s always reproducible here (new user or existing user).
Yes, it’s the same problem, but in the post they do not give a clear solution.
dnutan
(Marc)
April 5, 2017, 4:00pm
5
Can you post your installed version of nethserver-mail-server?
rpm -qa nethserver-mail-server
cc/ @asl @davidep
1 Like
mundor
(Ricardo)
April 5, 2017, 4:15pm
6
nethserver-mail-server-1.10.10-1.ns7.noarch
asl
(Andreas Schloegl)
April 5, 2017, 5:03pm
7
[root@dc2 ~]# rpm -qa nethserver-mail-server
nethserver-mail-server-1.10.10-1.ns7.noarch
dnutan
(Marc)
April 6, 2017, 10:51am
8
@davidep : not the culprit but isn’t this code missing some (exit) statement?
# along with NethServer. If not, see COPYING.
#
set -e
# Exit immediately if quota plugin is not enabled
if ! doveconf mail_plugins | grep -q -E '\bquota\b'; then
exit 0
fi
# Exit here if username is passed as second argument
if [[ -n "$2" ]]; then
exec /usr/bin/doveadm quota recalc -u $2
fi
# Recalc quota for any existing user
cd /var/lib/nethserver/vmail
find . -maxdepth 3 -name 'maildirsize' | (
IFS=/
while read SKIPA USER SKIPB; do
Sometimes maildirsize
is getting the wrong quota (unchanged size) for some users, but don’t know why.
IIRC, there could be also some rounding issue between the selected quota (eg. 300 MB on the slider) and the user’s quota displayed on mail quota page (eg. 306 MB).
1 Like
davidep
(Davide Principi)
April 6, 2017, 10:58am
9
At line 32, exec()
actually executes the command and never returns to bash. See also Exec (system call) - Wikipedia
dnutan:
some rounding issue
I agree, there can be some rounding issue around
It’s rather puzzling! I’m currently working on CentOS 6.9 update and NextCloud bugs. Next stop: release the new Accounts provider configuration wizard in testing (almost finished). I’ll be back on this soon, I hope!
Great roadmap @davidep are you able to take a look at it @dnutan ? I’m sorry I can’t help you here.
asl
(Andreas Schloegl)
April 7, 2017, 4:40pm
12
just wanted to add, that the same bug is seen in my enterprise edition also …
and it hurts because I was forced to switch off quota management at all.
dnutan
(Marc)
April 8, 2017, 3:11pm
13
Davide, I think there’s a small typo when setting custom quota in /etc/dovecot/quota.passwd
as it’s honored only for the last user:
2 Likes
davidep
(Davide Principi)
April 8, 2017, 3:25pm
15
@alefattorini give that man a prize !
1 Like
davidep
(Davide Principi)
April 10, 2017, 1:07pm
16
@dnutan ’s bugfix is available from nethserver-testing repository! Run the following command to install it
yum --enablerepo=nethserver-testing update nethserver-mail-server
@mundor , @asl could you give it a try? /cc @quality_team
This is the issue:
@asl could you verify the new packages?
asl
(Andreas Schloegl)
April 10, 2017, 6:16pm
18
Hello @davidep ,
I was testing it now and it seems to work well. I tried to change custom and global quota, switched it on and off and could not find anything wrong on the display and calculation. Thank’s well done - all of you!!
2 Likes
Please add your notes here and move the bug into verified
davidep
(Davide Principi)
April 11, 2017, 10:01am
20
Bugfix released in nethserver-updates:
nethserver-mail-server-1.10.11-1.ns7.noarch.rpm