vSL - the vSMTP Scripting Language

vSL is a lightweight scripting language dedicated to email filtering. It is based on the fully featured Rhai scripting language. To make the most out of vSL, it is recommended that you read the documentation of Rhai.

vSL, on top of Rhai, adds:

  • Functions used to query vSMTP on the current transaction’s data.
  • Constructors used to create objects like regex, fqdn and addresses for filtering.
  • Services, objects that helps vSMTP to interact with third party software.
  • A special rule syntax to filter emails.

Syntax highlighting is available for Microsoft VSCode IDE, using the Rhai extension.