From owner-freebsd-questions@FreeBSD.ORG Wed Jul 9 04:39:30 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E9840106564A for ; Wed, 9 Jul 2008 04:39:30 +0000 (UTC) (envelope-from alydiomc@yahoo.com) Received: from web52210.mail.re2.yahoo.com (web52210.mail.re2.yahoo.com [206.190.48.133]) by mx1.freebsd.org (Postfix) with SMTP id 94E548FC16 for ; Wed, 9 Jul 2008 04:39:30 +0000 (UTC) (envelope-from alydiomc@yahoo.com) Received: (qmail 64028 invoked by uid 60001); 9 Jul 2008 04:39:29 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Message-ID; b=xHqti8U3hlE86KAjWjOqAXdKdsoBrx7HrdckY51UB7Ow308MJNrYb4D0VIxRnAvQ3FdKykLwIWCUPRYzE3PMxhhX2yPXDjoy3I62BaIfftM7uj2nS/40CkZWUkBZp+3YzaDt5Q7HcJTBgOFrvGylEDF/VKgb5aKFJEFXeeNJtr8=; Received: from [121.1.18.241] by web52210.mail.re2.yahoo.com via HTTP; Tue, 08 Jul 2008 21:39:29 PDT X-Mailer: YahooMailWebService/0.7.199 Date: Tue, 8 Jul 2008 21:39:29 -0700 (PDT) From: lyd mc To: derek@computinginnovations.com, freebsd-questions@freebsd.org MIME-Version: 1.0 Message-ID: <632084.63626.qm@web52210.mail.re2.yahoo.com> X-Mailman-Approved-At: Wed, 09 Jul 2008 11:25:29 +0000 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: quota and sendmail accepts <10k mail size X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: alydiomc@yahoo.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2008 04:39:31 -0000 Hi Derek, It is good to hear from you. You are right about sendmail has only global option to limit mail size.=20 However, my company wants to have 20meg mbox space per user. If the User ex= ceeds, he/she should not recieved any mail. So, I use system quota to prevent sendmail from writing to mbox of a user w= hich is under quota.Sendmail should bounce the mail and reply to sender wit= h this kind of error: ----- The following addresses had permanent fatal errors ----- (reason: 550 5.0.0 output error) Here is my configs: I enable quota to /var and /home filesystem /dev/ipsd0s1f=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 /home=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0 ufs=A0=A0=A0=A0 rw,userquota=A0=A0=A0 2=A0=A0=A0=A0=A0=A0 2 /dev/ipsd0s1d=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 /var=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0 ufs=A0=A0=A0=A0 rw,userquota=A0=A0=A0 2=A0=A0=A0=A0=A0=A0 2 # qouta -v user.underquota Disk quotas for user user.underquota (uid 1333): =A0=A0=A0=A0 Filesystem=A0=A0 usage=A0=A0 quota=A0=A0 limit=A0=A0 grace=A0= =A0 files=A0=A0 quota=A0=A0 limit=A0=A0 grace =A0=A0=A0=A0=A0=A0=A0=A0=A0 /home=A0=A0=A0=A0 210=A0=A0 20480=A0=A0 20480= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 11=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0= =A0=A0 0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 /var=A0=A0 62960*=A0=A0 20480=A0=A0 20480=A0= =A0=A0 none=A0=A0=A0=A0 1=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0=A0=A0 0 As you can see here, user.underquota already exceeded the limit (soft and h= ard). If I try to send a mail to this user more than 13k mail size, sendmai= l cannot write to this mbox (since mbox of a user is located in /var/mail) = and will reply with an error message. At first I thought it was working, ho= wever, when i try to send 10k, 7k, 5k or less mail size, sendmail can write= to user.underquota mbox. User file permition: #ls -l -rw-rw----=A0=A0=A0 1 user.underquota =A0=A0=A0=A0=A0=A0 mail=A0=A0=A0=A0= =A0=A0=A0=A0 64413589 Jul=A0 8 09:54 user.underquota=20 So, what do you think? Do i missed some config? or this is a bug? Thank you. Best regards, Alyd =0A=0A=0A