evalinkdocs

Virtual email and SMS receivers

Turn incoming emails and SMS into alarms on a site, with the Virtual Email Receiver and the Virtual SMS Receiver.

What the email and SMS receivers do

The Virtual Email Receiver reads one mailbox of your company. The Virtual SMS Receiver listens on one Twilio phone number. Each message that arrives there becomes an alarm on the site it belongs to.

evalink talos finds the site in one of two ways, which you choose per site:

  • With a token. The message contains the site's token. Use this when you can write the message text yourself, for example in a script or a device that sends custom emails. The message can come from any sender.
  • With the sender. The message comes from an email address or phone number that you name on the site. Use this when the sender writes its own fixed text, for example an automatic notification. Text mappings then turn that text into an alarm code and zone.

Unlike the other receivers, these two have no alarm panel behind them and no connection supervision. You set them up in two steps: once for your company, then on each site.

The Virtual SMS Receiver is a premium feature. The Virtual Email Receiver isn't.

Set up the Virtual Email Receiver for your company

To connect the mailbox, go to Company and open the Integrations tab.

  1. On the Virtual Email Receiver card, click Add Integration.
  2. Enter the IMAP Host and the IMAP Port (usually 993) of your mail provider.
  3. In IMAP Folder, keep inbox or enter the folder evalink talos should read.
  4. For a Microsoft 365 mailbox, switch on Authenticate with OAuth2 and click Log in to sign in with Microsoft. For other providers, enter the IMAP Username and IMAP Password.
  5. Save the dialog.

When the connection works, the card shows Connected. Invalid credentials or Connection error means evalink talos can't read the mailbox. If the Microsoft sign-in expires, the dialog says "The access token has expired. Log in again."

Use a mailbox that receives only alarm emails. With Gmail and similar services, an app password often works where your normal password doesn't.

Set up the Virtual SMS Receiver for your company

To connect the Twilio number, go to Company and open the Integrations tab.

  1. On the Virtual SMS Receiver card, click Add Integration.
  2. Enter the Twilio account SID and the Twilio auth token, and select the Twilio region of the account.
  3. In Twilio phone number, enter the number that receives the alarm SMS. It must belong to that Twilio account.
  4. Save the dialog.

evalink talos sets up the number in Twilio for you. The card then shows Configured. Don't use the same number for SMS verification in Twilio SMS Notifications; the card then shows "The Twilio phone number conflicts with Twilio SMS Notifications." See Calls, SMS, email and Slack.

Turn on a receiver for a site

To let a site receive email or SMS alarms, go to Sites and open the site.

  1. Open the Integrations tab and the Email Receiver or SMS Receiver sub-tab.
  2. Click Enable Virtual Email Receiver or Enable Virtual SMS Receiver.

The receiver card shows Enabled and the address or number to send to. It starts with Authenticate with Token, and the site's token is ready. Each site can have one email receiver and one SMS receiver.

Send alarms with a token

To use the token, go to the site's Email Receiver or SMS Receiver sub-tab and select Authenticate with Token.

  1. Copy the token next to Authentication Token.
  2. Set up the sender so that each message contains a line token followed by the token, and a line code followed by the alarm code.
  3. Add other lines as needed, one value per line: the keyword, a space, the value.

The card shows an example. For an email, the subject can be anything.

token 4f8a2c...
code 130
zone 001
technical false
header.geolocation 46.9480° N, 7.4474° E
Keyword Sets
code The alarm code. Without it, the alarm gets the code EMAIL ALARM or SMS ALARM.
zone, zonename The zone and its name
partition, partitionname The partition and its name
value false makes the alarm a restore
msg The alarm message
payload The payload
technical, testmessage true marks a technical alarm or a test message
header.<name> An alarm header with that name

The order of the lines doesn't matter. Files attached to an email appear as attachments of the alarm and are kept for 30 days.

To replace the token, click Generate New Token and confirm. The old token stops working at once, so update the sender too.

Accept messages from a sender

To accept messages from a fixed sender, go to the site's Email Receiver or SMS Receiver sub-tab.

  1. Select Authenticate with Sender Email or Authenticate with Phone Number.
  2. Enter the Sender Email Address, or the Sender Phone Number with the country code, for example +41 79 123 45 67. For SMS, click the add button to add more numbers.
  3. Add text mappings if you need them (see the next topic).
  4. Click Save Configuration.

A message from that sender that matches no mapping becomes an alarm with the code EMAIL ALARM or SMS ALARM. Its text is in the alarm's payload.

Turn message text into alarm codes with text mappings

Text mappings decide which alarm a sender's message creates, based on words in it.

  1. Under Email Text Mappings or SMS Text Mappings, click Add Text Mapping.
  2. For email, fill in When subject contains, When text contains or both. For SMS, fill in When the SMS contains. Enter plain text or a regular expression. Case doesn't matter.
  3. In Mapped Email Text or Mapped SMS Text, enter the alarm values, one per line, with the same keywords as in a token message, for example code 110 and zone 001.
  4. Click Save Configuration.

evalink talos checks the mappings from top to bottom and uses the first one that matches. For email, if you fill in both fields, the subject and the text must both match. The original message is kept as the alarm's payload. The mapped text can also use {{ text }} (and {{ subject }} for email) to insert the message; see Text templates.

To remove a mapping, click its delete button, then Save Configuration.

Edit, turn off or delete a site's receiver

To manage the receiver, go to the site's Email Receiver or SMS Receiver sub-tab.

  • Click Edit to choose an Alarm Definition for the receiver's codes. Leave Default to use the site's normal one. See Alarm definitions.
  • Click Disable Receiver to stop alarms for this site but keep the settings. Messages that arrive meanwhile are ignored. Click Enable Receiver to start again.
  • Click Delete Receiver, type delete and click Confirm Delete. The settings are removed, and a new receiver gets a new token.

To stop email or SMS alarms for all sites, disable the integration on its card instead. See Turn an integration off or on.

Changing the company connection needs the permission to change integrations (Administrator). The site side needs the permission to change integration resources (Administrator and Manager).