Date: Wed, 30 Apr 1997 17:10:46 -0400 (EDT) From: Cliff Addy <fbsdlist@federation.addy.com> To: Andrew <andrew@key.net.au> Cc: questions@freebsd.org, freebsd-isp@freebsd.org Subject: Re: quotas on mail directories Message-ID: <Pine.BSF.3.95q.970430170702.16641E-100000@federation.addy.com> In-Reply-To: <Pine.NEB.3.96.970430235240.17225A-100000@house.key.net.au>
next in thread | previous in thread | raw e-mail | index | archive | help
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?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.970430170702.16641E-100000>