Three mail jobs
Sending, retrieving, and synchronizing are different operations.
SMTP submits and relays messages between mail systems. POP3 retrieves messages, traditionally by downloading them to a client. IMAP keeps the mailbox on the server and synchronizes folders, flags, and message state across clients.
FTP-family protocols expose file operations such as listing, reading, writing, and transferring files. Their security properties depend on which protocol is used and how it is configured.
Build the model
Six protocol choices
SMTP
Submits and relays mail, commonly using TCP 25, 465, or 587 depending on the role and TLS mode.
POP3
Retrieves messages from a mailbox, commonly through TCP 110 or protected POP3S on TCP 995. It is oriented toward client-side retrieval.
IMAP
Maintains a server-side mailbox view, with folders, flags, search, and synchronization; commonly TCP 143 or protected IMAPS on TCP 993.
FTP
Transfers files with a control connection and a separate data connection; classic FTP does not encrypt credentials or content.
FTPS
Uses FTP semantics with TLS protection, while retaining FTP’s control and data channel model.
SFTP
Uses an SSH connection for file operations; it is not FTP with an “S†added.
Follow the paths
One mailbox, three mail operations
SMTP moves messages between systems. POP3 downloads messages to a client, while IMAP keeps the client and the server-side mailbox synchronized. The file-transfer paths remain separate application jobs.
Knowledge check
Test your application protocol model
Answer six questions.