Email client settings: IMAP, POP3, and SMTP
Protocols and ports
-
IMAP
- Port
- 993 with SSL/TLS, or 143 with STARTTLS
- Encryption
- SSL/TLS on port 993 (recommended), or STARTTLS on port 143
- Use
- Receiving email with full sync across all devices
- Note
- Supported by all popular email apps and clients
IMAP is a protocol for receiving email in which messages and folders are stored on the server, and the email client displays them and syncs their status. It is the recommended setting in most cases, especially when you read email on both a computer and a phone. Use port 993 with SSL/TLS.
-
POP3
- Port
- 995 with SSL/TLS, or 110 with STARTTLS
- Encryption
- SSL/TLS on port 995 (recommended), or STARTTLS on port 110
- Use
- Downloading email to a single device
- Note
- Accesses the inbox only, without the other folders on the server
POP3 is an older protocol for receiving email that downloads messages from the server to the device. Depending on the client settings, messages are deleted from the server after they are downloaded or after a set period, or they stay there as a copy. It is best suited to people who read email on one computer only.
-
SMTP on port 587 (Submission)
- Port
- 587
- Encryption
- STARTTLS
- Use
- Sending email from email apps and clients
- Note
- Authentication with a username and password is required
SMTP is the protocol for sending email. Port 587 is intended for sending from email clients: the connection opens without encryption and switches to encryption with STARTTLS before the username and password are sent. It is the common setting for the outgoing mail server, and most email providers support it.
-
SMTPS on port 465
- Port
- 465
- Encryption
- SSL/TLS, the connection is encrypted from the start (Implicit TLS)
- Use
- Sending email from email apps and clients
- Note
- A common alternative to port 587, supported by most providers
On port 465, the connection is encrypted from the very start, with no step that switches to encryption. The port is widely supported, and the standard now defines it as an official port for sending email from clients, alongside port 587. Many providers support both, and you can choose either one based on the settings your provider publishes. In email clients, it usually appears under the SSL/TLS option.
-
SMTP on port 25
- Port
- 25
- Encryption
- STARTTLS when both servers support it
- Use
- Relaying email between mail servers
- Note
- Many internet providers block outgoing port 25 on home connections
Port 25 is the original SMTP port, and mail servers use it to relay messages to each other across the internet. It is not intended for sending from email clients, and many internet providers block it for outgoing traffic to reduce spam sent from infected computers. When sending from your email client fails and the configured port is 25, switch to port 587 or 465.
-
SSL/TLS or STARTTLS
- Port
- SSL/TLS: 993, 995, 465. STARTTLS: 143, 110, 587
- Encryption
- Both methods encrypt the connection when they are set up correctly
- Use
- Choosing the encryption type in the account settings
- Note
- The encryption type must match the selected port
With SSL/TLS, also called Implicit TLS, the connection is encrypted from the first moment on a dedicated port. With STARTTLS, the connection opens on the standard port, and the client asks the server to switch to encryption before the login details are sent. A wrong combination, such as SSL/TLS on port 587 or STARTTLS on port 465, usually causes the connection to fail. The name SSL remains for historical reasons, and today encryption is done with the TLS protocol. When both methods are available, prefer SSL/TLS.
-
Authentication: username, password, and OAuth2
- Encryption
- On an encrypted connection, login details are sent only after encryption is active
- Use
- Logging in to the incoming and outgoing mail servers
- Note
- The username is usually the full email address, for example user@example.com
With most services, the username is the full email address, not just the part before the @ sign, and the password is the mailbox password. The outgoing server usually requires authentication with the same details, and in many email clients you need to check the option in the account settings that says the outgoing server requires authentication. Large providers, such as Gmail and Microsoft 365, usually require OAuth2 login through the provider's sign-in window. Some of them let you use an app password instead when two-step verification is turned on.
-
Unencrypted connection
Not recommended- Port
- 143 or 110 without STARTTLS
- Encryption
- None
- Use
- Not recommended for any email client
- Note
- The password and message content travel over the network as plain text
Email clients sometimes show the "None" option in the encryption field. On such a connection, the username, password, and message content travel over the network without protection, and anyone with access to the traffic, for example on a public Wi-Fi network, may be able to read them. Many providers do not allow unencrypted connections. Always choose SSL/TLS or STARTTLS.
IMAP or POP3
-
IMAP: sync across devices
- Use
- Suited to people who read email on several devices, or to a mailbox shared by several people
- Note
- Messages take up space in the mailbox on the server
- Where messages are stored
- On the server, and messages appear on every device connected to the mailbox
- Sync across devices
- Full: folders, sent messages, drafts, and read status
With IMAP, the server holds the main copy of the mailbox, and every device shows the same state. Deleting a message on your phone also deletes it on your computer, and a message sent from your computer also appears in the Sent folder on your phone. Most email clients also keep a local copy of messages, for fast performance and access to messages that have already loaded even without an internet connection.
-
POP3: download to one device
- Use
- Suited to people who read email on one computer only
- Note
- Back up your messages regularly, as they are stored on the device
- Where messages are stored
- On the device that downloaded the messages, and on the server only if leaving a copy is turned on
- Sync across devices
- None: each device downloads the messages separately
With POP3, the email client downloads new messages from the server and stores them on the device. Folders created in the client, sent messages, and read status are stored on the device only and do not appear on other devices. When messages are deleted from the server after they are downloaded, a computer failure without a backup may cause them to be lost.
-
Leaving a copy on the server with POP3
- Use
- Suited to cases that need both POP3 on a computer and access to email from another device
- Note
- Copies that stay on the server for a long time fill up the mailbox
- Where messages are stored
- A copy on the device and a copy on the server, for the period set in the settings
- Sync across devices
- Partial: each device downloads the messages on the server, without syncing deletions and folders
POP3 account settings usually include an option to leave a copy of messages on the server, and sometimes also to delete it after a number of days. The default varies between email clients, so check it after setup. This way you can also read messages on another device, but each device manages the messages separately. When you need access from several devices, switch to IMAP, which provides full sync.
-
Storage and mailbox size
- Use
- Planning the mailbox size based on the number of messages and attachments
- Note
- The Deleted Items and Junk folders also count toward the mailbox size
- Where messages are stored
- With IMAP on the server, with POP3 mainly on the device
- Sync across devices
- With IMAP, permanently deleting a message on any device frees up space in the mailbox on the server
With IMAP, all messages, including attachments, are stored on the server and count toward the mailbox size. A deleted message that moved to the Deleted Items folder keeps taking up space until the folder is emptied. Some email clients show the used space and the mailbox quota. With POP3, the space used on the server is usually lower, because messages are stored mainly on the device.
Setup in popular email clients
-
Details you need before setup
- Note
- Your email provider publishes the server names, ports, and encryption type
- Operating systems
- All email apps and clients
- How to set it up
- Prepare the account and server details before you add the account
Before setup, prepare the following details: the full email address, for example user@example.com, and the mailbox password; the account type, IMAP or POP3; the incoming mail server name, for example mail.example.com, with the port and encryption type; the outgoing mail server (SMTP) name with the port and encryption type; and whether the outgoing server requires authentication.
-
Outlook for desktop
- Note
- If automatic setup fails, choose manual setup and enter the server details
- Operating systems
- Windows and macOS
- How to set it up
- Automatic setup, or manual IMAP or POP3 setup
When you add a new account, you enter your email address, and Outlook tries to find the settings automatically. If the settings are not found, or you need a specific account type, you usually choose the advanced options and manual setup, and then the IMAP or POP account type. Next, you enter the incoming and outgoing mail servers, the ports, and the encryption type, and then the password. Menu names vary slightly between the Windows and macOS versions.
-
Thunderbird
- Note
- Make sure the detected settings match the details your email provider publishes
- Operating systems
- Windows, macOS, and Linux
- How to set it up
- Automatic detection of the settings, with manual setup when needed
When you add an existing email account, you enter your name, email address, and password, and Thunderbird looks up the settings automatically and shows the result. You can choose between IMAP and POP3, and switch to manual configuration to change the server name, port, encryption type, and authentication method. After the account is saved, outgoing server settings are managed in a separate list in the account settings.
Official website Thunderbird (opens in a new tab) -
Apple Mail on iPhone and Mac
- Note
- On iPhone, the outgoing server port and encryption appear in the account settings, under SMTP
- Operating systems
- iOS, iPadOS, and macOS
- How to set it up
- Add an "Other" account and enter the server details
When you add an email account, you usually choose the "Other" account type and enter your name, email address, and password. If the settings are not found automatically, a screen appears where you choose between IMAP and POP and enter the incoming and outgoing mail servers with the username and password. After saving, you can open the account settings and make sure the ports and SSL are set according to your provider's details.
-
Gmail app on Android
- Note
- You can also manage non-Gmail mailboxes in the app
- Operating systems
- Android
- How to set it up
- Add an "Other" account and choose a personal IMAP or POP3 account
In the Gmail app, you can add another account from the app settings and choose the "Other" account type. After you enter your email address, you usually choose a personal IMAP or POP3 account and enter the password, the incoming mail server, and the outgoing mail server. At each step, you can change the port and security type according to your provider's details. Finally, you can set the sync frequency and the name shown on outgoing messages.
-
Email apps on Windows
- Note
- You can also use other email clients on Windows, such as Thunderbird
- Operating systems
- Windows
- How to set it up
- Add an account in the installed email app and set up IMAP or POP3 manually when needed
The older Mail app that was built into Windows has been replaced by the new Outlook. There too, you add an account in the account settings and enter your email address, and if the settings are not found automatically, you choose the IMAP or POP account type and enter the server details. After setup, send a test message and make sure it arrives.
Troubleshooting common issues
-
You can receive email but not send it
- Symptom
- Incoming messages arrive, but outgoing messages get stuck in the Outbox or return an error
- Common cause
- Authentication for the outgoing server is not turned on, or the configured port is 25 and the internet provider blocks i
- What to check
- That the outgoing server requires authentication, that the port is 587 or 465, and that the encryption type matches the
In most cases, the incoming server settings are correct, and the problem is in the outgoing server settings. Make sure the "Outgoing server requires authentication" option is checked in the account settings, and that the login details are the same as those of the incoming server. If the configured port is 25, switch to port 587 with STARTTLS or to port 465 with SSL/TLS. A firewall or antivirus software on the computer can also block the connection to the outgoing server.
-
Security certificate warning
- Symptom
- The email client warns that the server's security certificate is invalid or does not match
- Common cause
- The server name set in the client differs from the name in the server's certificate
- What to check
- That the incoming and outgoing server names exactly match the names your email provider publishes, and that the date and
A security certificate is issued for a specific server name, and the email client checks that the name set in it matches the name in the certificate. When you enter a different name, for example your business domain instead of the server name your provider gave you, a warning appears even if the connection itself is fine. Enter the exact server name your provider gave you, and do not accept the warning permanently without checking. A wrong date and time on the device can also cause the warning.
-
Wrong password or temporary block
- Symptom
- The client keeps asking for the password, or shows a login error
- Common cause
- The password was changed but not updated on all devices, or the username is not the full email address
- What to check
- That the username is the full address and that the password is updated on all devices and clients
After a password change, every device that still uses the old password keeps trying to log in. Many mail servers temporarily block logins after several failed attempts, so one device with an old password can cause a block on other devices too. Update the password on all your devices, and if the block continues, contact your email provider.
-
Mailbox is full
- Symptom
- Senders get an error message that the mailbox is full, and new messages do not arrive
- Common cause
- The size of messages and attachments on the server has reached the mailbox quota
- What to check
- The mailbox size, the Deleted Items folder, and messages with large attachments
When the mailbox reaches its quota, the server rejects new messages and returns an error message to the sender. With IMAP, delete old messages with large attachments, empty the Deleted Items and Junk folders, or move messages to a local archive. With POP3 and a copy left on the server, set the copies to be deleted from the server after a number of days.
-
Sent messages land in spam
- Symptom
- Messages sent from the domain land in the recipient's spam folder or are rejected
- Common cause
- Missing or incorrect SPF, DKIM, or DMARC records, or content that is detected as spam
- What to check
- The domain's DNS records and the headers of the message the recipient received
Email providers check whether the server that sent a message is authorized to send on behalf of the domain. An SPF record defines the authorized servers, DKIM adds a digital signature to the message, and DMARC sets what to do with a message that fails the checks. When one of these records is missing or incorrect, messages may land in spam. Many links, suspicious attachments, or sending in large volumes also affect filtering.
-
Duplicate messages with POP3
- Symptom
- The same messages appear twice or more in the email client
- Common cause
- The account was set up again or set up twice, and the client downloaded the copies left on the server again
- What to check
- That the account is set up only once, and the setting for leaving a copy on the server
With POP3, the email client remembers which messages it has already downloaded. After you set up the account again, move to a new computer, or set up the same account twice, the client may download all the copies left on the server again. Make sure the account is set up only once, and consider switching to IMAP, where messages are synced with the mailbox on the server and are not downloaded as separate copies.
No matching topics.
Incoming and outgoing servers
Every mailbox works with two servers: an incoming mail server, from which the email client receives messages over IMAP or POP3, and an outgoing mail server, to which it hands messages for sending over SMTP. With most services, both servers have the same name, for example mail.example.com, and the difference is the protocol and the port.
Encryption protects your password and message content on the way between the device and the server. In the account settings, you choose between SSL/TLS and STARTTLS, and each method works on its own ports, as detailed in the cards.
Example of a complete setup
For the mailbox user@example.com set up with IMAP, a typical setup looks like this: incoming mail server mail.example.com on port 993 with SSL/TLS, and outgoing mail server mail.example.com on port 465 with SSL/TLS, or on port 587 with STARTTLS. On both servers, the username is the full address and the password is the mailbox password, and the outgoing server settings are marked as requiring authentication. Actual server names vary between providers, so enter the names your provider publishes.
Common setup mistakes
Entering the server name with a prefix such as https://, with a trailing slash, or with an extra space causes the connection to fail. In the server name field, enter the hostname only, for example mail.example.com.
Changing the sender address in the email client to an address that does not belong to the mailbox may cause the outgoing server to reject the message, or cause SPF and DMARC checks to fail at the recipient. Send from each address through its own mailbox, and set up each mailbox as a separate account in the client.
When you move to a new email provider, the domain's MX record needs to point to the new provider's server. Until the change propagates across DNS servers, some messages may still reach the old server, so do not cancel the old mailboxes right after the move.
Testing after setup
After setup, send a test message to a mailbox with another provider, and reply to it from there. This tests both the outgoing and the incoming server, and in the headers of the received message you can see whether the SPF, DKIM, and DMARC checks passed.
To check the domain settings, you can use the "DNS record lookup", "SPF record checker", and "DMARC record checker" tools, and to check the path a received message took, the "Email header analyzer" tool. An explanation of the email-related records, such as MX and TXT, is available in the "DNS record types" guide.
With our business email service, mailboxes work on your business domain, with access from your computer and phone.
Email client settings FAQ
Which port should I use for sending email (SMTP)?
In most cases, use port 587 with STARTTLS, or port 465 with SSL/TLS. Both ports are intended for sending from email clients and require authentication with a username and password. When your provider supports both, either one works, and it is best to use the combination your provider publishes.
Which is better, IMAP or POP3?
In most cases, IMAP is better, because it keeps messages on the server and syncs them across all your devices. If you read email on both a computer and a phone, IMAP gives you the same organized mailbox everywhere. POP3 is best suited to people who read email on one computer only.
What do I do when my email client does not detect the settings automatically?
Choose manual setup and enter the server details your email provider publishes. You need the incoming and outgoing server names, the ports, the encryption type, and the full email address as the username. Manual setup takes just a few minutes, and after that the mailbox works exactly as it would with automatic setup.
What do I need to do when I replace my computer or phone?
With IMAP, you just set up the account on the new device with the same details, and all your messages and folders appear on it automatically. With POP3, messages are stored on the old device, so you need to back them up and move them to the new device. It is also a good opportunity to switch to IMAP and avoid such a move in the future.
How do I switch from POP3 to IMAP?
Add the mailbox as a new IMAP account, and then move the messages you want from the old account to the folders of the new account. The moved messages are stored on the server and appear on all your devices. After you make sure all the messages have been moved, you can remove the POP3 account from the client.
Why do my messages land in spam?
In most cases, one of the SPF, DKIM, or DMARC authentication records is missing from the domain, or one of them is incorrect. In the headers of a message the recipient received, you can see which check failed and fix the matching DNS record. After the fix, messages are recognized as authorized, and the chance that they reach the main inbox increases.