Communications services
3.6 Secure Communication
Communication
Function Manual, 05/2021, A5E03735815-AJ
89
Process for establishing a secure connection to the mail server
You can choose between two processes for establishing the secure connection to the mail
server:
•
SMTPS: The client attempts to immediately establish a TLS connection to the mail server
("handshake" process). If the mail server does not support TLS, then no connection is
established.
•
STARTTLS: Client establishes a TCP connection to the mail server. The client sends a
request to "upgrade" the existing connection to a secure TLC connection over the TCP
connection. If the mail server supports TLS, the client sends the command to establish a
secure connection. The mail server uses the SMTP command "STARTTLS" to do this. The
client then establishes a secure connection to the mail server. Advantage: If the mail
server does not support TLS, client and mail server can communicate unsecured with each
other.
You use the "Remote Port" setting in the data types at the block parameter
"MAIL_ADDR_PARAM" to define which process is used for the communication.
Table 3- 6
Port numbers for the SMTPS and STARTTLS processes
Process
Port
SMTPS:
465
1
STARTTLS
Any (≠465)
2
1
The instruction TMAIL_C uses SMTPS only for Port 465. For all other ports STARTTLS is used.
2
According to RFC, mail servers use Ports 25 and 587 for secure connections with STARTTLS. The use
of other port numbers for SMTP is not RFC-compliant, successful communication with such a mail
server is not guaranteed.
Example: Setting up a secure connection to a mail server over IPv4
The following section describes how to set up a secure connection to an IPv4 mail server with
the TMAIL_C communication instruction.
Summary of Contents for SIMATIC ET 200AL
Page 2: ......
Page 143: ......
Page 218: ......
Page 250: ......
Page 296: ......
Page 337: ......
Page 365: ......
Page 392: ......
Page 419: ......
Page 451: ......
Page 483: ......
Page 597: ......
Page 648: ......
Page 702: ......
Page 739: ......
Page 781: ......
Page 804: ......
Page 828: ......
Page 853: ......
Page 880: ......
Page 906: ......
Page 996: ...Diagnostics ...
Page 1121: ......
Page 1565: ......