Guide
IMAP, POP3 and SMTP: what they are and which ports to use
Every mail app uses two kinds of server: one to receive mail (IMAP or POP3) and one to send it (SMTP). Here is what each one does, which ports and encryption to use, and what to do when it doesn’t work.
What IMAP, POP3 and SMTP are
- IMAP (Internet Message Access Protocol) shows the mail that is on your mail server. Your messages and folders stay on the server, so every device sees the same inbox.
- POP3 (Post Office Protocol 3) downloads your mail to one device. Often it then deletes the mail from the server.
- SMTP (Simple Mail Transfer Protocol) sends your mail. Your mail app hands a message to your provider’s SMTP server, which delivers it to the receiver’s mail server.
So you always need two servers: IMAP or POP3 for incoming mail, and SMTP for outgoing mail. An IMAP account is a mailbox you open with IMAP.
IMAP vs POP3: which should you use?
Choose IMAP, unless you have a good reason not to.
- IMAP keeps everything in sync: read a message on your phone and it is read on your laptop too. Folders, sent mail and deleted mail are the same everywhere. A lost phone loses no mail.
- POP3 only suits one device, or a provider that offers no IMAP. Folders, and which mail you have read, don’t sync, and mail that has been downloaded and removed from the server exists only on that one device.
Not every provider offers POP3: iCloud Mail, for example, only works with IMAP.
IMAP, POP3 and SMTP ports
A port is the number of the door on the server that your mail app knocks on. Each port goes with one kind of encryption:
| Protocol | Port | Encryption | What for |
|---|---|---|---|
| IMAP | 993 | SSL/TLS | Receive mail (recommended) |
| IMAP | 143 | STARTTLS | Receive mail |
| POP3 | 995 | SSL/TLS | Download mail |
| POP3 | 110 | STARTTLS | Download mail |
| SMTP | 465 | SSL/TLS | Send mail |
| SMTP | 587 | STARTTLS | Send mail |
| SMTP | 25 | STARTTLS | Between mail servers, not for mail apps |
For sending, 465 and 587 are both fine: use the one your provider names. Port 25 is for mail servers delivering to each other. Many internet providers block it for home connections, so a mail app should not use it.
SSL/TLS or STARTTLS
Both protect your password and your mail on the way. They only start differently:
- SSL/TLS (ports 993, 995 and 465) is encrypted from the very first moment.
- STARTTLS (ports 143, 110 and 587) starts a normal connection and switches to encryption before your password is sent.
Pick the encryption that goes with the port. Never choose “none”: then your password travels as plain text that anyone on the same network can read.
Server settings of common providers
When you add a mailbox in SiteBirdy, you only type your address and password: SiteBirdy fills in the servers, ports and encryption for you. For these providers it uses these settings:
| Provider | IMAP (receive) | SMTP (send) | Password |
|---|---|---|---|
| Site | mail.site.eu · 993 · SSL/TLS | mail.site.eu · 587 · STARTTLS | The mailbox’s own password |
| Gmail | imap.gmail.com · 993 · SSL/TLS | smtp.gmail.com · 465 · SSL/TLS | App password |
| iCloud | imap.mail.me.com · 993 · SSL/TLS | smtp.mail.me.com · 587 · STARTTLS | App password |
| Yahoo | imap.mail.yahoo.com · 993 · SSL/TLS | smtp.mail.yahoo.com · 465 · SSL/TLS | App password |
| Fastmail | imap.fastmail.com · 993 · SSL/TLS | smtp.fastmail.com · 465 · SSL/TLS | App password |
The user name is your whole email address. Gmail, iCloud, Yahoo and Fastmail want an app password in other mail apps: a separate password you make in your account’s security settings. For Gmail, SiteBirdy shows you how to make one.
Outlook.com, Hotmail and Microsoft 365 don’t accept passwords from other mail apps. In SiteBirdy you sign in with Microsoft instead, and SiteBirdy never sees your password.
Another provider? SiteBirdy looks up its settings and shows the mail server it found. If that isn’t right, choose Change and fill in what your provider’s help pages say.
What is the IMAP path prefix?
Some mail apps, such as Mail on the iPhone and Outlook, have a field called IMAP path prefix or root folder path. It tells the app where your folders start on the server.
- Leave it empty, unless your provider says otherwise.
- Do your folders show up inside your Inbox? Then fill in INBOX (in capitals). Some servers keep all folders under the Inbox.
SiteBirdy asks the server itself where the folders start, so it has no such field.
Common errors and how to fix them
Wrong password or “authentication failed”
- Use the password of the mailbox itself, not the one of your account at your web host.
- Gmail, iCloud, Yahoo and Fastmail need an app password in other mail apps.
- Use your whole email address as the user name.
Server not found
Check the server name for typos. Your provider’s help pages name its IMAP and SMTP servers; they often look like imap.example.com or mail.example.com.
No connection or a time-out
- Check that the port and the encryption go together: 993 with SSL/TLS, 143 with STARTTLS, 465 with SSL/TLS, 587 with STARTTLS.
- Some networks, like hotel or office Wi-Fi, block mail ports. In SiteBirdy that doesn’t matter: SiteBirdy’s server connects to your mail server, not your phone or computer.
Certificate error
The certificate is made out to the server’s own name. Use the exact name your provider gives, like imap.gmail.com, not a name of your own domain that points to it.
Receiving works, sending doesn’t
The SMTP server needs your sign-in too, usually the same user name and password as IMAP. Check its port and encryption: 465 with SSL/TLS or 587 with STARTTLS.
Questions and answers
What is an IMAP account?
A mailbox you open with IMAP. Your mail and folders stay on your provider’s mail server, so your phone, your computer and SiteBirdy all show the same inbox. Almost every mailbox works as an IMAP account.
What is SMTP and what does an SMTP server do?
SMTP is the protocol for sending mail. Your mail app hands each message to your provider’s SMTP server, like smtp.gmail.com, which delivers it to the receiver’s mail server. You sign in to it with the same user name and password as for IMAP.
POP3 vs IMAP: what's the difference?
IMAP keeps your mail on the server and in sync on every device. POP3 downloads mail to one device and often removes it from the server, so folders and read mail don’t sync. Choose IMAP, unless your provider offers nothing else.
Which SMTP port should I use, 465 or 587?
Port 465 with SSL/TLS or port 587 with STARTTLS. Both are safe; use the one your provider names. Port 25 is for traffic between mail servers, not for mail apps.
What is the IMAP port?
Port 993 with SSL/TLS. Port 143 with STARTTLS also works if your provider offers it.
SSL/TLS vs STARTTLS: what's the difference?
Both encrypt your password and your mail. SSL/TLS (ports 993, 995 and 465) is encrypted from the very first moment. STARTTLS (ports 143, 110 and 587) starts a normal connection and switches to encryption before your password is sent. Use the one that goes with the port, and never “none”.