From owner-freebsd-isp Sat Sep 4 6:31:22 1999 Delivered-To: freebsd-isp@freebsd.org Received: from mail.netdirect.net (mail.netdirect.net [209.212.192.7]) by hub.freebsd.org (Postfix) with ESMTP id 5C91215232 for ; Sat, 4 Sep 1999 06:31:19 -0700 (PDT) (envelope-from angrick@netdirect.net) Received: from angrick (p25-term13-in.netdirect.net [208.31.240.89]) by mail.netdirect.net (8.9.0/8.9.0) with SMTP id IAA19618; Sat, 4 Sep 1999 08:30:35 -0500 (EST) From: "Andy Angrick" To: "N" Cc: "freebsd-isp" Subject: RE: Quotas and Mail Spool Date: Sat, 4 Sep 1999 08:09:03 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <9909040439070.30274-100000@liquid.tpb.net> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Importance: Normal Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Sorry, I promise to be better next time :) Anyway, maybe I need to explain further...I think the point was missed. Its not whether mail.local has the ability to report error codes/status, its whether sendmail has the ability to read and interpret the error codes. I just mentioned a wrapper because it would be easier than hacking mail.local source. The wrapper would be called initially instead of mail.local. It would check the size of the mail box and if it is over a certain size (maybe from a file called /etc/mail.quota) it would return an error back to sendmail...if its okay, then mail.local would be run as normal. I think this would be easier than setting up a separate quota system for /var or installing another MTA like qmail if all you want to do is enable some sort of mail quotas. -Andy > -----Original Message----- > From: owner-freebsd-isp@FreeBSD.ORG > [mailto:owner-freebsd-isp@FreeBSD.ORG]On Behalf Of N > Sent: Friday, September 03, 1999 9:42 PM > To: freebsd-isp > Subject: Re: Quotas and Mail Spool > > > Andy Angrick wrote: > > > Question..does (or can) mail.local report any errors back to > sendmail? If > > so, I wonder if a wrapper could be made for mail.local that > checked the size > > of the mailbox against a certain quota..then if it was above > the quota...an > > error was returned from the mail.local wrapper..if all is okay..actual > > mail.local file is run. > > Why bother with a wrapper? You have the source of mail.local at hand. > See /usr/src/contrib/sendmail/mail.local/ for that, and > /usr/include/sysexits.h for possible exit codes you can use. > > The next time you post to a mailing list, could you take the trouble to > trim the quotes a bit? You make threads fairly unfollowable. TIA. > > > -- Niels. > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message