For cPanel & WHM 11.46
You can customize templates for the notifications that the system sends to your cPanel users. For example, you can modify the notification template files to reflect your company's brand or services.
Notification template files
You can use the following notification template files:
|Account's mailbox quota|
|Disk space quota|
Account's bandwidth quota
If you do not configure the
This is a custom file that WHM does not automatically include. If you do not configure this file, the
Modify a notification template
- Modify the text in the template file only. Do not change information that is between the
[% %]tags. The template will not function properly without this information.
- If you edit these files on a Microsoft® Windows® computer, make certain to run the
dos2unixcommand on the file to ensure that it includes proper line endings. For more information, read the dos2unix documentation.
To modify a template, perform the following steps:
Create the appropriate subdirectory within the
/var/cpanel/templates/directory (for example, to create the template for notifications about mailbox quotas, create the
The subdirectory must match one of the options listed in the table above.
Copy the template that you want to modify into the new directory as either the
- Use your preferred text editor to make changes to the template.
For example, the account mailbox notification template in the
/usr/local/cpanel/src/templates/mailbox_size_warning/main.default file resembles the following example:
To create a more personal notification, you can modify the following text:
The new notification message might include the following text instead:
The system only sends notifications in one language, the language in which you write the template text. You can localize the templates for any of the events, but you cannot have separate templates for each desired language.