Starting with version 2.7.0, the Resilio Connect Management Console can send an e-mail to the Admin when a job run is complete and when files in a Sync job are synced. This is done in two steps - setting mail server and configuring mail notifications for jobs.
Set up mail server
To start with, admin shall setup mail server in Management Console General settings.
If enabled, MC will initiate a connection to SMTP with TLS handshake. If disabled, Management Console won't use it by default, but if SMTP replies that it supports TLS, MC will switch to it.
Use anonymous SMTP server
Enable this option if your SMTP server accepts non-authenticated login. Otherwise, an authentication error will be reported. For better Security, Resilio, Inc. always recommends to set up an authenticated SMTP Server.
Starting with Resilio Connect v2.9 self-signed certificates can be verified through Management Console advanced settings. Add a certificate to the trusted CA and put the Console's address with port (8443 by default) there. Use DNS name for MC to be reached out through it, otherwise IP address will be used by default.
Verify Server certificate
Deprecated in version 2.9
Many SMTP servers make use of (self-signed) certificates. If such a cert cannot be verified for any reason, a connection to the SMTP server will not be possible. Uncheck this parameter to skip cert verification.
SMTP server configuration peculiarities
While configuring SMTP server please keep in mind following peculiarities:
- While it is common to use port 25 for non-TLS encrypted connections and port 465 for TLS-encrypted connections, it is not mandatory and up to your server configuration. The port number does not specify protection.
- The SMTP server hostname MUST match the hostname of your server certificate
- the "Use TLS" checkbox only controls if TLS channel is established from the very beginning of the session. Your SMTP server may demand to establish TLS later to accept credentials regardless of unchecked "Use TLS" checkbox.
- Anonymous authentication not supported, you must supply username and password.
- If your SMTP server is using a self-signed certificate, ensure Management Console is aware of this certificate. To do it, place it in PEM format anywhere on Management Server and set a global environment variable "NODE_EXTRA_CA_CERTS=<path_to_file>"
Resilio Connect does not in any way perform verification of the mail server or the e-mail addresses that will be used in job notifications. If a configured e-mail address is not valid or bounces mails, MC is not going to report it.
Connection without TLS over port 25Some email servers allow connecting over port 25 without TLS, though in some cases email server can tell Connect server that it supports TLS. Connect server will try to verify the certificate from the email server and it might not work if the certificate is self-signed. Adding an email server's self-signed certificate as an environment variable (NODE_EXTRA_CA_CERTS=file) containing a path to the PEM file might help. Check the following article: Adding self-signed certificates in NodeJS
Configure e-mail notifications per job
Each job can send a notification to inform the Admin about job run completions. They mainly reflect the job run summary from the Management Console. To set up and e-mail notification goes to Jobs -> Configure job. Select an existing job or create new.
Starting with Resilio Connect v2.9, it's also possible to configure notifications from MC Settings -> Notifications tab. It's possible to send a notification to a Management Console user, or simply any e-mail address not necessarily related to MC user. Even "View Only" users can receive e-mails.
Starting with Resilio Connect 2.9 it's possible to add a webhook as a recipient of a notification.
It's possible to set up a notification for All jobs or for a specific job. Multi select of several jobs is not supported.
Triggers are events that fire an e-mail or webhook notification. Depending on a selected trigger additional context settings apply.
Job run finished:
Meaning that all online Agents completed the transfer and executed scripts. There are no Agents with 'failed' status. Available for all jobs. For sync jobs notifications are sent when new or updated files are synced, basically when job's status changes from 'syncing' to 'synced'.
There's also a checkbox to not send an email if no data was transferred during the run. This is especially useful for jobs that are scheduled to run periodically but they don't necessarily have new data to transfer.
This trigger will also send e-mail if the job run was aborted manually or timed out honoring the timeout setting in job profile.
Job run finished with errors:
Meaning that job completed but some of the Agents are with status 'failed' and/or have some error. This trigger is not available for Sync jobs.
Job run not complete:
It will send a notification if a job (or a job run) didn't reach status 'Finished' or 'Synced' within the configured time period. It's useful in cases when Admin knows the approximate time required for job completion to be notified about it taking more than expected. Available for all types of jobs.
A notification will be sent on every new error that appears on an agent in a job run. There's an option to delay the notification by some time and send it only if the error is pending for more than a configured number of minutes. It's also possible to set up a notification about error being cleared.
Errors are added here per error code mentioned in this guide. Multi select is not available though.