Create a messaging account
Create the messaging account Servicely uses to collect or send email, test its connection and turn on the mail jobs.
A messaging account holds the mail server and credentials Servicely uses to collect or send email. Create one account for inbound mail and one for outbound mail before you set up inbound processing or notifications.
Before you begin
- You need the
administratorrole. - Switch to the Administration workspace with the Workspace selector at the foot of the menu.
- Have the mail server name, port, username and password ready.
- A Microsoft 365 mailbox does not accept a password. Create its token first. See Connect Microsoft 365 mail with OAuth2.
Steps
-
Go to Messaging & notifications → Accounts & channels → Messaging accounts.

The Messaging accounts item in the Messaging & notifications menu. -
Select New.

The empty Create Messaging account form, with Provider, Type, Active, Default and the Authentication tab. -
Enter a Name and leave Provider as Email.
-
Set Type.
Value Meaning IMAP (Inbound Email) Collects mail from a folder of the mailbox. POP3 (Inbound Email - Limited options) Collects mail. It has no folder settings and signs in with a password only. SMTP (Outbound Email) Sends notifications and replies. -
On the Connection tab, enter the mail server’s details.
Field What to enter Example Server The mail server’s host name. imap.example.comPort The port the server listens on. 993 Enable TLS, Enable SSL Yes for the encryption the server uses. Enable TLS: Yes Source folder IMAP only. The folder Servicely collects from. Inbox Move to folder IMAP only. The folder collected mail moves to. Processed Unread only IMAP only. Yes collects unread mail only. Yes is the default. Yes 
An IMAP (Inbound Email) messaging account on the Connection tab, with Server, Port, Enable TLS, Source folder, Move to folder and Unread only. -
On the Authentication tab, enter the Username and set Authentication type.
Value Meaning Password The form shows Password. Enter the mailbox password. OAuth 2 The form shows Outbound API token, which is required. Select the token you created for the mailbox. -
Set Active to Yes and select Create. If the account uses neither TLS nor SSL, the dialog “SMTP encryption not required” warns you, and the account is still saved.
-
Select Test Connection. It saves the record, then shows “Connection test successful”, a warning, or “Connection test failed” with the server’s response.
-
Go to Scripting & automation → Jobs & generators → Jobs.

The Jobs item under Jobs & generators in the Scripting & automation menu. -
Open the Inbound email processing job, set Active to Yes and select Save. Both mail jobs are inactive by default, and no mail moves until they are active.
-
Open the Outbound email processing job, set Active to Yes and select Save.
Result
The account is in the messaging accounts list and its connection test passes. Every minute, the Inbound email processing job collects mail through each active inbound account, and the Outbound email processing job sends through each active outbound account. Failure count stays at 0 while the account works.
Options
| To | Do this |
|---|---|
| Start from Servicely’s settings for Gmail or Microsoft 365 | On the new form, open the Templates menu at the top right. It holds an IMAP inbound and an SMTP outbound template for each. The Microsoft templates set Authentication type to OAuth 2. |
| Send notifications that name no account through this account | On an SMTP account, set Default to Yes. |
| Send from an address that differs from the username | On the Authentication tab, enter From address under Email Routing. |
| Stop late emails from being sent | On an SMTP account, enter Maximum age for automatic sending (minutes). An email still waiting that long after its last update moves to Error. Blank uses the system setting, and 0 means no limit. |
Variations
Microsoft 365 through Graph API
One account of the type Microsoft Graph API (Inbound/Outbound Email) both collects and sends. The Type list does not show this value by default. See Connect Microsoft 365 mail with Graph API.