procmail
[Top] [All Lists]

RE: Disk quota and procmail

2003-04-04 00:17:59
I've written a patch to do this for maildirs.  I would write it for you
for mboxes but I hate that format now =).  Just change case
EDQUOT:nlog("The user's quota has exceeded.  Please try again later.");
to whatever message you prefer for the bounce message.  It's located at
http://www.ee.ucr.edu/~isaldana/procmail/quotas.html if you want to take
a look at the concept (it's trivial).  This is based on the file systems
quotas.  So you just set the quotas for the user and it should work.

BTW, does anyone know if the development of procmail is frozen?  While I
think it's the best, there could be features and fixes added to it.

--
Isaac Saldana
Systems Administrator
Electrical Engineering Dept., UCR


-----Original Message-----
From: procmail-bounces(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE [mailto:procmail-
bounces(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE] On Behalf Of Philip Kizer
Sent: Thursday, April 03, 2003 11:59 AM
To: louie_the_o(_at_)hotmail(_dot_)com
Cc: procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
Subject: Re: Disk quota and procmail

On Thu, Apr 03, 2003 at 03:58:17PM -0300, Luis Hernn Otegui wrote:
The main problem with this recipe is that the incoming mail that
triggered
the quota warning is requeued, not discarded or bounced back to the
sender.
Does anyone know how to check the quota, and, in case that some user
is
overquota, bounce back the mail to the sender? Is it possible to do?

Somewhere in the quota handling part of the rule, add the following:

    EXITCODE=69

this number comes from the fact that that's the code mail.local would
use:

    % grep EX_UNAVAILABLE /usr/include/sysexits.h
     *      EX_UNAVAILABLE -- A service is unavailable.  This can
occur
    #define EX_UNAVAILABLE  69      /* service unavailable */

I'm not sure how to provide arbitrary text for sendmail to include
with
the
bounce it will generate from that exit code.


-philip

--
Philip Kizer, Senior Lead Systems Engineer, Texas A&M University
USENIX Liaison to Texas A&M University         <usenix(_at_)tamu(_dot_)edu>
Texas A&M CIS Operating Systems Group, Unix   <pckizer(_at_)tamu(_dot_)edu>

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail



_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>