Guide · Microsoft Outlook · 22/11/2026

Changing Microsoft Outlook email settings to use SSL (2016, 2019, 2021, 365)

Switch an existing Outlook account to current SSL/TLS ports and encryption, by version.

← All support articles

For an account already in Outlook that needs to switch to an SSL/TLS encrypted connection, or to fix ports when mail will not send or receive. Pick your Outlook version below.

Recommended settings

Recommended protocolIMAP (syncs across devices)
Incoming servermail.hainhan.com · port 993 · SSL/TLS
Outgoing server (SMTP)mail.hainhan.com · port 465 (SSL/TLS) or 587 (STARTTLS)
If your provider blocks portsUse port 2525 with STARTTLS
User nameYour full email address
SMTP authenticationOn, with the same user name and password

Pick your version

Microsoft 365 and Outlook 2024

Edit an existing account in classic Outlook.

  1. Open the account settingsChoose File > Info > Account Settings > Account Settings.
  2. Choose the accountSelect the account to edit on the Email tab and click Change.
  3. Check the serversSet the incoming and outgoing servers to mail.hainhan.com, then click More Settings.
  4. Turn on outgoing authenticationOn the Outgoing Server tab, tick the authentication option and use the same settings as the incoming server.
  5. Change ports and encryptionOn the Advanced tab: incoming port 993 (IMAP) or 995 (POP3) with SSL/TLS; outgoing port 465 with SSL/TLS or 587 with STARTTLS (2525 with STARTTLS if blocked).
  6. SaveClick OK, Next, then Close and Finish so Outlook tests and saves the settings.
Outlook 2021

The steps match Microsoft 365.

  1. Open the account settingsChoose File > Info > Account Settings > Account Settings.
  2. Choose the accountSelect the account to edit on the Email tab and click Change.
  3. Check the serversSet the incoming and outgoing servers to mail.hainhan.com, then click More Settings.
  4. Turn on outgoing authenticationOn the Outgoing Server tab, tick the authentication option and use the same settings as the incoming server.
  5. Change ports and encryptionOn the Advanced tab: incoming port 993 (IMAP) or 995 (POP3) with SSL/TLS; outgoing port 465 with SSL/TLS or 587 with STARTTLS (2525 with STARTTLS if blocked).
  6. SaveClick OK, Next, then Close and Finish so Outlook tests and saves the settings.
Outlook 2019

The steps match Outlook 2021.

  1. Open the account settingsChoose File > Info > Account Settings > Account Settings.
  2. Choose the accountSelect the account to edit on the Email tab and click Change.
  3. Check the serversSet the incoming and outgoing servers to mail.hainhan.com, then click More Settings.
  4. Turn on outgoing authenticationOn the Outgoing Server tab, tick the authentication option and use the same settings as the incoming server.
  5. Change ports and encryptionOn the Advanced tab: incoming port 993 (IMAP) or 995 (POP3) with SSL/TLS; outgoing port 465 with SSL/TLS or 587 with STARTTLS (2525 with STARTTLS if blocked).
  6. SaveClick OK, Next, then Close and Finish so Outlook tests and saves the settings.
Outlook 2016

The steps match Outlook 2019.

  1. Open the account settingsChoose File > Info > Account Settings > Account Settings.
  2. Choose the accountSelect the account to edit on the Email tab and click Change.
  3. Check the serversSet the incoming and outgoing servers to mail.hainhan.com, then click More Settings.
  4. Turn on outgoing authenticationOn the Outgoing Server tab, tick the authentication option and use the same settings as the incoming server.
  5. Change ports and encryptionOn the Advanced tab: incoming port 993 (IMAP) or 995 (POP3) with SSL/TLS; outgoing port 465 with SSL/TLS or 587 with STARTTLS (2525 with STARTTLS if blocked).
  6. SaveClick OK, Next, then Close and Finish so Outlook tests and saves the settings.
Outlook 2013

The steps match Outlook 2016.

  1. Open the account settingsChoose File > Info > Account Settings > Account Settings.
  2. Choose the accountSelect the account to edit on the Email tab and click Change.
  3. Check the serversSet the incoming and outgoing servers to mail.hainhan.com, then click More Settings.
  4. Turn on outgoing authenticationOn the Outgoing Server tab, tick the authentication option and use the same settings as the incoming server.
  5. Change ports and encryptionOn the Advanced tab: incoming port 993 (IMAP) or 995 (POP3) with SSL/TLS; outgoing port 465 with SSL/TLS or 587 with STARTTLS (2525 with STARTTLS if blocked).
  6. SaveClick OK, Next, then Close and Finish so Outlook tests and saves the settings.
Outlook 2010 and 2007

Two old versions that differ only in the menu.

  1. Open the account settingsOutlook 2010: File > Info > Account Settings > Account Settings. Outlook 2007: Tools > Account Settings.
  2. Choose the accountSelect the account to edit on the Email tab and click Change.
  3. Check the serversSet the incoming and outgoing servers to mail.hainhan.com, then click More Settings.
  4. Turn on outgoing authenticationOn the Outgoing Server tab, tick the authentication option and use the same settings as the incoming server.
  5. Change ports and encryptionOn the Advanced tab: incoming port 993 (IMAP) or 995 (POP3) with SSL/TLS; outgoing port 465 with SSL/TLS or 587 with STARTTLS (2525 with STARTTLS if blocked).
  6. SaveClick OK, Next, then Close and Finish so Outlook tests and saves the settings.
New Outlook for Windows

In the new Outlook the safest way is to remove the account and add it again with the right settings.

  1. Open the account listClick the gear icon (Settings), then Accounts > Email accounts.
  2. Remove the old accountSelect the account and click Remove (with IMAP the mail on the server is not lost).
  3. Add it againClick Add account and follow the guide “Setting up IMAP and POP3 email in Microsoft Outlook”, section New Outlook for Windows.
Outlook for Mac

Edit the server settings in Outlook on macOS.

  1. Open the accountsChoose Outlook > Settings (or Preferences) > Accounts and select the account.
  2. Edit the serversSet the incoming server to mail.hainhan.com port 993 and the outgoing server to mail.hainhan.com port 465 or 587, and turn on Use SSL to connect.
  3. SaveClose the window to save, then send a test message.
Need more help? Call the hotline 098-155-3073 (24 hours a day, 365 days a year).

← All support articles

Contact Hải Nhân

Call us (24 hours a day, 365 days a year)

098-155-3073
Contact