exim quota warn issue

evil_smurf

Verified User
Joined
Mar 3, 2006
Messages
112
I have the following configuration to warn users when they are getting close to their quota. It seemed to work as I was warned a few weeks ago, and I went and deleted email to get my account way under quota (also under the 80% threshold). I just reached my quota completely today without any warning email sent again. Is there something I am missing that would make the email send once when a quota is getting close, but not a second time when email is deleted to be below the 80% threshold and then the threshold is reached again?

quota_warn_threshold = 80%
quota_is_inclusive = false
quota_warn_message = "\
To: $local_part@$domain\n\
Subject: Email quota warning\n\n\
This message was automatically created by the\n\
EGGYCrew mail server.\n\n\
The size of your mailbox $local_part has exceeded \n\
a warning threshold of 80 percent of your maximum\n\
mailbox size. Please consider removing any unnecessary \n\
messages. Once your mailbox quota is reached no new \n\
messages will be delivered to your mailbox until additional\n\
space is available.\n"
 
I have the following configuration to warn users when they are getting close to their quota. It seemed to work as I was warned a few weeks ago, and I went and deleted email to get my account way under quota (also under the 80% threshold). I just reached my quota completely today without any warning email sent again. Is there something I am missing that would make the email send once when a quota is getting close, but not a second time when email is deleted to be below the 80% threshold and then the threshold is reached again?

quota_warn_threshold = 80%
quota_is_inclusive = false
quota_warn_message = "\
To: $local_part@$domain\n\
Subject: Email quota warning\n\n\
This message was automatically created by the\n\
EGGYCrew mail server.\n\n\
The size of your mailbox $local_part has exceeded \n\
a warning threshold of 80 percent of your maximum\n\
mailbox size. Please consider removing any unnecessary \n\
messages. Once your mailbox quota is reached no new \n\
messages will be delivered to your mailbox until additional\n\
space is available.\n"

Facing the same problem too, will it send another notification if the threshold is reached for 2nd time and so forth
 
Hi,

I know this thread is old, but I came across it through a google search. Does anyone know if Exim now notifys a 2nd & 3rd time or does it only notify once?

I know DA sends the admin quota warnings through the message system, does the message system also warn users via email?

thanks.

Denny
 
On your Message System screen you can set if you want notifications of messages sent, and if so, to which email address.

Jeff
 
As far as I can tell the quota message is only sent once. It will only be sent again after the usage has been below the treshold message again.
 
As far as I can tell the quota message is only sent once. It will only be sent again after the usage has been below the treshold message again.

thats part of what i was asking if we can configure the interval and if the ststem will resend again? if the user has done nothing.

Also it looks like that same message is sent to admin and user, very generic.

/usr/local/directadmin/data/templates/user_limit.txt

is there a way to have 2 different emails, one for Admin and Custom for user?

thx
 
I have read the exim documentation and there is no option to set the interval when this message is sent.

Default the message is only sent to the use itself.

This message:
/usr/local/directadmin/data/templates/user_limit.txt
Is NOT the message that exim sent but it is what DA sent.

The topic started mentioned quota_warn_message, that is how to change the messsage itselfs.

You will find info about this here:
http://www.exim.org/exim-html-current/doc/html/spec_html/ch26.html
 
I've set this option to exim and change quota smaller for one account and I don't have any notifications. (I use dovecot)
I also try use user_warning_thresh=80 but I don't have any notification.
 
Last edited:
but I don't have any notification.

To test it do this:
1. set a low limit in exim.conf like 2MB
2. create a new mailaccount
3. Send a few small mails to it but stay below the limit.
4. Send one large mail with 3MB or so in it.

Then you will receive the warning, but only once. Accounts that are already over the limit do not get the message I think.
 
Same problem here

I'm going to use this thread as we have the exact same problem and no way of solving it. The warning e-mail is sent only once and then never again. This is frustrating, because we can not impose a limit if we don't regulary warn a user if he/she is over 80% treshold. Here is my exim.conf configuration:

Code:
quota = ${if exists{/etc/virtual/${domain}/quota}{${lookup{$local_part}lsearch*{/etc/virtual/${domain}/quota}{$value}{0}}}{0}}
quota_warn_threshold = 80%
quota_is_inclusive = false
quota_warn_message = "\
      To: $local_part@$domain\n\
      Subject: Vas postni predal je vsaj 80% zaseden - Your mailbox is at least 80% full\n\n\
      To sporocilo je bilo generirano avtomaticno,\n\
      ker je zasedenost vasega postnega predala dosegla\n\
      ali presegla 80% dodeljenega prostora. Ce zasedenost\n\
      postnega predala doseze 100%, bo onemogoceno prejemanje\n\
      novih e-postnih sporocil. V izogib temu predlagamo,\n\
      da izbrisete ali arhivirate starejsa e-postna sporocila.\n\
      Natancnejso porabo dodeljenega prostora lahko spremljate\n\
      preko spletne poste (PNV Webmail), levo spodaj.\n\n\
      ------------------------------------------------------------\n\
      This message was automatically created\n\
      by mail delivery software.\n\n\
      The size of your mailbox $local_part has exceeded \n\
      a warning threshold of 80 percent\n\
      of your maximum mailbox size.\n"
 
1. You should not be opening old threads. Always open a new thread.

2. You cannot regularly warn users because it would create a never ending loop possibility and potentially crash the server.
 
Back
Top