Skip to main content
xorlab analyzes QR codes by default and extracts their URLs where available. By default, it applies QR code analysis on:
  • Images attached to the email
  • Rendered previews of the email body (only done for some emails)
  • Rendered previews of attachments (only done for some emails)

Change rendering policy

xorlab has a separate rendering policy for email body previews as well as for attachment previews.
Which emails and attachments are rendered by default, and the delivered values of the parameters below, are documented in Detection Defaults → QR code analysis. Access to that page is restricted.
You can change this behavior in Expert Editor in the local.properties file located at activeguard/core/rule_sets/90_local/params/ by setting the following parameters to ACTIVE or DISABLED:
Increased resourcesEnabling FILE or MAIL rendering can significantly increase the resource usage on the MTA.
QR code analysis for internal/outgoing emailsWhen enabling one of these FILE_RENDER rules:
you must also enable the two FILE_QR_EXTRACTION rules, otherwise they have no impact:
After changing the rule properties, click Publish. The rule-set configuration becomes active within about one minute.

Enabling/disabling QR code URL extraction

  1. Open Expert Editor and go to the file located at activeguard/core/active_guard.yml.
  2. The following configuration represents the default settings, which are automatically applied in the absence of explicit qrCodeService configurations in the active_guard.yml file.
    active_guard.yml
  3. To disable the QR Code URL Extraction feature, simply change enabled: true to enabled: false.
  4. Click Publish, then restart all MTAs. The qrCodeService setting is in active_guard.yml and requires an MTA restart; see How to Activate the Configuration.

Customizing extraction from PDF attachments

For a more tailored approach to handling PDF attachments, you can adjust how the system renders PDF pages for QR code extraction:
  1. In Expert Editor, open the activeguard/core/active_guard.yml file.
  2. Locate or add the pdfFileRenderService section to adjust the rendering settings for PDF attachments as needed:
    active_guard.yml
  3. Click Publish, then restart all MTAs. The pdfFileRenderService setting is in active_guard.yml and requires an MTA restart; see How to Activate the Configuration.
The delivered PDF rendering values are documented in Detection Defaults → QR code analysis. Access to that page is restricted.
By following these steps, you can activate and configure the QR Code URL Extraction feature according to your organization’s specific needs. Adjusting the PDF rendering settings allows for flexibility in balancing performance with the thoroughness of QR code scanning within your documents.