Tutorial: Setting up Email Notifications
Setting up DNS and Gateway
Sending email notifications often fails due to a faulty network configuration. Querx requires an IP-address for a standard gateway and a DNS server. Therefore, you should initially check the current network configuration.
The network is usually configured automatically via DHCP.
Many users prefer to assign static IP-addresses to network sensors. Although this can be configured, not all firmware versions are able to obtain the DNS server’s IP-address automatically. Therefore it is safer to enter the DNS server manually when configuring the network manually.
Changes to the network configuration are only applied when Querx is rebooted.
Checking the Network Configuration
Although the network sensors can check the email configuration autonomously, the possible faults are diverse. Therefore, it is advisable to initially test the network configuration by querying date and time. A faulty network configuration can only be ruled out as the reason for emails failing to be delivered, only when the sensor can be synchronized with an NTP server.
Configuring and Checking the Email Account
Querx requires SMTP access to a mail server, in order to send email notifications. Querx does not encrypt the saved access data. Therefore, it is advisable not to use your usual email account. One possibility is to use a free email account, as offered by Google and other providers. Once you have entered your access data, click the button Test. The button should turn green within a few seconds. This indicate that Querx can principally log into the mail server. In case anything does not work, he only remaining option is to debug via Syslog, as described in an earlier tutorial.
By the way, the SMTP server’s length was limited to 31 characters in earlier firmware versions. This was extended to 63 characters with version 4.2.12.
Configuring and Checking the Email Recipients
The final step is to configure the email recipient. When you click the button Test, the device will attempt to send a notification to the recipient. The button should turn green within a few seconds and the recipient should receive an email.
If this step fails, debugging via Syslog is also advisable.