The router allows to send e-mail messages upon various events.

Situation

You need to send e-mails from the router upon the occurrence of certain events. An e-mail account must be configured in the router for this before.

Solution

It is prerequisite that you have access to the web interface of the router.

Configuration via web interface

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

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

    • E-mail address of sender: e-mail address for sending the messages

    • Real name: name that is to be displayed when receiving the e-mail

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

    • SMTP port: SMTP port that is used for accepting e-mails by the SMTP server [3]

    • User name: user name for authentication with the SMTP server

    • Password: password for authentication with the SMTP server

    • Encryption: encryption method for the connection to the SMTP server

    • Verify server certificate:

    • Verify host name of server: [4]

  3. Click on Save settings.

  4. In the NetfilterIP filter menu, add a new filter rule () and edit it (): [5]

    • Description: E-mail dispatch

    • Packet direction: OUTPUT

    • IP version: all

    • Protocol: TCP

    • Output interface: check the WAN interface used, i.e. lte2 and/or net3.

    • Source port: leave empty

    • Destination IP address: leave empty

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

  5. Click on Save settings.

  6. In the NetfilterIP filter menu, add a new filter rule () and edit it (): [6]

    • Description: DNS queries sent by the router

    • Packet direction: OUTPUT

    • IP version: all

    • Protocol: UDP

    • Output interface: check the WAN interface used, i.e. lte2 and/or net3.

    • Source port: leave empty

    • Destination IP address: leave empty

    • Destination port: 53

  7. Click on Save settings.

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

Configuration via ASCII configuration file

It is also possible to add the e-mail account configuration using an ASCII configuration file. We’ve prepared the following ASCII configuration file for this. Copy and paste it to your text editor or download it using the link below. You still need to replace the respective entries with your e-mail account information. The IP filter rules permit e-mail dispatch and DNS requests and must be adjusted to the e-mail account settings as well (port!).

ASCII configuration file
events.email_account.address=router.address@provider.com
events.email_account.real_name=INSYS Smart Device
events.email_account.server=smtp.provider.com
events.email_account.encryption=starttls
events.email_account.verify_peer=0
events.email_account.verify_host=0
events.email_account.port=587
events.email_account.username=user
events.email_account.password=password

netfilter.ip_filter.rule.add
netfilter.ip_filter.rule[last].rule_active=1
netfilter.ip_filter.rule[last].rule_description=E-mail dispatch
netfilter.ip_filter.rule[last].rule_direction=output
netfilter.ip_filter.rule[last].rule_protocol=tcp
netfilter.ip_filter.rule[last].rule_output_if=lte2,net3
netfilter.ip_filter.rule[last].rule_dport=587
netfilter.ip_filter.rule[last].rule_ipversion=all

netfilter.ip_filter.rule.add
netfilter.ip_filter.rule[last].rule_active=1
netfilter.ip_filter.rule[last].rule_description=DNS queries sent by the router
netfilter.ip_filter.rule[last].rule_direction=output
netfilter.ip_filter.rule[last].rule_protocol=udp
netfilter.ip_filter.rule[last].rule_output_if=lte2,net3
netfilter.ip_filter.rule[last].rule_dport=53
netfilter.ip_filter.rule[last].rule_ipversion=all

administration.profiles.activate

The last line in the ASCII configuration file will activate the profile that is amended by this configuration directly upon applying the configuration.

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

    • 192.168.1.1

    • User name: insys (default)

    • Password: icom (default)

  2. In the Administration → _Profiles menu, go to the Import profile or ASCII configuration file section, click on Browse…​ and select the ASCII configuration file that you have created or downloaded above.

  3. Click on Import profile.

  4. Click on the Apply ASCII configuration icon behind the ASCII configuration file under ASCII configurations (text execute). [7]

  5. Change to the EventsE-mail account menu to see the entries made.

Functional test

  1. Change to the HelpDebugging menu and got to Start action manually.

  2. Select Send e-mail under Action and generate a test e-mail by entering a Recipient, Subject and Text.

  3. Click on Start action to dispatch the test e-mail and verify a proper receipt.

Troubleshooting

  • Check spelling of e-mail and SMTP server address (capitalisation is ignored)

  • Make sure to use the correct SMTP port

  • Make sure to use the correct encryption method

  • You may disable the netfilters in the NetfilterIP filter menu temporarily to find out if wrong filter settings prevent to send e-mails.

  • Go to the StatusLog view menu and check the Events log to verify e-mail dispatch.

  • You’ll get more detailed failure messages in the log if you send a pre-defined e-mail message in the HelpDebugging menu. To do this, you must configure an e-mail contact and an e-mail message in the Events menu first.


Back to the Configuration Guides for icom OS Smart Devices

Back to overview


1. Login depending on configuration; default for past firmware versions: User name: insys, Password: icom
2. These data can be obtained from your system administrator or e-mail provider.
3. Usually port 25 or 587. Port 465 is often used when using TLS/SSL.
4. These two verification options are optional and can be used to verify the e-mail server (refer to Inline Help () for more information).
5. This filter rule enables to send e-mails.
6. This filter rule enables DNS resolution in case the SMTP server of the e-mail account is specified in form of a domain name.
7. This will add the e-mail account to your profile.