Setups

Parent page: Orchestrator › Mail Audience: System Administrators, Developers Prerequisites: Admin role (for changes), Developer role (viewing)


Overview

The Mail › Setups screen defines the accounts Orchestrator reads and sends mail with. An account:

  • with Send Mail on, is used for system mails (notifications, activation, password reset), robots' mail activities and resends;

  • with Read Mail on, reads mails from a folder into the Inbox and passes a mail that matches the rules to a process as a work.

What you will learn on this page:

  • Mail types and account fields

  • The list, a new account and validations

  • Account details, connection test, password reset

  • Mail processes and rule groups

  • How incoming mails are read and passed to processes, simulation

  • The default mail and deletion rules


Mail Types

Mail Type

Read

Send

Connection

Exchange

Yes

Yes

Exchange Web Services; with Server Address, Username and password.

SMTP

No

Yes

With Server Address and Port (587 if empty), STARTTLS.

Microsoft Entra

Yes

Yes

Microsoft Graph; with Mail Address, password, Application (Client) Id and Directory (TenantId).

Read Mail can only be turned on if the company license includes mail reading (Admin › License).


List

Setups List

Setups List

The list shows all mail accounts of the company.

Item

Who sees it

Description

New Record

Admin

Opens the Mail Setup Create window.

Export

Everyone

Downloads the selected records, the current page or the current filter as a file.

Enable / Disable

Admin

Enables or disables the selected accounts in bulk.

Edit / Delete (row)

Admin

Appear disabled for the Developer role.

Details, Info

Everyone

Opens the details; shows who created and modified the record.

Default columns: Name, Description, Created User, Created Date, Mail Type, Username, Mail Address, Server Address, Port, Folder Path, Read Mail, Send Mail, Send Mail Retry Enabled, Send Mail Retry Count. Is Enabled and the modification and disabling details are added from the column selector.

The Setup Filters window has Name, Description, Mail Type, Username, Mail Address, Server Address, Is Enabled, Read Mail, Send Mail, Send Mail Retry Enabled and date ranges.


New Account

In the Mail Setup Create window the fields open according to the selected Mail Type.

Field

Required

Description

Name

Yes

Unique in the company. Robots select the account by this name.

Description

No

Mail Type

Yes

Exchange, SMTP or Microsoft Entra. Cannot be changed after saving.

Mail Address

Yes

Must be a valid mail address.

Username

Yes

The account's sign-in name.

Server Address

For Exchange and SMTP

Hidden for Microsoft Entra.

Port

For SMTP

Visible only for SMTP.

Password / Password Confirm

For Exchange and SMTP

Entered only when creating; later changed with Reset Password.

Application (Client) Id, Directory (TenantId)

For Microsoft Entra

The ids of the app registration in Azure.

Read Mail

No

Visible if licensed; not available for SMTP.

Folder Path

No

The folder read while Read Mail is on (e.g. Inbox\Invoices). If empty the inbox is read; subfolders are separated with \.

Send Mail

No

Always on for SMTP.

Save to Sent Items

No

Only for Microsoft Entra, while Send Mail is on. If off, the copy of the sent mail is deleted from the account's Sent Items folder.

Send Mail Retry Enabled / Count

Count required if enabled

How many times failed sends are retried automatically (greater than 0).

Validations:

  • For Exchange and Microsoft Entra, if Read Mail is on and Folder Path is filled, the folder is checked on the server: "Folder Path does not exist."

  • Both ids are required for Microsoft Entra: "Application (ClientId) and Directory (TenantId) required."

  • For reading accounts the same Mail Address, Folder Path and Mail Type cannot be defined twice: "Mail is already defined. Mail Address, Folder Path must be unique."

  • "Email address is not valid!", "Password can not be empty.", "Password and Confirm Password does not match."

  • When editing: Read Mail cannot be turned off on a reading account linked to a process; Send Mail cannot be turned off on the account that is the company's default mail.


Account Details

Clicking Details in the list opens the Mail Setup Details window.

Mail Setup Details — Actions Menu Open

Mail Setup Details — Actions Menu Open

Top buttons

Button

When visible

Description

Actions › Simulate Process Mail

If Read Mail is on

Shows which process a mail would be passed to (below).

Actions › Test Connection

Always

Connects to the account. On success "Test connection.", on error "Check email settings." and the error text. For sending accounts a mail with the subject "Test" is sent to the account's own address.

Actions › Reset Password

Admin

Changes the account's password.

Disable / Enable, Delete, Edit

Admin

Previous / Next, Close

Always

For a Microsoft Entra account the connection test also checks the app's Mail.ReadWrite and Mail.Send permissions; if missing, the warning "Mail Read permission not authorized." or "Mail Send permission not authorized." appears.

The Processes table (mail processes linked to the account) shows the Order Number, Process, Branch, Application and Is Enabled columns. Rows are reordered by dragging; when the order changes, the Save button that appears saves it. The order determines in which order an incoming mail is tried against the processes.


Mail Processes and Rule Groups

When a process with the Mail Input input type is linked to an account with the Input Mail field on the Process › Processes screen, a disabled mail process is added to the account's Processes table. The Input Mail list contains only accounts with Read Mail on. If the process is linked to another account, the record moves and is added to the end; if the input type changes or the process is deleted, the record and its rules are deleted.

Details in the Processes table (or Go To Mail Rules in the process details) opens Mail Process Details.

Mail Process Details — Rule Groups

Mail Process Details — Rule Groups

Fields: Mail, Process, Master Project, Branch, Application, Is Enabled. Enable / Disable is at the top; a mail process is not edited or deleted.

The Rule Groups panel decides whether a mail matches this process:

  • Groups are combined with OR: if any of the enabled groups matches, the mail matches this process.

  • Rules in a group are combined with AND: all enabled rules in the group must be met.

  • A mail process with no enabled rule group matches every mail.

+ (Add Rule Group) in the panel header opens a new group at the top; a group's Clone button opens a copy with its rules. A group has Name (required, unique in the process), Description and rule rows; Add adds a row, and there are Save and Cancel.

Rule field

Values

Field Type

Body, Subject, From Name, From, Cc, To, Attachment

Rule Type

Equal, Not Equal, Contains, Not Contains, Starts With, Ends With, Regex

Value

The text to compare. For From, To and Cc with Equal / Not Equal, mail addresses are entered (several separated by commas).

Is Case Sensitive

Case sensitivity.

Is Enabled

A disabled rule is not evaluated.

Rules:

  • A new rule group is always created disabled; turn the group on with Enable. A group without an enabled rule cannot be enabled.

  • The same Field Type, Rule Type and Value cannot be on two rows; a field can have only one enabled Equal and one enabled Not Equal rule; a row with empty fields is not saved ("Row {0}: All fields required.").

  • If the last enabled rule in a group is disabled, the group is disabled too. Before the last rule of an enabled group is deleted, the group must be disabled.

  • For the Attachment field it is enough if the name of any attachment of the mail matches the rule; a mail without attachments does not meet the rule. An empty field (e.g. a mail without Cc) meets no rule.

💡 Tip: Enable the mail process with Enable once its rules are ready; the read job starts when the account has at least one enabled mail process.


How Incoming Mails Are Processed

  1. Every account with Read Mail on, enabled and with at least one enabled mail process is read once a minute. For Exchange up to 500 items in the folder are taken, for Microsoft Entra the first 25 mails of the folder.

  2. Each mail is written to the Inbox as Pending (with its .eml file and attachments) and removed from the folder on the server: on Exchange it is moved to Deleted Items, on Microsoft Entra it is deleted.

  3. The processing job, which runs once a minute, tries the enabled mail processes of the account of each Pending mail in Order Number order (the process must also be enabled). A work is opened for the first process whose rules match, and the mail becomes Processed; no other process is tried.

  4. If no process matches, the mail becomes No Valid Process; it can be retried from the Inbox or assigned to a process manually.

The input of the opened work contains the Subject, Body, To, Cc, From, From Name, the send and received dates and attachment details; attachments are added to the work as files; the work's description becomes "From - Subject". Works cannot be added manually to Mail Input processes.

Simulate Process Mail

Opened with Actions › Simulate Process Mail in the account details. While Use EML File is checked an .eml file is dropped; if cleared, From, To, Cc, Subject, From Name, Body and attachment names are entered manually. Simulate runs the same rules as real processing on the enabled mail processes and shows the result "Mail will be assigned to "…" process" or "Assignable process not found.". The simulation does not create records.


Default Mail and Deletion

  • The company's Default Mail is selected in Admin › Companies from accounts with Send Mail on. Notification, activation and password reset mails are sent with this account; so are robot mails if the robot does not give an account name.

  • The default mail cannot be deleted or disabled.

  • An account used in a process's mail process cannot be deleted: "You can not delete this mail because it is used in "…" process."

  • When an account is disabled or Read Mail is turned off, reading stops.

Roles

  • The screen is available to the Admin and Developer roles; creating, editing, deleting, enabling/disabling and resetting the password are only for Admin ("Only Admin Can Make Changes").

  • Mail Process Details and rule groups are available to the Admin and Developer roles.

  • Sent and read mails are tracked on the Inbox and Sent screens, templates on the Templates screen.