Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Nov 2000 13:56:11 -0500 (EST)
From:      Chris Jesseman <chris@sitemajic.net>
To:        Lanny Baron <lnb@FreeBSDsystems.COM>
Cc:        questions@FreeBSD.ORG, Mike Meyer <mwm@mired.org>
Subject:   Re: limiting the amount of per user in /var/mail
Message-ID:  <974660171.3a18224b95368@www.sitemajic.net>
In-Reply-To: <14871.45752.774586.724210@guru.mired.org>
References:  <14871.45752.774586.724210@guru.mired.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <mwm@mired.org>:

> Lanny Baron <lnb@FreeBSDsystems.COM> 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.
> 
> 	<mike
> 
> 
> 
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?974660171.3a18224b95368>