On Thu, Feb 02, 2006 at 09:49:22AM +0100, Nicolas Ecarnot wrote:
Hi,
here's my config :
openbsd+postfix+mysql+courier-maildrop 1.7.0_with_mysql+quotas
Everything is working fine and the mail are removed when my quotas are over.
But I don't understand if there's a way to send a mail to warn the user
when this happens?
In /etc/postfix/master.cf, I use maildrop this way :
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
and I observe the quotas are applied.
I read the doc three millions times, and the part I read concerning
quotaswarnmsg only deal with deliverquota.
I haven't understood if deliverquota was called by maildrop, or never
called in my config?
If I must call deliverquota instead of maildrop from master.cf, *how*
must I call it?
You don't need deliverquota anymore.
$ man maildrop
[SNIP]
-w N The -w N option places a warning message into the mail-
dir if the maildir has a quota setting, and after the
message was successfully delivered the maildir was at
least N percent full. The warning message is copied
verbatim from /usr/local/etc/quotawarnmsg with the
addition of the "Date:" and "Message-Id:" headers. The
warning is repeated every 24 hours (at least), until
the maildir drops below N percent full.
[SNIP]