Skip to content

SMTP

If necessary each tenant can override SMTP configuration to use a different SMTP server to send emails from their email tasks. Using variables and secrets in AireVault combined with appropriates scopes, it's even possible to specify different SMTP settings for each workflow definition version.

How do I override the SMTP configuration for my tenant?

Create whichever of the following variables and secrets you require in AireVault

NameTypeDescription
SmtpHostVariableThe host of your SMTP server, e.g. smtp.gmail.com
SmtpPortVariableWhich port to connect on, defaults to 465
SmtpUsernameVariableThe username for your SMTP server, e.g. john@example.com
SmtpPasswordSecretThe password for your SMTP server. This must be a secret, not a variable.
SmtpUseSslVariableWhether to connect using SSL, defaults to true
SmtpDefaultFromVariableThe default sending email address, e.g. bob@example.com

How do I override the SMTP configuration for a specific workflow?

Using AireVault scopes, you can set different values for each of the above settings down to a workflow definition version level. See some examples below.

ScopeDescription
emptyProviding an empty scope will use the value by default for all products that support overriding SMTP config with Vault, unless a more specific scope is found
flowThe value will be used by default by AireFlow only
flow:my-workflow-keyAll versions of the workflow with key my-workflow-key will use this value
flow:my-workflow-key:2Only version 2 of the workflow will use this value