Email a notice to email account if email limit reached

Version 1.45

Feature
Finished

Send an email to an email account if their per-email limit is reached. (not referring to the per-DA-User limit) Of course, the per-email limit must be turned on, see tip #3 to turn it on to have a limit in the first place: http://help.directadmin.com/item.php?id=514 internal directadmin.conf default: notify_email_on_per_email_limit=1 New template: /usr/local/directadmin/data/templates/per_email_limit_email_message.txt like other templates, if you want to change it, copy it to: /usr/local/directadmin/data/templates/custom/per_email_limit_email_message.txt to make changes. This email template uses <html> for a more friendly experience when they get the notice. There will also be a new token: NOTICE_SENT_TO_EMAIL=1|0 included in the per_email_limit_message.txt template, so it can add a note about a notice having been sent to the email account. Lastly, if email_ftp_password_change=1 is set (as it is by default), there will be a link to: CMD_CHANGE_EMAIL_PASSWORD where the DOMAIN token will be filled with the email of the domain. If force_hostname is set to some value, then this will be present instead. Keep in mind that your Users may be suspect of the email, as it does mention to login to a strange link, but that's likely beyond our control. If you were to create a custom template, be sure to make mention of your hosting company, so they recognize it. =============================== Contents of the template: ----------------------------------------- <html> |?SUBJECT=Warning: Your E-Mail account has just sent `COUNT` E-Mails| <center><table width=600 cellspacing=20px><tr><td id=main_text><h1> |EMAIL| has just finished sending |COUNT| E-Mails.</h1> There could be a spammer, your account could be compromised, or you're just sending more E-Mails than usual.<br><br> This warning was generated because the daily threshold of |LIMIT| E-Mails was hit.<br> Either wait until tomorrow for the count to be reset, or contact your domain manager.<br><br> The IP that sent the last email was:<br> |HOST|<br><br> |*if CAN_CHANGE_PASS="1"| If this is not your IP, or you did not send these emails, please change your password immediately:<br> <a target=_blank href="|HTTP|://|DOMAIN|:|PORT|/CMD_CHANGE_EMAIL_PASSWORD">|HTTP|://|DOMAIN|:|PORT|/CMD_CHANGE_EMAIL_PASSWORD</a><br><br> |*endif| <span id=footer>================================<br> Automated Message Generated by DirectAdmin </span> </td></tr></table> </center> <style> * { font-family: verdana; font-size: 10pt; COLOR: gray; } b { font-weight: bold; } table { border-radius:10px; box-shadow: 10px 10px 50px #000000; background: #28619c; } #main_text { background: #eef6ff; text-align: left; padding: 25; border-radius:5px; box-shadow: 2px 2px 15px #000000; } html { background: #ffffff; } h1 { font-size: 12pt; font-wight: bold; COLOR: #594842; } #footer { COLOR: #cad4e0; } </style> </html>

Interested to try DirectAdmin? Get a 30-day Free Trial!