The main email servers are SMTP for sending emails, IMAP and POP3 for receiving emails, and each uses specific network ports such as SMTP (25, 465, 587), IMAP (143, 993), and POP3 (110, 995). These servers and ports work together to ensure emails are transmitted securely and reliably between senders and recipients across the internet.
Now let’s fully understand how each email server works, why different ports exist, and which ones you should actually use in real-world setups.
What Is an Email Server?
An email server is a system that handles sending, receiving, and storing email messages. When you send an email, it doesn’t go directly to someone’s inbox—it travels through multiple email servers using standardized protocols.
Each protocol has:
- A specific role
- A specific port number
- Optional encryption (SSL/TLS)
Understanding this is critical for:
- Email hosting
- SMTP setup
- Email marketing
- Troubleshooting email delivery issues
What Are the Main Email Servers and Which Are Their Ports? Step-by-Step Guide
1. SMTP Server (Outgoing Mail Server)
What Is SMTP?
SMTP (Simple Mail Transfer Protocol) is responsible for sending outgoing emails from your device or server to the recipient’s mail server.
Every email you send—whether from Gmail, Outlook, or your own server—uses SMTP.
Common SMTP Ports
| Port | Encryption | Usage |
|---|---|---|
| 25 | None / STARTTLS | Server-to-server mail transfer |
| 587 | STARTTLS | Recommended for email clients |
| 465 | SSL/TLS | Secure SMTP (legacy but still used) |
Which SMTP Port Should You Use?
- Port 587 → Best choice for authenticated email sending
- Port 465 → Secure SSL option, widely supported
- Port 25 → Mostly blocked by ISPs and VPS providers
Port 25 is commonly abused by spammers, so many networks block it by default.
2. IMAP Server (Incoming Mail Server)
What Is IMAP?
IMAP (Internet Message Access Protocol) permits you to read emails directly from the server. Emails remain on the server, making IMAP ideal for multiple devices.
If you check email on your phone, laptop, and tablet—IMAP is what keeps everything in sync.
IMAP Ports
| Port | Encryption |
|---|---|
| 143 | No encryption / STARTTLS |
| 993 | SSL/TLS (Secure) |
Recommended IMAP Port
Port 993 (SSL/TLS)
This is the modern, secure standard and should always be used.
3. POP3 Server (Incoming Mail Server)
What Is POP3?
POP3-(Post Office Protocol version 3) downloads emails to your device and often removes them from the server.
POP3-is simple and lightweight, but outdated for most users today.
POP3 Ports
| Port | Encryption |
|---|---|
| 110 | No encryption |
| 995 | SSL/TLS (Secure) |
When to Use POP3?
POP3 may still be useful when:
- You only use one device
- You want offline-only email storage
- Server storage is limited
For most modern setups, IMAP is preferred.
4. Submission Server (SMTP AUTH)
Many people confuse SMTP with submission servers.
A submission server is a secure SMTP service that requires authentication before sending emails.
Submission Ports
| Port | Purpose |
|---|---|
| 587 | SMTP submission with authentication |
| 465 | Secure SMTP submission (SSL) |
Email providers like Gmail, Outlook, and custom mail servers strongly recommend submission ports instead of port 25.
5. Webmail Servers (HTTP / HTTPS)
Webmail servers allow you to access email through a browser instead of an email client.
Examples:
- Roundcube
- RainLoop
- Horde
- Gmail Web Interface
Webmail Ports
| Port | Protocol |
|---|---|
| 80 | HTTP |
| 443 | HTTPS (Secure) |
Webmail does not replace SMTP/IMAP—it simply connects to them behind the scenes.
6. Common Email Server Software and Their Roles
SMTP Server Software
- Postfix
- Exim
- Sendmail
- Microsoft Exchange
- OpenSMTPD
IMAP / POP3 Server Software
- Dovecot
- Courier
- Cyrus IMAP
Each of these servers uses the same standard ports listed above.
7. Secure vs Non-Secure Email Ports
Non-Secure Ports (Not Recommended)
- SMTP: 25
- IMAP: 143
- POP3: 110
Secure Ports (Recommended)
- SMTP SSL: 465
- SMTP TLS: 587
- IMAP SSL: 993
- POP3 SSL: 995
Modern email servers require encryption, especially to avoid:
- Password theft
- Man-in-the-middle attacks
- Spam filtering penalties
8. Why Email Ports Matter for Deliverability
Incorrect ports can cause:
- Emails not sending
- Authentication failures
- Spam filtering
- Connection timeouts
Using the correct ports helps:
- Improve inbox placement
- Avoid ISP blocks
- Ensure compatibility with email clients
For example:
- Gmail rejects unencrypted SMTP connections
- Many VPS providers block port 25 by default
9. Quick Email Server & Port Cheat Sheet
| Function | Protocol | Secure Port |
|---|---|---|
| Send email | SMTP | 587 / 465 |
| Receive email | IMAP | 993 |
| Receive email | POP3 | 995 |
| Webmail | HTTPS | 443 |
10. Best Practice Email Port Configuration
If you are setting up your own mail server, use this configuration:
- SMTP submission → 587 (STARTTLS)
- SMTP SSL → 465
- IMAP → 993
- POP3 → 995
- Disable plaintext logins
- Enforce TLS encryption
This setup ensures:
- Maximum security
- Best compatibility
- Higher email deliverability
Final Thoughts
Email servers rely on standardized protocols and ports to function correctly. SMTP handles sending, IMAP and POP3 handle receiving, and secure ports ensure encrypted communication. Understanding which email server uses which port is essential for configuring mail clients, hosting servers, and troubleshooting email issues.
Whether you are running a personal mail server, a business email system, or an email marketing platform, choosing the right email servers and ports is the foundation of reliable email communication.



