procmail
[Top] [All Lists]

Re: /var/mail still keeping mails (quota problem)

2005-05-19 04:58:46
jose nuno neto schreef:


<punctuation added>
I got quota set on /home and on /var.
When /home reaches its limit, procmail leaves mail on
/var/spool/mail/xxxx.

procmail (an MDA) is in between your MTA and (the user's part of) the
mailspool.

If procmail can't deliver where .procmailrc tells it to deliver,
it will try to deliver to $DEFAULT, which is often equal
to $MAIL (/var/spool/mail/userid).


and after users download their mails from /home
procmail doesn't catch the remaining mails on /var/spool/mail/xxxx
they stay there forever.

Those messages already reached an end, they got delivered.

You need to re-process those messages in order to get (a
copy of) them delivered elsewhere.
A cron-job could start a script that checks for messages
in $MAIL (could be mailbox or maildir) and checks for space,
and re-delivers the messages.

You can make the same cron-job send warnings to users
that have less than a few MB left from their quotum.

An alternative would be to create an overflow-mailbox
inside $MAIL/, but that only works if the mailspool
is always mounted when a user checks his mail.
And it is not a good idea, because users will start
using that overflow capacity as regular space.

<large tail deleted>

-- 
Grtz, Ruud


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>