When an account becomes full, it becomes inaccessible

6 posts / 0 new
Last post
#1 Wed, 12/01/2010 - 15:42
rpereyra

When an account becomes full, it becomes inaccessible

Hello

I have a debian server with Virtualmin.

All accounts have the default 50M quota.

When an account becomes full, it becomes inaccessible, via pop3 or imap. It is impossible to access it.

If I add a little space to the account, it becomes available again and it works fine again.

Does anybody has this happened?

Thanks a lot to the virtualmin team for this software !

roberto

Wed, 12/01/2010 - 18:58
Locutus

What happens when you try to access it? What error message does the client give and what is logged in /var/log/mail.log?

Fri, 12/03/2010 - 23:55
andreychek

Well, this is an unfortunate problem with the way Dovecot works. It's not particularly fond of running out of space :-) If it can't modify the control files or possible the index files, you can see the behavior you're describing.

We were actually just discussing workarounds for this issue in a meeting last week... we're looking into some ways to get around that.

However, in the meantime, the only real way of avoiding that would be to put the index and control files on a separate filesystem that doesn't have quotas enabled.

-Eric

Sat, 12/04/2010 - 06:38
rpereyra

Hi

These are my tests with an account full (50M used and 49M quota). Virtualmin is up date.

telnet mail.mydomain.com 110 Trying 201.252.xxx.xxx... Connected to mydomain.com Escape character is '^]'. +OK Dovecot ready. user admin@mydomain.com +OK pass xxxxxxxxx +OK Logged in. -ERR [IN-USE] Couldn't sync mailbox. Connection closed by foreign host.

tail -f /var/log/mail.log

Dec 4 09:23:52 srv1 dovecot: pop3-login: Login: user=admin@mydomain.com, method=PLAIN, rip=200.117.244.167, lip=201.252.250.12 Dec 4 09:23:53 srv1 dovecot: POP3(admin@mydomain.com): Mailbox init failed top=0/0, retr=0/0, del=0/13, size=52201782

Usermin show the INBOX folder empty (I attach an screenshot)

Best regards

roberto

Sat, 12/04/2010 - 07:08
Locutus

In my installation, the control and index files actually do reside in a different directory than the ~/Maildir, namely /var/lib/dovecot-virtualmin/index/%u and .../control/... respectively.

Might that help, setting up different quotas for those directories?

Mon, 12/06/2010 - 13:10
andreychek

Might that help, setting up different quotas for those directories?

Well, it indeed would, but that's also the trick :-)

With ext3, I don't believe there's a method to vary quotas for different directories on a given partition.

One way around that is to mount /var on a different filesystem/partition.

Another way I just ran into might be to setup a loopback filesystem just to hold Dovecot's control/index files. One way of doing that is described here:

http://www.walkernews.net/2007/07/01/create-linux-loopback-file-system-o...

That might allow you to get around the quota issues, if Dovecot's files were put on the loopback filesystem.

-Eric

Topic locked