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
-
Open web interface of the router using a browser: 192.168.1.1 [1]
-
In the Events → E-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]
-
-
Click on Save settings.
-
In the Netfilter → IP 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
-
-
Click on Save settings.
-
In the Netfilter → IP 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
-
-
Click on Save settings.
-
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!).
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. |
-
Open web interface of the router using a browser:
-
User name: insys (default)
-
Password: icom (default)
-
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.
-
Click on Import profile.
-
Click on the Apply ASCII configuration icon behind the ASCII configuration file under ASCII configurations (). [7]
-
Change to the Events → E-mail account menu to see the entries made.
Functional test
-
Change to the Help → Debugging menu and got to Start action manually.
-
Select Send e-mail under Action and generate a test e-mail by entering a Recipient, Subject and Text.
-
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 Netfilter → IP filter menu temporarily to find out if wrong filter settings prevent to send e-mails.
-
Go to the Status → Log 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 Help → Debugging 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