Start a conversation

Customizing Email Notification Templates

Overview

From time to time, there may be a requirement to configure customized Email templates for specific email notifications (e.g., Virus alert, Antivirus check, Backup, etc.).

Original email alert

img44-mod.png

This article provides instructions on how to customize Email notification templates.


Prerequisites

Configure the Email server using MyKerio or SMTP server

Configure Alert settings (example for Peer-to-peer content rule traffic)

alerts.png

SSH access to Kerio Control

Basic HTML knowledge


 

Solution

  1. Log in to Kerio Control via the SSH console.

  2. Navigate to the /opt/kerio/winroute/templates/email folder. The command is:

    cd /opt/kerio/winroute/templates/email
  3. Make the system read-writable by running the command:

    mount -o rw,remount /
  4. Locate the necessary template file for the required language. It will have a .tpl file extension.

    Important: It is recommended to backup the original .tpl file before any modification. The customization changes might not survive the upgrade of Kerio Control, because the upgrade procedure overwrites some of the internal files. 

    128.png

  5. Modify the necessary file (i.e., Content rule matched notification) using Vim or Nano editor. In this case, we want to prepend the "Content" word before the Rule name.

    content_rule_template.png
    Scroll down and find the necessary tag in HTML Body.
    content_rule_template2.png
  6. Save the changes and reboot Kerio Control by executing this command:
     /etc/boxinit.d/60winroute restart

 

Back to Top

Testing

Wait for the alert to trigger, i.e. once the user accesses the website which uses Peer-to-Peer. The email message contains the custom text.

img45-mod.png

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Priyanka Bhotika

  2. Posted
  3. Updated

Comments