Re: [maildropl] Change quota warning per-domain?
Brought to you by:
mrsam
From: email b. <ema...@ya...> - 2009-09-08 03:40:22
|
> > I want to be able to send out different quota warning messages for different > (virtual) domains on my server. > > > > I only found this unanswered thread from 2004: > > > > http://thread.gmane.org/gmane.mail.maildrop/2668 > > > > Can anyone address this feature request please? > > Well, if you want it so much, you'll just have to test it yourself. > http://www.courier-mta.org/download.php#maildrop - download version 20090905. > maildrop and deliverquota takes a new -W parameter that specifies the filename > with the warning message. Tested and working. Here is how I call maildrop from Postfix's master.cf: flags=ODRhu user=maildrop argv=/usr/local/bin/maildrop -f ${sender} -d ${recipient} -w 90 -W /usr/local/etc/quotawarnmsg-${domain} Caveat: Unless you have Postfix 2.5 or above, ${domain} is not supported (see: http://www.postfix.org/pipe.8.html ). It's stupid to have a quota warning message file for every user, but the workaround I thought of was to do just that: flags=ODRhu user=maildrop argv=/usr/local/bin/maildrop -f ${sender} -d ${recipient} -w 90 -W /usr/local/etc/quotawarnmsg-recipients/${recipient} Thank you very much, Sam |