quota_warn_message sends no message

View: New views
2 Messages — Rating Filter:   Alert me  

quota_warn_message sends no message

by Hannes Rapp :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I set up quotas and warning message in my exim config, but I do not
receive a warn message if I cross the quota.
exims seems to recognize that the mailbox exeeds the quota threshold,
but sends no message.
I search the internet, but didn't find any solution.
Any ideas ?

Version: Exim version 4.69 #1 built 05-Oct-2008 23:05:26

23:43:20 32606 check_dir_size: regex did not match courierpop3dsizelist
23:43:20 32606 check_dir_size:
dir=/srv/mail/spool/kepler2004.de/webmaster/Maildir sum=57428328 count=1110
23:43:20 32606 delivering in maildir format in
/srv/mail/spool/kepler2004.de/webmaster/Maildir
23:43:20 32606 expanding: ,S=$message_size
23:43:20 32606    result: ,S=297
23:43:20 32606 writing to file tmp/1223243000.H201561P32606.kepler2004.de
23:43:20 32606 Exim quota = 60817408 old size = 57428328 this message =
297 (not included)
23:43:20 32606   file count quota = 0 count = 1110
23:43:20 32606 writing data block fd=7 size=412 timeout=0
23:43:20 32606 quota = 60817408 threshold = 42572185 old size = 57428328
message size = 412
23:43:20 32606 renaming temporary file
23:43:20 32606 expanding: ,S=$message_size
23:43:20 32606    result: ,S=412
23:43:20 32606 renamed tmp/1223243000.H201561P32606.kepler2004.de as
new/1223243000.H201561P32606.kepler2004.de.de,S=412
23:43:20 32606 appendfile yields 0 with errno=0 more_errno=0
23:43:20 32604 journalling webmaster@...
23:43:20 32606 search_tidyup called
23:43:20 32606 close MYSQL connection:
localhost:(/var/run/mysqld/mysqld.sock)/vusers/XXXXX
23:43:20 32604 virtual_imapdelivery transport returned OK for
webmaster@...
23:43:20 32604 added retry item for T:webmaster@...: errno=0
more_errno=0 flags=1
23:43:20 32604 post-process webmaster@... (0)

my config looks like this:
        quota_directory = "${lookup mysql{MYSQL_HOME_IMAP}}"
        maildir_format
        mode_fail_narrower = false
        quota = "${lookup mysql{MYSQL_QUOTA}"
        quota_warn_message = "\
To: $local_part@$domain\n\
Subject: Your mailbox / Deine Mailbox\n\
\n\
Dies ist eine automatisch erstellte Nachricht.\n\
Ihre Mailbox hat 75% der maximal erlaubten Groesse erreicht!\n\
Bitte rufen Sie alle Emails vom Server ab bzw. loeschen Sie gelesene
EMails. \n\n\
\n\n\n\
This message was automatically created \
by the mail delivery software.\n\
The size of your mailbox has exceeded \
a warning threshold of 75% that is\n\
set by the system administrator.\n\n"
        quota_warn_threshold = 75%
        maildir_tag = ,S=$message_size
        quota_size_regex = ,S=(\d+)
        quota_is_inclusive = false


--
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Re: quota_warn_message sends no message

by Phil Pennock-9 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 2008-10-06 at 00:01 +0200, Hannes Rapp wrote:
> I set up quotas and warning message in my exim config, but I do not
> receive a warn message if I cross the quota.
> exims seems to recognize that the mailbox exeeds the quota threshold,
> but sends no message.

The key word here is "cross"; bear in mind that the quota notification
is delivered to the normal message recipient.

"If the resulting value is greater than zero, and delivery of the
message causes the size of the file or total space in the directory tree
to cross the given threshold"

For the warning message to be sent, the delivery of *this* email must
cause the total usage to cross over the warn threshold.  Otherwise, the
receipt of the warning message would cause another warning message to be
sent.

The first mail which caused the threshold to be exceeded will have added
generated a warning mail.  In this case:

> 23:43:20 32606 quota = 60817408 threshold = 42572185 old size = 57428328
> message size = 412

you were already over the threshold.

Regards,
-Phil

--
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
LightInTheBox - Buy quality products at wholesale price!