Yeah , i add some tag in vpopmail's source code. To generate a message like
warning massage if the quotas are more than 80% and 90%, I used like
sqwebmail's way to generate massages. This tag will copy a file to "NEW"
directory.The file like an email, have a subject,body message, form etc (if
on sqwebmail's file is named "quotawarn").
My step :
1. Copy file quotawarn to directory ~VPOPMAILDIR/bin/
2. Add after
void deliver_mail(..........
{
........
char ........
with
char tempe[256];
3. Then in this procedure, before
}
I add with :
if (yourquota >= 0.9) {
sprintf(tempe, "/bin/cp -u %s/bin/quotawarn1
new/quotawarn",VPOPMAILDIR);
system(tempe);
}
but the yourquota is the other tag to calculate your quota.
like: yourquota = quotasize/currentsize.
But if you want to be like my system.
I use vpopmail-4.9.10.
Then you just change your vdelivermail.c with my vdelivermail.c
And copy the quotawarn1 and quotawarn2 to your ~VPOPMAILDIR/bin/
Change the form field on quotawarn1 and quotawarn2 with your email.
It will bounce the new mail if equal or more than 100%, and the size is 0.3
k (the standart is 1 k)
Agus Basyari
http://www.brawijaya.ac.id
email: [EMAIL PROTECTED]
> Hello all,
>
> I've read the archive about this subject already, but still don't have a
> clear answer. I have hardquota set. I tested it and it worked correctly
by
> bouncing a message > 1K back to the sender, while still allowing <1K
> messages to be delivered.
>
> What I haven't figured out is how to generate a message to the OWNER of
the
> mail box that he/she is over quota and needs to clear out some mail.
>
> I saw other's ask this, but never saw a clear answer to that issue. I'd
> guess that the C code could be hacked to create an email to the owner at
the
> same time as the "bounce" message, but that sounds more complicated than I
> think I can handle.
>
> Anyone else solve this?
>
> Thanks,
> Chris Bunnell
>
>
>
quotawarn1
quotawarn2
vdelivermail.c