Create a messaging account
Create the messaging account Servicely uses to read or send email, and test its connection.
A messaging account holds the server, credentials and type Servicely uses to collect or send email. Administrators create one account for inbound mail and one for outbound mail before inbound processing or notifications can work.
Before you begin
- You need the
administratorrole. - Have the mail server name, port, username and password ready, or the token or app registration your authentication type needs.
- For Microsoft 365 mailboxes, prepare the connection first: see Connect Microsoft 365 mail with Graph API or Connect Microsoft 365 mail with OAuth2.
Steps
-
Go to Administration → Messaging → Messaging accounts and select New.
-
To start from shipped settings, apply a template. Servicely ships IMAP inbound and SMTP outbound templates for GMail and for Microsoft mailboxes.
-
Enter a Name and set Provider to Email.
-
Set Type. Use IMAP or POP3 to collect mail, SMTP to send it, or Microsoft Graph API for both. The table below lists the values.
-
Fill in the connection fields: Server, Port, Enable SSL or Enable TLS, and for inbound accounts Source folder, Move to folder and Unread only.
-
Enter the Username and choose the Authentication type. For Password, enter the password. For OAuth 2, select the Outbound API token.
-
For an outbound account, set Default to Yes if notifications should use it when they name no account.
-
Set Active to Yes and save the record.
-
Select Test Connection. A dialog confirms “Connection test successful”. On failure it shows “Connection test failed” with the response the mail server returned.
| Type | Direction | Notes |
|---|---|---|
| Microsoft Graph API (Inbound/Outbound Email) | Inbound and outbound | Uses Tenant Id, Client Id and App secret instead of a server. |
| POP3 (Inbound Email - Limited options) | Inbound | Delete POP3 messages removes collected mail from the server. |
| SMTP (Outbound Email) | Outbound | Sends notifications and replies. |
| IMAP (Inbound Email) | Inbound | Reads Source folder. Unread only is on by default. |
Result
The account appears in the messaging accounts list, and its connection test passes. The Inbound email processing and Outbound email processing jobs collect and send mail through every active account once a minute. Both jobs ship inactive, so activate them before you expect mail to flow.