SMTP server
- Last UpdatedFeb 14, 2023
- 1 minute read
The interface measures SMTP server response times for points with Location2 set to 4. TCPResponse connects to the SMTP port of the specified machine, for example, a machine specified using DEVICE=mail.somecompany.com in the InstrumentTag of the PI point. The SMTP port is either the default (25) or a user-specified port, by PORT= in the PI point's InstrumentTag. After establishing the connection, the interface waits for the SMTP server to send a message that contains the text 220. In other words, TCPResponse performs a substring search for 220 in the received reply.
Note: RFC 2821 defines a status code of as . You can tell the interface to perform a substring search for another text string by specifying the case-sensitive string by REPLY= in the InstrumentTag. The keyword REPLY itself is not case sensitive.
The response time measured by the interface is the amount of time elapsed from the time of the connection request to the time the interface receives a response message containing 220. If the interface does not receive a message containing 220, it writes the value Bad Input. If the interface does not receive a reply within a user-specified timeout duration, it writes I/O Timeout.