Bit of an issue with Exim sending out warning messages for email accounts.
Basically, being ever conscious that wonderful customers will use their mailbox as a means of storing anything and everything and think nothing of their mailbox reaching several GB in size I'm implementing new rules and caps on mailbox sizes. (Obviously customers are being advised and updated, etc)
Putting the rules in place thanks to DA is a breeze and done within a few clicks.
The next step is making sure that customers are made aware that they are reaching their limit, and thereby given ample opportunity to take steps to manage their mailbox size like a grown up.
Again thanks to the code I found on DA website (http://help.directadmin.com/item.php?id=157) this was achieved in a few clicks.
As pointed out in another thread, this only warns once and if they hit the threshold again then the message won't be sent out. The quick and easy way I have found around that is to restart Exim AFTER they have reduced their mailbox size. This will then send another message out if/when they reach the 80% limit (or whatever you set it as) at which point you would need to reboot Exim. For me a temp fix is to make Exim restart once a week, maybe at say 4am on a Sunday morning or something. If anyone can suggest a better solution then this would be appreciated though.
Second question I now have, is how to get it to send the warning message to multiple emails i.e. [email protected] and also [email protected] - This will make me aware of it, and I can then chase/remind them manually too. (Tried user@domain (semi-colon ; ) [email protected] but that doesnt work)
Next question is can I, and if so how, use HTML and or special characters (% £ $ @ / \ etc etc etc) in the quota message sent out. Not looking at a huge message, but something less bland with a couple of links. Am I then better to manually insert this line by line into the exim.conf file (example as below) or should I just have a separate file and link it from my exim.conf file? Not sure how to do that, but may be a better idea? (As Im typing this, I've just discovered I can use the % symbol in the exim.conf quota message that is sent out. Did have issues using the / symbol though)
And my last question is can I configure it to send out several messages at say 80% then at 90% then at 95%? Assuming that if I copied the BOLD text below and repeated underneath but at 90% then at 95% then that would work? Not tried yet, just thinking out loud but again a robust solution would be apprecaited.
Rough mockup of the sort of thing I would like to send out.....
Basically, being ever conscious that wonderful customers will use their mailbox as a means of storing anything and everything and think nothing of their mailbox reaching several GB in size I'm implementing new rules and caps on mailbox sizes. (Obviously customers are being advised and updated, etc)
Putting the rules in place thanks to DA is a breeze and done within a few clicks.
The next step is making sure that customers are made aware that they are reaching their limit, and thereby given ample opportunity to take steps to manage their mailbox size like a grown up.
Again thanks to the code I found on DA website (http://help.directadmin.com/item.php?id=157) this was achieved in a few clicks.
As pointed out in another thread, this only warns once and if they hit the threshold again then the message won't be sent out. The quick and easy way I have found around that is to restart Exim AFTER they have reduced their mailbox size. This will then send another message out if/when they reach the 80% limit (or whatever you set it as) at which point you would need to reboot Exim. For me a temp fix is to make Exim restart once a week, maybe at say 4am on a Sunday morning or something. If anyone can suggest a better solution then this would be appreciated though.
Second question I now have, is how to get it to send the warning message to multiple emails i.e. [email protected] and also [email protected] - This will make me aware of it, and I can then chase/remind them manually too. (Tried user@domain (semi-colon ; ) [email protected] but that doesnt work)
Next question is can I, and if so how, use HTML and or special characters (% £ $ @ / \ etc etc etc) in the quota message sent out. Not looking at a huge message, but something less bland with a couple of links. Am I then better to manually insert this line by line into the exim.conf file (example as below) or should I just have a separate file and link it from my exim.conf file? Not sure how to do that, but may be a better idea? (As Im typing this, I've just discovered I can use the % symbol in the exim.conf quota message that is sent out. Did have issues using the / symbol though)
And my last question is can I configure it to send out several messages at say 80% then at 90% then at 95%? Assuming that if I copied the BOLD text below and repeated underneath but at 90% then at 95% then that would work? Not tried yet, just thinking out loud but again a robust solution would be apprecaited.

Rough mockup of the sort of thing I would like to send out.....
Code:
quota = ${if exists{/etc/virtual/${domain}/quota}{${lookup{$local_part}lsearch*{/etc/virtual/${domain}/quota}{$value}{0}}}{0}}
[B]quota_warn_threshold = 80%
quota_is_inclusive = false
quota_warn_message = "\
To: $local_part@$domain\n\
Subject: Your mailbox size is near its limit\n\n\
This message was automatically created by the mail server.\n\n\
The size of your mailbox for $local_part@$domain has reached 80% of your maximum mailbox size.\n\n\
When you reach your mailbox limit, you will be unable to send or receive any emails until you reduce the size of your mailbox.\n\n\
\n\n\
\n\n\
<u>Notes</u>
You can reduce the size of your mailbox by either deleting large emails, deleting old and unnecessary emails or by emptying your Deleted Items/Trash/Messages folder\n\n\
which will recover some of your space. For directions of how to do this, click <a href="http://www.mydomain.com/mailbox.pdf">HERE</a>\n"[/B]