procmail
[Top] [All Lists]

Re: How to simulate procmail

2009-08-31 09:39:27
On 30-Aug-2009, at 20:43, Olivier Nicole wrote:
I cannot send them a warning by email, because if they are over quota,
the mail will bounce, but the script running as root can deposit a new
mail in the user's Maildir.

I am using procmail as my general MDA. Some of my users have a
.procmailrc file (for forwarding/filtering).

The user's .procmailrc is irrelevant, deposit the mail directly into their maildir into a folder named SYSTEM_ALERT or something like that.

If they are overquota, they must be storing mail on your server, so you don't care where they forward to.

Then you can run a periodic check to see if they are UNDER quota, and if so, remove the SYSTEM_ALERT maildir.

This maildir will be owned by root, so they cannot delete it themselves.


--
Suddenly the animals look shiny and new

____________________________________________________________
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>