The leader in industrial automation and control solutions

Applicable Model(s): MapleLink

Summary

Maple Systems Managed Network Switches support unencrypted and encrypted outbound traffic. Supported SMTP servers are Gmail, Outlook, Yahoo Mail, and Yahoo Mail Plus. Internal SMTP servers for intranet networks are supported. This document describes the process of setting up mail alarms for a MapleLink network switch.

Note: SMTP providers may have restricted third party app or device access.


Solution

List of SMTP servers, and corresponding port numbers:

Default PortsServerAuthenticationPort
SMTP Server (Outgoing Messages)Non-EncryptedAUTH25 (or 587)
Secure (TLS)StartTLS587
Secure (SSL)SSL465
POP3 Server (Incoming Messages)Non-EncryptedAUTH110
Secure (SSL)SSL995
Googlemail – GmailServerAuthenticationPort
SMTP Server (Outgoing Messages)smtp.gmail.comSSL465
smtp.gmail.comStartTLS587
POP3 Server (Incoming Messages)pop.gmail.comSSL995
Outlook.comServerAuthenticationPort
SMTP Server (Outgoing Messages)smtp.live.comStartTLS587
POP3 Server (Incoming Messages)pop3.live.comSSL995
Yahoo MailServerAuthenticationPort
SMTP Server (Outgoing Messages)smtp.mail.yahoo.comSSL465
POP3 Server (Incoming Messages)pop.mail.yahoo.comSSL995
Yahoo Mail PlusServerAuthenticationPort
SMTP Server (Outgoing Messages)plus.smtp.mail.yahoo.comSSL465
POP3 Server (Incoming Messages)plus.pop.mail.yahoo.comSSL995

External SMTP servers:

1.

Create an account with one of the above listed SMTP providers.

2.

Enable two factor authorization on the newly created, or existing account for secure account handling.

3.

Generate an App Password on the newly created, or existing account that has two factor authorization enabled.

4.

Establish a connection to the Managed Network Switch in one of two ways:

a.

b.

Graphical User Interface via Web Browser over HTTP or HTTP/s.

Command Line Interface via Command Prompt, or PuTTY over SSH or Telnet.

5.

Proceed to Web Configuration or CLI Configuration.

Internal SMTP servers:

1.

Download and Install Postfix or hMailServer depending on your computers OS.

2.

Create a Fake/Internal domain, or use an existing domain (DNS resolution is not required).

3.

Configure hMailServer or Postfix to allow traffic from a range of IP addresses..

4.

Enabling Relay:

a.

hMailServer: Enable “Allow Relay” in Settings

5.

Postfix: mynetworks must be configured to trust the switch’s IP/subnet in /etc/postfix/main.cf. As well as smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination.

6.

Proceed to Web Configuration or CLI Configuration.

Web configuration

Mail Alarm Web View

Mail Alarm Settings

ParameterDescription
StateEnable / disable the Mail Alarm function.
ServerSelects one of the options below: IP: The mail server’s IP format is IPv4. Domain Name: The mail server’s IP format is a domain name.
Server PortSpecifies the TCP port for the SMTP.
Account NameSpecifies the mail account name.
Account PasswordSpecifies the mail account password.
Mail FromSpecifies the mail sender.
Mail ToSpecifies the mail receiver.
UTF-8 EncodingEnable / disable the UTF-8 encoding function.
Trap StateEnables / disables the mail trap event states.
ApplyClick Apply to take effect the settings.
RefreshClick Refresh to begin configuring this screen afresh.

CLI configuration

NodeCommandDescription
enableshow mail-alarmThis command displays the Mail Alarm configurations.
enableconfigure terminalThis command changes the node to configure node.
configuremail-alarm (disable|enable)This command disables / enables the Mail Alarm function.
configuremail-alarm auth-accountThis command configures the Mail server authentication account.
configuremail-alarm mail-fromThis command configures the mail sender.
configuremail-alarm mail-toThis command configures the mail receiver.
configuremail-alarm server  (ip|domain-name) STRINGS server-port VALUEThis command configures the mail server IP address / domain name and the TCP port.
configuremail-alarm server  (ip|domain-name) STRINGS server-port defaultThis command configures the mail server IP address / domain name and configures 25 as the server’s TCP port.
configuremail-alarm trap-event (reboot|link-change|config.|firmware|login|port-blocked|alarm) (disable|enable)This command disables / enables mail trap events.
configuremail-alarm utf8-encoding (disable|enable)This command disables / enables the UTF8 encoding for mail content.