Just add a "-w" in your config like so:
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -w 90 -d ${recipient}
Taken from the man page:
-w N The -w N option places a warning message into the maildir if the
maildir has a quota setting, and after the message was
success-
fully delivered the maildir was at least N percent
full. The
warning message is copied verbatim from
/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.
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?