From owner-freebsd-questions Wed Apr 30 14:35:59 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id OAA19146 for questions-outgoing; Wed, 30 Apr 1997 14:35:59 -0700 (PDT) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id OAA19136; Wed, 30 Apr 1997 14:35:57 -0700 (PDT) Received: from federation.addy.com (federation.addy.com [207.239.68.2]) by who.cdrom.com (8.8.5/8.6.11) with ESMTP id OAA07688 ; Wed, 30 Apr 1997 14:10:55 -0700 (PDT) Received: from localhost (fbsdlist@localhost) by federation.addy.com (8.8.5/8.6.12) with SMTP id RAA16701; Wed, 30 Apr 1997 17:10:47 -0400 (EDT) Date: Wed, 30 Apr 1997 17:10:46 -0400 (EDT) From: Cliff Addy To: Andrew cc: questions@freebsd.org, freebsd-isp@freebsd.org Subject: Re: quotas on mail directories In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Wed, 30 Apr 1997, Andrew wrote: > > I can't seem to make sendmail pay attention to quotas on the /var > > filesystem. I've set up 1M soft and 10M hard limits, yet mail to an > > account that is over the hard limit still gets delivered. I know sendmail > > is supposed to reject the message if the entire filesystem is too full, > > but how do you make it do the same if the quota is exceeded? > > sendmail delivers its mail as root so the quota dosnt get noticed. Change > your local mailer to procmail or something - that works... I changed sendmail.cf to use procmail, e.g. Mlocal, P=/usr/local/bin/procmail, F=lsDFMrmn, S=10, R=20/40, A=mail -d $u This now checks the quota if the mail is sent from inside the machine, but still writes if the smtp connection comes from the outside world. Is there something else I need to do?