HiBlog Networking and Protocols
IMAP vs POP3 vs SMTP: How Email Is Sent and Received
- Ali GhanimatiAuthor
- Last updated
- 6 minutesReading time
- 488Views
- Ali Ghanimati
- Last updated:
- 6 min read
- 488 views
You’re adding your domain email to Outlook or your phone for the first time, and the app asks: IMAP or POP3? What’s the incoming server, which one is the outgoing SMTP server, port 993 or 995? One wrong choice can delete your emails from the server or stop sending altogether.
In this article we explain in plain words what SMTP, IMAP and POP3 each do, how they differ, which port belongs to which and which one is best for you.
Short answer: SMTP is the protocol for sending email, and IMAP and POP3 are protocols for receiving it. IMAP keeps your emails on the server and syncs them across all your devices; POP3 downloads them to one device and usually deletes them from the server. If you read email on both your phone and your computer, choose IMAP, and for sending, set SMTP to port 465 or 587.
How does an email get from sender to recipient?
- The sender’s email app connects to its own mail server with SMTP and hands over the email.
- The sender’s server looks up the MX record of the recipient’s domain to find the right server and sends the email there, again with SMTP.
- The email lands in the recipient’s mailbox on the server, and the recipient reads it with IMAP or POP3.
All three protocols run over TCP and belong to the application layer of the TCP/IP model.
What is the SMTP protocol?

SMTP (Simple Mail Transfer Protocol) is the protocol for sending email: your email app uses it to hand an email to the server, and servers use it to pass emails to each other. An SMTP conversation runs on a few simple commands: EHLO to introduce itself, MAIL FROM for the sender, RCPT TO for the recipient and DATA for the message. The server answers with numeric codes; for example, 250 means “done” and 354 means “send the message text”.
- Error reports: if an email isn’t delivered, the server gives the reason with an error code and you get a bounce message.
- Retries: if the recipient’s server is temporarily unavailable, the sender’s server tries again several times.
- Encryption is separate: SMTP has no encryption of its own and is secured with TLS; that’s why you pick port 465 (SSL/TLS) or 587 (STARTTLS) in your email app.
- Port 25 is for servers: it’s used for mail exchange between servers, and many networks and services block it for ordinary users.
- Sending limits: hosts cap outgoing email to fight spam; on HiData’s hosting the cap is 100 emails an hour and 1,000 a day.
If you run a WordPress site, it’s best to send your site’s emails over SMTP too so they don’t end up in spam; we show how in How to Set Up WP Mail SMTP.
What is the IMAP protocol?

IMAP (Internet Message Access Protocol) keeps your emails on the server, and your email app only shows you a view of the mailbox. Every change, such as reading, deleting or moving an email to a folder, is saved on the server, so your phone, laptop and webmail all see the same thing. The app first fetches the headers (sender, subject and date) and downloads the full message and attachments when you open it. The most widely used version today is IMAP4rev1, and the newer IMAP4rev2 was published in 2021 as RFC 9051.
- Pros: access from several devices at once, emails stay safe if your phone or laptop breaks, and you can search the whole mailbox.
- Cons: every email takes up mailbox space on the server, and without internet you only have the emails the app has already kept on the device.
What is the POP3 protocol?

POP3 (Post Office Protocol version 3) is the simplest way to receive email: the app connects to the server, logs in, downloads new emails and, by default, deletes them from the server. Most apps have an option such as “Leave a copy on the server” to keep a copy there, but read status and folders don’t sync between devices.
- Pros: emails are available offline, attachments are already downloaded and little server space is used.
- Cons: if the device breaks and you have no backup, the emails are gone, and moving the archive to another device is a hassle.
IMAP vs POP3 vs SMTP at a glance
| SMTP | IMAP | POP3 | |
|---|---|---|---|
| Main job | Sending email | Receiving and managing email | Receiving email |
| Where emails are kept | – | On the server | On the device |
| Sync between devices | – | Yes | No |
| Port with SSL/TLS | 465 | 993 | 995 |
| Port without encryption or with STARTTLS | 587 (and 25 between servers) | 143 | 110 |
Email ports on cPanel hosting
In cPanel, you see each email account’s connection details under Email Accounts with the Connect Devices button. The secure setup cPanel suggests is usually: the full email address as the username, the incoming server mail.yourdomain.com with IMAP on port 993 or POP3 on port 995, and the same address as the outgoing server with SMTP on port 465, with authentication required for sending. We walk through creating an account and adding it to Outlook in How to Create a Domain Email in cPanel.
IMAP or POP3: which one should you choose?
- Choose IMAP if you read email on several devices, several people use one mailbox or you don’t want to lose emails when a device breaks. For most businesses, this is the right choice.
- Choose POP3 if you only use one computer, your internet is unstable or you want your email archive on your own machine and a light mailbox on the server.
FAQ
Is SMTP part of IMAP or POP3?
No. They’re separate protocols; SMTP is for sending, and IMAP or POP3 is for receiving. Your email app usually uses SMTP together with one of the other two.
Are the IMAP and SMTP passwords the same?
On cPanel hosting, yes; for both, the username is the full email address and the password is the email account’s password.
Why did my emails disappear from the server?
One of your devices is probably connected with POP3 and deletes emails from the server after downloading them. Add that account again with IMAP or turn on the option to leave a copy on the server.
Why do the emails I send go to spam?
Most of the time, the domain’s SPF, DKIM and DMARC records aren’t set up correctly. See how in How to Set Up SPF, DKIM and DMARC in cPanel.
Professional email with HiData hosting
On HiData’s cPanel hosting you create email on your own domain, connect it to any app with IMAP, POP3 and SMTP on secure ports, and read it in your browser with Webmail too. Free SSL, daily, weekly and monthly hosting backups and 24/7 ticket support have your back! See the plans on our hosting page.


