From owner-freebsd-questions Sat Oct 14 16:38: 9 2000 Delivered-To: freebsd-questions@freebsd.org Received: from backup.af.speednet.com.au (af.speednet.com.au [202.135.188.244]) by hub.freebsd.org (Postfix) with ESMTP id 3EDBF37B502 for ; Sat, 14 Oct 2000 16:38:00 -0700 (PDT) Received: from backup.af.speednet.com.au (backup.af.speednet.com.au [172.22.2.4]) by backup.af.speednet.com.au (8.11.0/8.11.0) with ESMTP id e9ENbLa73030; Sun, 15 Oct 2000 10:37:24 +1100 (EST) (envelope-from andyf@speednet.com.au) Date: Sun, 15 Oct 2000 10:37:20 +1100 (EST) From: Andy Farkas X-Sender: andyf@backup.af.speednet.com.au To: Michael Hancock Cc: freebsd-questions@FreeBSD.ORG, Adam Migus Subject: Re: quota on a mail spool directory - help! In-Reply-To: <013701c0353e$b5959ee0$d23dc5c0@compusult.nf.ca> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mail is being written to /var/mail as root, bypassing quotas. You can try playing with the -b flag (man mail.local) or switch to procmail as the local deliverer. On Fri, 13 Oct 2000, Michael Hancock wrote: > Date: Fri, 13 Oct 2000 15:25:00 -0230 > From: Michael Hancock > To: freebsd-questions@FreeBSD.ORG > Cc: Adam Migus > Subject: quota on a mail spool directory - help! > > I've got quotas setup on a freebsd 4.1.1 machine. Here is a snip of my > fstab > > /dev/ad0s1f /users ufs rw,userquota 2 2 > /dev/ad0s1h /var/mail ufs rw,userquota 2 2 > > The quota works wonderfully on /users. It's set to a 3mb limit without a > grace. I've tested the sh!t out of it and no problems. > > My issue is with the mail partition. According to the "edquota" man page, a > grace of 1 second should indicate no grace period, which works well with my > /users partition, but not for my mail. Despite an 8mb hard limit without a > grace period, the grace keeps defaulting back to 6 days and allowing more > than 8mb. As a test, I setup a user called "test" and emailed 2 7mb files > to the user, after the 1st file I ran "quota -v test" > > ----- > Disk quotas for user test (uid 5246): > Filesystem blocks quota limit grace files quota limit > grace > /users 9 0 3000 5 0 0 > /var/mail 7232 0 8000 1 0 0 > ----- > > after the 2nd file I ran "quota -v test" again > > ---- > Disk quotas for user test (uid 5246): > Filesystem blocks quota limit grace files quota limit > grace > /users 9 0 3000 5 0 0 > /var/mail 7232 0 8000 1 0 0 > ---- > > According to the "edquota" man page, a grace of 1 second should indicate no > grace period, which works well with my /users partition, but no for my mail. > Here is the result of running "edquota -t test" (to establish the grace) > > ---- > Time units may be: days, hours, minutes, or seconds > Grace period before enforcing soft limits for users: > /users: block grace period: 1 second, file grace period: 0 days > /var/mail: block grace period: 1 second, file grace period: 0 days > ---- > > Here is the result from running "edquota -u test" (to actually set the > limits) > > ---- > Quotas for user test: > /users: blocks in use: 9, limits (soft = 0, hard = 3000) > inodes in use: 5, limits (soft = 0, hard = 0) > /var/mail: blocks in use: 14456, limits (soft = 0, hard = 8000) > inodes in use: 1, limits (soft = 0, hard = 0) > ---- > > > Can anyone help? Anybody have a similar problem with quotas on a mail > partition or know of a possible reading source? > > thx in advance. > Mike > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > -- :{ andyf@speednet.com.au Andy Farkas System Administrator Speednet Communications http://www.speednet.com.au/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message