Skip to main content
To change the logo in the notifications:
  1. Open shared/email_templates/style/default.yml.
  2. Uncomment the configuration about logo, choose either via embedded File or via URL:

    File (preferred)

    PNG Logo is uploaded to xorlab.
    default.yml

    URL

    Logo is referenced via a URL.
    default.yml
  3. In case of URL, click Publish and finish. The template configuration becomes active within about one minute.
  4. In case of File, add a new folder called shared under shared/email_templates.
  5. Create a new file inside shared/email_templates/shared and name it logo.txt (as configured above).
  6. Enter the logo Base64 encoded into this file. For Base64 encoding, you can use e.g. Base64.guru or CyberChef.
  7. Click Publish. The template configuration becomes active within about one minute.

Change the colors

In the same Branding & Colors section of the default.yml file, you can change the colors used in the mail notification templates to match your company’s brand identity.
  1. Click the style folder to expand it and click the default.yml file.
  2. The second part in the section titled Branding & Colors is marked as #colors:.
  3. Using the Ctrl+Slash (Cmd+Slash on macOS) keyboard shortcut, uncomment the colors line and the required lines that follow. Enter new values for color properties that can be changed:
    • error, alert, warning, ok, neutral—the color of the text label for the findings (aka the “kicker”, e.g., ALERT, WARN, GREEN LIGHT or UNDECIDED)
    • background—self-explanatory: the color of the background
    • light and dark—reserved (unused)
    • info
    • subscript (message info: from, date, etc.)
  4. Click Publish. The template configuration becomes active within about one minute.

Change the font

  1. Click the style folder to expand it and click the default.yml file.
  2. Go to the section titled Typography.
  3. Using the Ctrl+Slash (Cmd+Slash on macOS) keyboard shortcut, uncomment the font line and the required lines that follow. Enter new values for font properties that can be changed:
    • size—if you want to specify a new size
    • family—if you want to use another font family
    • color—for specifying a new font color
The resulting Typography section can look like the one below:
When you are done, click Publish. The template configuration becomes active within about one minute. All company information appearing as an email footer is configurable in the default.yml file located in the info folder.
  1. Click the info folder to expand it and click the default.yml file.
  2. Using the Ctrl+Slash (Cmd+Slash on macOS) keyboard shortcut, uncomment the required lines. Enter new values for company info properties that can be changed:
    • name—your company name
    • details—additional info, e.g., the department name such as "Security Operations Center"
    • email—contact email address
    • url—the URL address for a Self-Service Quarantine link in notification mails, e.g., "https://customer.activeguard.cloud"
    • provider—the name of the service provider
The resulting company information file can look like the one below:
When you are done, click Publish. The template configuration becomes active within about one minute.

Localization

In order to support localization for a particular language (lang) of a given country (COUNTRY), follow the steps below:
  1. Click the locale folder to expand it and click the default.yml file.
  2. In the right pane, select and copy the whole content of the file.
  3. Use the context menu for the locale folder to add a new file.
  4. Enter the name for the file in the dialog box that appears. Use the convention of default_lang_COUNTRY.yml, e.g., default_pt_BR.yml for the Brazilian Portuguese version of a file. Click Create.
  5. Scroll down to the file you have just created, click it, and in the right pane paste the content of the previously copied content of the default.yml file. For each template entry in the new localization file, replace the default text with its translation. Click Publish. The new localization file becomes active within about one minute.

Change the default language

The default language for notifications is defined in the default.yml file located in the config folder.
  1. Click the config folder to expand it and click the default.yml file.
  2. You will see only one entry: defaultLocale. Set it to your country code (currently, only EN and DE values are supported).
  3. Click Publish. The new default language becomes active within about one minute.

Using language headers

If you want to use another language in notifications for a particular report email, set the x-ag-locale email header in the report email to the locale desired for the template (this header must be set in the “outer” email that carries the reported email as attachment). For example, if you want to set the template for Swiss German, set the value to de-CH. For this reported email, xorlab Security Platform will then use the default_de_CH.yml instead of the default.yml template to pick the translation. To read the language from a custom header, for example my-custom-language-header instead of x-ag-locale, you would need to edit activeguard/core/active_guard.yml the following way:
Afterward, click Publish, then restart all MTAs. The emailReporting setting is in active_guard.yml and requires an MTA restart; see How to Activate the Configuration.

Managing Templates

Disable a template

  1. In the main shared/email_templates folder, click a .yml file for the notification template you want to disable.
  2. In the right pane, go to the category keyword and change its value from ANALYST_FEEDBACK to DEFAULT.
  3. Repeat these actions for every unwanted template and click Publish. The template configuration becomes active within about one minute.

Create a new template

To create a new email notification titled NOTIFICATION_NAME for the default tenant:
  1. Use the context menu for the email_templates folder to create a new file inside of it.
  2. Enter NOTIFICATION_NAME.yml as the name for the file in the dialog box that appears. Click Create.
  3. Scroll down to the file you just created, click it, and in the right pane paste the following content:
  4. Enter values that match the template usage—please refer to the Template configuration section.
  5. Go to the locale folder and, in each localization file of the default tenant, add a new entry for the new NOTIFICATION_NAME template using the YAML structure given below. For example, to localize the email notification into US English, add the following lines to default.yml:
  6. Click Publish. The new template becomes active within about one minute.
The table below explains the purpose of each key:
Untranslated sectionsAny template sections that are not translated will be rendered as empty in the final email notification.

Template configuration

The table below lists template parameters and their allowed values:

Using variables in templates

It is possible to use some variables in notification templates so that notifications contain more details about the email messages they refer to. The table below lists all available variables. In order to use them, type $email.<variable_name>, e.g., $email.subject or $email.senderAddress, where you want the desired value to appear in the notification email.
contextFieldsThe contextFields variable is an exception in the usage. Since it’s a map, you have to use the following pattern: $email.contextFields.get("<indicator>"), e.g., $email.contextFields.get("dce.indicator.shortened").

Multi-Tenancy

Everything on this page edits the default files, which apply to all tenants. To give a single tenant its own logo, colors, texts or footer, assign it an emailTemplateStyle in guarded_tenants.yml and create the matching files next to the default ones, instead of editing default itself. The customization steps are the same as above.

Customize Tenant Notifications

Step-by-step guide for per-tenant text, style, logo and footer.