Your right.
I don't think that using the xfilter is a screwy way to call the
deliverquota.
However, I do not have a courierd. Is this the MTA ?
I am using Postfix.
In Debian, my distro of choice, I have a imapd but no courierd.
Here is my global maildrop config in '/etc/courier/maildroprc':
import SENDER
import RECIPIENT
import HOME
MAILBOX="$HOME/Maildir"
MAILDIRQUOTA="$MAILBOX/maildirsize"
# Delivery Quota
if ($SENDER ne "")
{
FROM=$SENDER
}
else
{
FROM="unknown"
}
xfilter "/usr/bin/deliverquota -w 90 $MAILBOX"
I don't think an xfilter is the correct way to run deliverquota
either. But if you have a recent version of Courier, you don't need
to run deliverquota at all. The quota checking has been integrated
into maildrop. Just put the '-w 90' option on maildrop in the
DEFAULTDELIVERY variable in /etc/courier/courierd.
Here is my local user .mailfiter
As I said above, this will never be seen. I would suggest doing
this:
In /etc/courier/courierd, change the default delivery line to this:
DEFAULTDELIVERY="| /usr/lib/courier/bin/maildrop -w 90"