4 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Filesystem quotas / T...
FromSent OnAttachments
Henk van LingenDec 9, 2004 5:29 am 
Andre FortinDec 9, 2004 5:39 am 
Henk van LingenDec 9, 2004 8:21 am 
Tony EarnshawDec 9, 2004 10:05 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] Filesystem quotas / TEMPFAILActions...
From:Henk van Lingen (hen@cs.uu.nl)
Date:Dec 9, 2004 8:21:43 am
List:net.sourceforge.lists.courier-maildrop

On Thu, Dec 09, 2004 at 08:38:57AM -0500, Andre Fortin wrote: > Instead of calling maildrop, call a wrapper to maildrop. This is what I've > done: > > I replaced the maildrop with a shell wrapper, and renamed the original > maildrop to maildrop.exe. The 'maildrop' wrapper looks like this: > > /usr/local/bin/maildrop.exe $1 $2 $3 $4 $5 > if [ "$?" -eq 77 ]; then > return 100; > fi > > This is what I've done to make over-quota deliveries return permanent > errors.

Thanx! A wrapper seems to be a good suggestion. I had to change 77 to 75 and 'return' to 'exit' to make it work in my situation.

But I changed it a bit more, so now I only bounce for quota reasons and not for other problems (for example wrong .mailfilter perms):

dawn:/root-# cat /local/bin/maildrop-wrapper #!/bin/sh # # wrapper to get permanent failures (diskquota) # # HvL

result=`quota -l -q` if [ "$result" ]; then echo "This user is over quota"; exit 100 else /usr/bin/maildrop $* fi

Cheers,