*BSD News Article 83937


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!newsfeed.internetmci.com!news1.anet-dfw.com!zeus.anet-chi.com!davidb
From: davidb@zeus.anet-chi.com ()
Newsgroups: comp.unix.bsd.bsdi.misc,comp.sys.hp.hpux
Subject: Re: How to solve problems of full mail disk (quotas on mailboxes and/or NO leave mail on server) ?
Followup-To: comp.unix.bsd.bsdi.misc,comp.sys.hp.hpux
Date: 30 Nov 1996 17:11:08 GMT
Organization: Anet News Services
Lines: 49
Message-ID: <57pprc$o4c@news1.anet-dfw.com>
References: <rdwwv56vg9.fsf@epiphore.francenet.fr>
NNTP-Posting-Host: zeus.anet-chi.com
X-Newsreader: TIN [version 1.2 PL2]
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.bsdi.misc:5387 comp.sys.hp.hpux:50603

Gildas Perrot (perrot@francenet.fr) wrote:
: Hi everybody,

: I would like to be able to limit the size of users mailboxes on our HP-UX and 
: BSD/OS systems which use sendmail 8.7.5 and pop 2.1.4-R3

First, I would never admit in public that you are using sendmail 8.7.5 considering the security problems associated with it.

: I tried to put user quotas on /var/mail the BSD/OS systems but this does not 
: work since sendmail is owned by *root* which writes on /var/mail and so it is 
: not limited by user quota.

The quota has nothing to do with root owning sendmail. However, if a user has
a hard limit (or has run out of their grace period) on their quota, then
the mail program will not be able to write to /var/mail/user

: 1) Do you know how to set up quotas on user mailbox ?

put a quota on /var or /var/mail if this is a filesystem. If neither
are filesystems, I would look into making one of them a filesystem.

: 2) How to interface that with sendmail in order to inform senders that the 
: recipient mailbox is full ?

No idea. But, you can setup their dot files to show status of their
quota.  Also, you can run a cron job of repquota /var/mail and send it
to a admin account. Then you can manually send a user some mail.
Of course, if they have exceeded their quota and grace period, a email
will not work.

: 3) How to inform the recipient user that his mailbox is full ?

: 4) Since popper is copying the unix mailbox during POP session, there is 
: certainly 2 copies of the same mailbox in /var/mail. How to be sure that the 
: copy is not done in /var/mail ? In fact, if the quota is reached, this copy 
: can't be done in /var/mail and so, the user will not be able to read it.

Setup a soft limit with a grace period, or recompile popper to use another directory.


: 5) How to make sure that mail is not left on server even if the POP client has 
: checked the option "Leave mail on server" ? Is there a way to do that on the 
: server side and if not, on the client side ?

You may be able to code something into popper to do this.

DB

: Thanks in advance for your help.		Gildas.