procmail
[Top] [All Lists]

Re: Disk quota and procmail

2003-04-03 13:05:42
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

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