Learning Python Networking - Second Edition
by José Manuel Ortega, Dr. M. O. Faruque Sarker, Sam Washington
SMTP protocol
SMTP is a set of rules for the transmission of messages from their origin to the destination and is used to transmit email messages to mail servers. SMTP uses port 25 to send or transmit mail messages. Email servers need to have this port open to listen for incoming connections.
In the connection between the client and server, the client sends the first SYN message to the server to start the connection through port 25. The server accepts the connection by sending the SYN_ACK message.
After this exchange of messages, the server sends the client a message with identifier 220, indicating that the server is ready to carry out transactions so that it can proceed and send emails. Subsequently, the client identifies the server message ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access