Hi Just u/g to RH FC3 from RH8.0 which seemed to work fine with quotas. I have quotas for usernames set up as /home/domain/domainX/username/ for web space 50MB say 48MB used so 2MB free and /var/mail/spool/username for email. 100MB (60MB used so 40MB is available). /var/mail/username is symbolic linked via to spool/mail under /var dovecot seems to be using the quota for /home/.. and sees only 2MB so refuses to write file back. maillog is reporting (username and IP replaced). Mar 16 13:20:03 proteus2a pop3-login: Login: username [11.22.33.44] Mar 16 13:20:03 proteus2a pop3(username): Error rewriting mbox file /var/mail/username: Disk quota exceeded Mar 16 13:20:03 proteus2a pop3(username): write() failed with mbox file /var/mail/username: Disk quota exceeded i am assuming this is when pop3 login is trying to re-write file back when deleting emails. Mark -- Obantec Support www.obantec.net 0845 458 3121 WebHosting and Domains Nominet UK Tag Holder CentralNic Accredited Reseller
On Thu, 2005-03-24 at 14:30 +0000, Obantec Support wrote:> Mar 16 13:20:03 proteus2a pop3-login: Login: username [11.22.33.44] > Mar 16 13:20:03 proteus2a pop3(username): Error rewriting mbox file > /var/mail/username: Disk quota exceeded > Mar 16 13:20:03 proteus2a pop3(username): write() failed with mbox file > /var/mail/username: Disk quota exceeded > > i am assuming this is when pop3 login is trying to re-write file back when > deleting emails.Right. Dovecot 0.99.x works very badly with filesystem quota. 1.0-stable versions would be slightly better, but probably will still fail if quota is completely reached. It's in my TODO to fix this before v1.0. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20050325/fc09aa0d/attachment-0001.bin>
Thanks i have a temp fix by upping the /home quota by 100MB while v1.0 is released. Mark -- Obantec Support www.obantec.net 0845 458 3121 WebHosting and Domains Nominet UK Tag Holder CentralNic Accredited Reseller ----- Original Message ----- From: "Timo Sirainen" <tss at iki.fi> To: "Obantec Support" <support at obantec.net> Cc: <dovecot at dovecot.org> Sent: Thursday, March 24, 2005 10:21 PM Subject: Re: [Dovecot] quota issue POP3
On Thu, 24 Mar 2005, Obantec Support wrote:> maillog is reporting (username and IP replaced). > Mar 16 13:20:03 proteus2a pop3-login: Login: username [11.22.33.44] > Mar 16 13:20:03 proteus2a pop3(username): Error rewriting mbox file > /var/mail/username: Disk quota exceeded > Mar 16 13:20:03 proteus2a pop3(username): write() failed with mbox file > /var/mail/username: Disk quota exceeded > i am assuming this is when pop3 login is trying to re-write file back when > deleting emails.You should define location of the dovecot's index-files to default_mail_env-setting on your dovecot's config file. Something like this: INDEX=/usr/local/var/dovecotindex/%n It's important that index-files are not on the filesystem which has quota enabled. 0.99.x uses index-directories for temp-files as defined in mail-index-util.c --cut-- int mail_index_create_temp_file(struct mail_index *index, const char **path) { int fd; /* use ".temp.host.pid" as temporary file name. unlink() it first, just to be sure it's not symlinked somewhere for some reason.. FIXME: this function should rather be removed entirely. With in-memory indexes index->dir is NULL, so we fallback to /tmp so that mbox rewriting doesn't crash. */ *path = t_strconcat(index->dir != NULL ? index->dir : "/tmp", "/.temp.", my_hostname, ".", my_pid, NULL); --cuit-- -- Pasi Sj?holm