Time-dependent actions allow to execute certain functions regularly at a certain time. This is necessary for example to achieve a daily synchronisation of the system time in the router (will be configured by the startup wizard) or an automated update of the firmware in the router.

Situation

A daily e-mail for confirming the readiness for operation of the router (alive message) is to be sent in this example.

cg alive mail

Solution

The following elements are required to configure this function:

  • Timer (that triggers the event)

  • Event (that sends the message if triggered)

  • E-mail message

    • E-mail account (for sending the message)

    • Contact (recipient of the message)

  • Netfilter rule (to permit e-mail dispatch in case netfilters are enabled)

A timer will be started that triggers an event when it expires or reaches a certain time. The event will then trigger an action, in this case the dispatch of the message.

It is prerequisite that you have access to the web interface of the router and the router has Internet access. It is recommended to commission the router as suggested in the Quick Installation Guide for this. It is also prerequisite that an e-mail account with a provider exists and the access data are known.

  1. Open web interface of the router using a browser:

    • 192.168.1.1

    • User name: insys (default)

    • Password: icom (default)

  2. In the EventsE-mail account menu, configure the e-mail account for dispatching the e-mail: [1]

    • E-mail address of sender: E-mail address as registered with the provider

    • Real name: INSYS Router [2]

    • SMTP server: The domain name or IP address of the SMTP server

    • SMTP port: The SMTP port, which is used for accepting e-mails [3]

    • User name: User name for logging in the router to the SMTP server for e-mail dispatch

    • Password: Password for authentication

    • Encryption: The following options are available for this

      • none: The connection to the e-mail server will not be encrypted

      • STARTTLS: The connection will be established unencrypted, encryption will be negotiated upon connection establishment

      • SSL: The connection will always be encrypted using SSL/TLS

  3. Click on Save settings.

  4. In the EventsContacts menu, add a new contact for e-mail dispatch ().

  5. Edit the just added contact ():

    • Real name: Serves for a clear differentiation of the contacts

    • E-mail address: E-mail address to which the messages are to be sent

  6. Click on Save settings.

  7. In the EventsMessages menu, add a new message for dispatch ().

  8. Edit the just added message ():

    • Description: Alive message

    • Type: E-mail

    • Recipient: Above added contact

    • Subject: Subject of the alive e-mail

    • Text: Text of the alive e-mail

    • Attachments: Optional log files can be attached to the e-mail

  9. Click on Save settings.

  10. In the EventsTimer menu, add a new timer for triggering the dispatch ().

  11. Edit the just added timer ():

    • Description: Alive message timer

    • Type: Select Fix set time and enter time

    • Repetition: daily

  12. Click on Save settings.

  13. In the EventsEvents menu, add a new event for dispatching the e-mail ().

  14. Edit the just added event ():

    • Description: Dispatching alive message

    • Event: Timer expired

    • Timer: Above added timer

    • Action: Send message

    • Send message: Above added message

  15. Click on Save settings.

  16. In the NetfilterIP filter menu, add a new IP filter rule for the connection to the SMTP server ().

  17. Edit the just added rule (): [4]

    • Description: SMTP dispatch

    • Packet direction: OUTPUT

    • Protocol: TCP

    • Output interface: lte2 [5]

    • Destination port: SMTP port configured in the e-mail account settings above

  18. Click on Save settings.

  19. Activate profile by clicking the blinking gear in the title bar ().

The alive e-mail will be dispatched with the next occurrence of the configured time.

Troubleshooting

  • If no mail is received when expected, check whether the following settings are correct.

    • System time in router

    • Timer setting

    • E-mail address of recipient

    • E-mail account settings

  • It facilitates troubleshooting to have a look at the Modem, Netfilter and Events logs in the StatusLog view menu.

  • Message dispatch can also be triggered manually without having to wait for the expiry of the timer for troubleshooting in the HelpDebugging menu.

  • If e-mail dispatch works after disabling the netfilters on the NetfilterIP filter menu, a faulty net filter setting is the reason.


1. Access data can be obtained from the e-mail provider or network administrator of the company.
2. The real name will be displayed in the e-mail program of the recipient as sender
3. Usually port 25 or 587. Port 465 is often used when using TLS/SSL.
4. This rule permits the router the outgoing TCP connection to the SMTP server of the e-mail provider.
5. It is assumed in this example that the WAN connection takes place via the LTE modem in slot 2. If the WAN connection takes place via a different interface, this must be selected here (e.g. net3 - WAN or lte3).