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.
Hope this helps,
Andre
-----Original Message-----
From: cour...@lists.sourceforge.net
[mailto:cour...@lists.sourceforge.net]On Behalf Of Henk
van Lingen
Sent: Thursday, December 09, 2004 8:29 AM
To: cour...@lists.sourceforge.net
Subject: [maildropl] Filesystem quotas / TEMPFAIL
Hi all,
I'm buiding a Postfix, spamassassin, courier-imap, ClamAV,
ClamSMTP, Maildrop,
Squirrelmail mailserver which uses filesystem quotas.
I have maildrop as default MDA (mailbox_command =
/usr/bin/maildrop (postfix))
because that way I can use spamassassin (spamc) at local delivery time by
the way of /etc/maildroprc so I can have spamassassin user preferences.
Now the problem is that when a user is over quotum, maildrop gives a
tempfail and mail stays in the queue. That's not what I want, I want a
bounce with an overquota message. Using postfixs building MDA one gets
this message:
maildir delivery failed: error writing message: Disk quota exceeded
Using procmail as MDA, also a bounce with (less informative):
can't create user output file
With maildrop however I can't find a solution to send a quota error back.
Any ideas?
Cheers,