procmail
[Top] [All Lists]

Re: Limit mailbox size

2003-06-26 06:04:45
El Mié 25 Jun 2003 19:22, Ivo Tijhaar escribió:
I can aswer it, i can anser it :)

Shure you can
This is my quota.rc

SHELL=/bin/sh
### we limit the size in 15 MB (15000000)
QUOTA=`ls -l /var/spool/mail/$LOGNAME | awk -F"  *" {'print 15000000 - $5'}` 
## when mailbox exceed 15MB $QUOTA is < 0
:0
* $QUOTA ?? - ### $QUOTA is < 0
{
        :0 c  ##maybe you want send a message to $SENDER
        | (formail -rI"From: ........."; \
        cat $HOME/.procmail/quotaexceded.txt;)  | sendmail -oi -t

        :0 ## delete incoming mail
        /dev/null
}


is it possible to use procmail to check a user mailbox size and in case of
a bigger mailbox then allowed reject the received e-mail. i already used
quota's but that isn't working i get a temp_fail from procmail if i use
quota's.


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

-- 
Gerardo Herzig
Departamento de Proyectos Especiales e Internet
Facultad de Medicina
U.B.A.


_______________________________________________
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>