Kenny Lee wrote:
Hi
Dhaval,
i have created a file called ".quotawarn.msg" inside the folder
"/home/vpopmail/domains/" ...
and i also set the permission to vpopmail.vchkpw
-rw-r--r-- 1 vpopmail vchkpw 467 Oct 26 13:08 .quotawarn.msg
==Content of the file==
From: Mail Delivery System <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: User:;
Subject: Mail quota warning
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 7bit
Dear Mail User,
Your mailbox on the server is now more than 90% full. So that if you
still
want your mailbox able to receive mail, you need to remove some
messages
from your mailbox (Delete & Purge messages ).
Thank you
Regards,
System Administrator
== End of Content==
after i have setup all of the things, i tried to push in the mail to
hit 90% quota, i still unable to get the msg ...
i have read the README.quotas and found that we need to modify the
vdelivermail.c and re-compile. Do i need to modify the file? i have
checked the file and below is one of the part related to
QUOTA_WARN_PERCENT
===part of the file "vdeivermail.c"==
if (QUOTA_WARN_PERCENT >= 0 &&
vmaildir_readquota(address, format_maildirquota(quota))
>= QUOTA_WARN_PERCENT) {
deliver_quota_warning(address,
format_maildirquota(quota));
=========================
do i need to change the "if (QUOTA_WARN_PERCENT >= 0 &&" to
"if (QUOTA_WARN_PERCENT >= 90 &&", then re-compile the
vpopmail?
this should work, this is all i have done in my server. the only diff
is From: Mail Delivery System <[EMAIL PROTECTED]> in
my file, which should not make any impact
check readme,
it says
To change the percentage to something other than
90, edit
QUOTA_WARN_PERCENT in vdelivermail.c and recompile.
|