The Short Answer
IMAP and POP3 are both protocols for reading mail from a mail server. The difference is where the mail lives:
- IMAP: the messages stay on the server. Your mail app shows a synchronized view of the server's mailbox, folders included.
- POP3: the mail app downloads the messages and, unless told otherwise, deletes them from the server. The device then holds the only copy.
Neither one sends mail. Sending always uses SMTP, on the ports described in SMTP ports.
Side by Side
| IMAP | POP3 | |
|---|---|---|
| Mail stored | On the server | On the device |
| Several devices | Same view everywhere | Each gets its own copy |
| Folders | Synchronized | Inbox only |
| Read state | Synchronized | Per device |
| Server storage | Grows with the mailbox | Stays small |
| Offline reading | Cached messages | Everything local |
| Ports | 143, 993 | 110, 995 |
Several Devices
This is where the two differ most. With IMAP, a message you read on a laptop shows as read on your mobile device too, a message you file into a folder is in that folder everywhere, and sent mail can be kept in a shared Sent folder. With POP3, each device downloads its own copy: the first device to check may take the messages away from the others, and nothing you do on one device appears on another.
Most POP3 clients have an option to leave a copy on the server. That helps a second device see new messages, but read state, folders, and deletions still do not follow.
Storage and Backups
With IMAP the mailbox grows on the server until you delete or archive messages, so the mail server needs disk space and a quota. It also means the server is where backups matter. With POP3 the server stays nearly empty, and the backup responsibility moves to each device: a lost laptop can mean lost mail.
Ports and Encryption
| Port | Protocol | Encryption |
|---|---|---|
| 993 | IMAP | TLS from the start |
| 143 | IMAP | STARTTLS |
| 995 | POP3 | TLS from the start |
| 110 | POP3 | STARTTLS |
Use 993 or 995 where you can. On 143 and 110, a client that is not set to require STARTTLS may send the password in plain text. To check that a server answers with TLS:
openssl s_client -connect mail.example.com:993 -quiet
openssl s_client -connect mail.example.com:995 -quiet
An IMAP server greets with a line that starts with * OK, a POP3 server with +OK. See openssl s_client for more checks.
Which One to Choose
- Choose IMAP if you read mail on more than one device, share a mailbox with colleagues, or want the server to keep the master copy.
- Choose POP3 if one device reads the mailbox, server storage is very limited, or you want mail kept only on your own machine.
- Moving from POP3 to IMAP: add the account again as IMAP, then copy the old messages from the local folders into the IMAP folders. They upload to the server and appear on every device.
On Your Own Linux Mail Server
On Linux, Dovecot is the usual program that serves both IMAP and POP3, next to Postfix for SMTP. On Debian and Ubuntu each protocol is a separate package (dovecot-imapd and dovecot-pop3d), so you install only what you offer; on AlmaLinux and Rocky Linux the single dovecot package contains both. Open only the ports you use, typically 993 for reading and 587 for sending, plus incoming 25 for mail from other servers, and make sure your domain's MX record points to the server. Settings for sending from mail apps are in port 587.