Quota issue with parent servers after they've been converted to child servers

Ok, let me see if I can make this clear.

There's an issue in the lookup-domain deamon with parent servers that have been converted to child servers.

This was the previous setup: Server Domain A (quota limit = 1 gb) -> Sub Server Domain B (no quota limit since this is a child and therefor falls within the parent limit)

This setup has been changed to: Server Domain C (quota limit = 2gb) -> Sub Server Domain A -> Sub Server Domain B

Even though domain c (the parent server) has been setup with a limit of 2gb, we were getting quota errors while delivering email to mailboxes in Domain B

We've double checked the debian quota settings and verfied that there was only one group limit (Domain C) and there was no limit enforced on sub user level).

Logging in procmail log:

Disk quota for user.domainb.com has been reached.
procmail: Program failure (73) of "/etc/webmin/virtual-server/lookup-domain.pl"
From adam@bandhosting.nl  Thu Nov 29 11:27:12 2012
Subject: test
  Folder: /dev/null   14296
Time:1354184833 From:adam@bandhosting.nl To:user@domainb.com User:user.domainb.com > Size:14297 Dest:/dev/null Mode:None

After manually requesting the quota from the lookup deamon:

web01:/var/webmin# telnet 127.0.0.1 11000
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
user.domainb.com
132568284011416 domainb.com 1 1 -81276928

This response was unexpected, since there is no limit enforced on the user level, and the domainc account had over 900mb free space.

After looking a bit further, it turned out that there was still a 1gb limit defined in the domainb.com server file (/etc/webmin/virtual-server/domains/132568284011416).

After bumping up that limit to 3gb, mail started to arrive without issues again. It would seem that, webmin does not look at the quota file defined in linux, but rather to the server configuration.

Status: 
Closed (fixed)

Comments

Thanks for pointing this out - this is indeed a bug. I will fix it in the next Virtualmin release.

Automatically closed -- issue fixed for 2 weeks with no activity.