From owner-freebsd-questions Sun Nov 19 10:53:29 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cortez.sitemajic.net (unknown [208.153.40.60]) by hub.freebsd.org (Postfix) with ESMTP id 2567F37B479 for ; Sun, 19 Nov 2000 10:53:27 -0800 (PST) Received: (from apache@localhost) by cortez.sitemajic.net (8.11.1/8.11.1) id eAJIuBi65416; Sun, 19 Nov 2000 13:56:11 -0500 (EST) To: Lanny Baron Subject: Re: limiting the amount of per user in /var/mail Message-ID: <974660171.3a18224b95368@www.sitemajic.net> Date: Sun, 19 Nov 2000 13:56:11 -0500 (EST) From: Chris Jesseman Cc: questions@FreeBSD.ORG, Mike Meyer References: <14871.45752.774586.724210@guru.mired.org> In-Reply-To: <14871.45752.774586.724210@guru.mired.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: IMP/PHP IMAP webmail program 2.2.3 X-Originating-IP: 206.128.184.36 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I use cyrus (imap + pop3) which has a builtin quota system... All user email is owned by user cyrus so it is a little different than the default freebsd setup. -Chris Quoting Mike Meyer : > Lanny Baron types: > > Hello, > > Can someone plz point me in the right direction of how to implement a > size > > in MB for any user on a system, that can stop incoming mail until the > > user has downloaded thier mail. > > > > One person told me procmail. Having gone to www.procmail.org I cannot > see > > where it talks about size of mail boxes. > > I got questions - have you got answers? > > What do you mean by "stop incoming mail"? The options are 1) that it > stays on your system, but is kept in the mail queue until either > timeout or they drop below the limit; 2) that it is refused as a soft > error, meaning it stays on the *other* ISPs system until either > timeout or they drop below the limit; 3) or that it is refused as a > hard error, meaning it's bounced immediately back to the user. > > To use procmail for this, you need to configure your sendmail so that > local deliver is done by procmail, and arrange to have procmail run a > command that reports whether or not their mailbox is over limit. It's > been years since I used procmail or sendmail, so I'm going to defer to > others. > > A much simpler idea - if their mailboxes are stored on a different > file system from anything else they are liable to own - is to use disk > space quotas. This will make the writes to their mailbox (or possibly > the queue) fail, which will report as either a hard or soft error, > depending on your MTA. Try "man -k quota" to get started. > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > Chris Jesseman, President http://www.sitemajic.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message