Installation instructions

GFI MailSecurity for Exchange/SMTP Advanced topics 129
Advanced topics
Customizing the notification templates
GFI MailSecurity sends notification emails to the administrator/user
whenever an event that needs attention occurs.
There are two types of notifications:
Administrative notifications GFI MailSecurity sends these
notifications, for example, when a license is going to expire,
when a new patch is available, and when new anti-virus engine
updates are available.
End user notifications GFI MailSecurity sends these
notifications to the sender/recipient of an email when an email
gets quarantined or modified.
The notification email message is generated from templates stored in
sub-folders in the ContentSecurity\MailSecurity\Templates
folder.
Each template sub-folder can contain an HTML body template
(html.txt), a text body template (text.txt), and a subject template
(subject.txt).
NOTE: The template folder names and template file names are
predefined and therefore you cannot change them.
The templates contain the text of the notification message, as well as
field names that are replaced by dynamic values upon generation of
the notification message.
There are two types of template:
Tag-based templates These templates use tags (in the
form "[TAGNAME]”) to indicate fields which need to be
replaced with dynamic data.
XSL-based templates These templates are an XSL style
sheet, and are used in conjunction with dynamically created
XML data to generate the notification message.
NOTE: Always take a backup of the template you are going to modify.
In this way, you can always recover from the backup template if your
modified template does not work as expected.
NOTE: Before modifying XSL-based templates, make sure you are
proficient in XML and XSL. If you modify an XSL template and it is not
well formed, for example, the notification services module will fail to
send notification emails. To check whether an XSL based template is
well formed, you can rename the template filename with an extension
of “.xml” and load it in Microsoft Internet Explorer. If the template is
well formed, the browser will load it correctly. If it contains errors, the
browser will highlight the exact line where the problem is located.