{"id":278904,"date":"2026-05-21T11:00:00","date_gmt":"2026-05-21T09:00:00","guid":{"rendered":"https:\/\/www.unipile.com\/?p=278904"},"modified":"2026-05-21T13:02:29","modified_gmt":"2026-05-21T11:02:29","slug":"guia-de-conexion-al-servidor-imap","status":"publish","type":"post","link":"https:\/\/www.unipile.com\/es\/imap-server-connection-guide\/","title":{"rendered":"C\u00f3mo conectarse a un servidor IMAP: Hosts, Puertos, SSL\/TLS y OAuth (Gu\u00eda 2026)"},"content":{"rendered":"\n[et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.27.0&#8243; background_color=&#8221;transparent&#8221; custom_padding=&#8221;0px||0px||false|false&#8221; da_disable_devices=&#8221;off|off|off&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221; da_is_popup=&#8221;off&#8221; da_exit_intent=&#8221;off&#8221; da_has_close=&#8221;on&#8221; da_alt_close=&#8221;off&#8221; da_dark_close=&#8221;off&#8221; da_not_modal=&#8221;on&#8221; da_is_singular=&#8221;off&#8221; da_with_loader=&#8221;off&#8221; da_has_shadow=&#8221;on&#8221;][et_pb_row _builder_version=&#8221;4.27.0&#8243; max_width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.27.0&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_code _builder_version=&#8221;4.27.4&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Inter:wght@400;500;600;700&#038;family=Poppins:wght@700;800&#038;display=swap\" rel=\"stylesheet\"><!-- [et_pb_line_break_holder] --><style><!-- [et_pb_line_break_holder] -->#unipile-toc,<!-- [et_pb_line_break_holder] -->#unipile-toc *,<!-- [et_pb_line_break_holder] -->#unipile-toc *::before,<!-- [et_pb_line_break_holder] -->#unipile-toc *::after {<!-- [et_pb_line_break_holder] -->  margin: 0 !important;<!-- [et_pb_line_break_holder] -->  padding: 0 !important;<!-- [et_pb_line_break_holder] -->  box-sizing: border-box !important;<!-- [et_pb_line_break_holder] -->  border: none !important;<!-- [et_pb_line_break_holder] -->  outline: none !important;<!-- [et_pb_line_break_holder] -->  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;<!-- [et_pb_line_break_holder] -->  line-height: normal !important;<!-- [et_pb_line_break_holder] -->  letter-spacing: normal !important;<!-- [et_pb_line_break_holder] -->  text-transform: none !important;<!-- [et_pb_line_break_holder] -->  text-decoration: none !important;<!-- [et_pb_line_break_holder] -->  list-style: none !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->  float: none !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#unipile-toc {<!-- [et_pb_line_break_holder] -->  all: initial !important;<!-- [et_pb_line_break_holder] -->  display: block !important;<!-- [et_pb_line_break_holder] -->  max-width: 1100px !important;<!-- [et_pb_line_break_holder] -->  margin: 0 auto !important;<!-- [et_pb_line_break_holder] -->  padding: 0 !important;<!-- [et_pb_line_break_holder] -->  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#unipile-toc .utc-card {<!-- [et_pb_line_break_holder] -->  background: #ffffff !important;<!-- [et_pb_line_break_holder] -->  border-radius: 16px !important;<!-- [et_pb_line_break_holder] -->  border: 1px solid #e5e7eb !important;<!-- [et_pb_line_break_holder] -->  padding: 32px !important;<!-- [et_pb_line_break_holder] -->  box-shadow: 0 2px 12px rgba(15, 39, 54, 0.04) !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#unipile-toc .utc-header {<!-- [et_pb_line_break_holder] -->  display: flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  justify-content: space-between !important;<!-- [et_pb_line_break_holder] -->  gap: 12px !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 24px !important;<!-- [et_pb_line_break_holder] -->  padding-bottom: 20px !important;<!-- [et_pb_line_break_holder] -->  border-bottom: 1px solid #e5e7eb !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#unipile-toc .utc-header-left {<!-- [et_pb_line_break_holder] -->  display: flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 12px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#unipile-toc .utc-icon-box {<!-- [et_pb_line_break_holder] -->  width: 36px !important;<!-- [et_pb_line_break_holder] -->  height: 36px !important;<!-- [et_pb_line_break_holder] -->  background: rgba(59, 185, 139, 0.12) !important;<!-- [et_pb_line_break_holder] -->  border-radius: 8px !important;<!-- [et_pb_line_break_holder] -->  display: flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  justify-content: center !important;<!-- [et_pb_line_break_holder] -->  flex-shrink: 0 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#unipile-toc .utc-icon-box svg {<!-- [et_pb_line_break_holder] -->  width: 18px !important;<!-- [et_pb_line_break_holder] -->  height: 18px !important;<!-- [et_pb_line_break_holder] -->  stroke: #3BB98B !important;<!-- [et_pb_line_break_holder] -->  fill: none !important;<!-- [et_pb_line_break_holder] -->  stroke-width: 2.2 !important;<!-- [et_pb_line_break_holder] -->  stroke-linecap: round !important;<!-- [et_pb_line_break_holder] -->  stroke-linejoin: round !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#unipile-toc .utc-title {<!-- [et_pb_line_break_holder] -->  font-family: 'Poppins', sans-serif !important;<!-- [et_pb_line_break_holder] -->  font-size: 15px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  text-transform: uppercase !important;<!-- [et_pb_line_break_holder] -->  letter-spacing: 0.5px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#unipile-toc .utc-toggle {<!-- [et_pb_line_break_holder] -->  display: none !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 6px !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->  cursor: pointer !important;<!-- [et_pb_line_break_holder] -->  font-size: 13px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 600 !important;<!-- [et_pb_line_break_holder] -->  color: #3BB98B !important;<!-- [et_pb_line_break_holder] -->  padding: 6px 10px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 6px !important;<!-- [et_pb_line_break_holder] -->  transition: background 0.2s ease !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#unipile-toc .utc-toggle svg {<!-- [et_pb_line_break_holder] -->  width: 14px !important;<!-- [et_pb_line_break_holder] -->  height: 14px !important;<!-- [et_pb_line_break_holder] -->  stroke: #3BB98B !important;<!-- [et_pb_line_break_holder] -->  fill: none !important;<!-- [et_pb_line_break_holder] -->  stroke-width: 2.5 !important;<!-- [et_pb_line_break_holder] -->  stroke-linecap: round !important;<!-- [et_pb_line_break_holder] -->  stroke-linejoin: round !important;<!-- [et_pb_line_break_holder] -->  transition: transform 0.3s ease !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#unipile-toc.utc-collapsed .utc-toggle svg {<!-- [et_pb_line_break_holder] -->  transform: rotate(-90deg) !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#unipile-toc .utc-grid {<!-- [et_pb_line_break_holder] -->  display: grid !important;<!-- [et_pb_line_break_holder] -->  grid-template-columns: repeat(4, 1fr) !important;<!-- [et_pb_line_break_holder] -->  gap: 0 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#unipile-toc .utc-col {<!-- [et_pb_line_break_holder] -->  padding: 0 24px !important;<!-- [et_pb_line_break_holder] -->  border-left: 1px solid #e5e7eb !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#unipile-toc .utc-col:first-child {<!-- [et_pb_line_break_holder] -->  padding-left: 0 !important;<!-- [et_pb_line_break_holder] -->  border-left: none !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#unipile-toc .utc-col:last-child {<!-- [et_pb_line_break_holder] -->  padding-right: 0 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#unipile-toc .utc-col-label {<!-- [et_pb_line_break_holder] -->  font-size: 11px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  color: #94a3b8 !important;<!-- [et_pb_line_break_holder] -->  text-transform: uppercase !important;<!-- [et_pb_line_break_holder] -->  letter-spacing: 0.8px !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 14px !important;<!-- [et_pb_line_break_holder] -->  display: block !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#unipile-toc .utc-link-list {<!-- [et_pb_line_break_holder] -->  display: flex !important;<!-- [et_pb_line_break_holder] -->  flex-direction: column !important;<!-- [et_pb_line_break_holder] -->  gap: 10px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#unipile-toc .utc-link {<!-- [et_pb_line_break_holder] -->  display: flex !important;<!-- [et_pb_line_break_holder] -->  align-items: flex-start !important;<!-- [et_pb_line_break_holder] -->  gap: 10px !important;<!-- [et_pb_line_break_holder] -->  cursor: pointer !important;<!-- [et_pb_line_break_holder] -->  transition: all 0.2s ease !important;<!-- [et_pb_line_break_holder] -->  text-decoration: none !important;<!-- [et_pb_line_break_holder] -->  padding: 4px 0 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#unipile-toc .utc-num {<!-- [et_pb_line_break_holder] -->  width: 18px !important;<!-- [et_pb_line_break_holder] -->  height: 18px !important;<!-- [et_pb_line_break_holder] -->  flex-shrink: 0 !important;<!-- [et_pb_line_break_holder] -->  background: #f4f5f7 !important;<!-- [et_pb_line_break_holder] -->  border-radius: 4px !important;<!-- [et_pb_line_break_holder] -->  display: flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  justify-content: center !important;<!-- [et_pb_line_break_holder] -->  font-size: 10px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  color: #94a3b8 !important;<!-- [et_pb_line_break_holder] -->  transition: all 0.2s ease !important;<!-- [et_pb_line_break_holder] -->  margin-top: 1px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#unipile-toc .utc-num.utc-num-faq {<!-- [et_pb_line_break_holder] -->  font-size: 8px !important;<!-- [et_pb_line_break_holder] -->  letter-spacing: 0.2px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#unipile-toc .utc-link-text {<!-- [et_pb_line_break_holder] -->  font-size: 13px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 500 !important;<!-- [et_pb_line_break_holder] -->  color: #383838 !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.45 !important;<!-- [et_pb_line_break_holder] -->  transition: color 0.2s ease !important;<!-- [et_pb_line_break_holder] -->  flex: 1 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#unipile-toc .utc-link:hover .utc-num {<!-- [et_pb_line_break_holder] -->  background: rgba(59, 185, 139, 0.15) !important;<!-- [et_pb_line_break_holder] -->  color: #3BB98B !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#unipile-toc .utc-link:hover .utc-link-text {<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#unipile-toc .utc-link.utc-active .utc-num {<!-- [et_pb_line_break_holder] -->  background: #3BB98B !important;<!-- [et_pb_line_break_holder] -->  color: #ffffff !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#unipile-toc .utc-link.utc-active .utc-link-text {<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  font-weight: 600 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#unipile-toc .utc-link.utc-read .utc-num {<!-- [et_pb_line_break_holder] -->  background: rgba(59, 185, 139, 0.15) !important;<!-- [et_pb_line_break_holder] -->  color: #3BB98B !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#unipile-toc .utc-tag-best {<!-- [et_pb_line_break_holder] -->  display: inline-block !important;<!-- [et_pb_line_break_holder] -->  font-size: 9px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  color: #ffffff !important;<!-- [et_pb_line_break_holder] -->  background: #3BB98B !important;<!-- [et_pb_line_break_holder] -->  padding: 2px 6px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 4px !important;<!-- [et_pb_line_break_holder] -->  text-transform: uppercase !important;<!-- [et_pb_line_break_holder] -->  letter-spacing: 0.5px !important;<!-- [et_pb_line_break_holder] -->  margin-left: 6px !important;<!-- [et_pb_line_break_holder] -->  vertical-align: middle !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->@media (max-width: 1000px) {<!-- [et_pb_line_break_holder] -->  #unipile-toc .utc-grid {<!-- [et_pb_line_break_holder] -->    grid-template-columns: repeat(2, 1fr) !important;<!-- [et_pb_line_break_holder] -->    gap: 24px 0 !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #unipile-toc .utc-col {<!-- [et_pb_line_break_holder] -->    padding: 0 20px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #unipile-toc .utc-col:nth-child(2n+1) {<!-- [et_pb_line_break_holder] -->    padding-left: 0 !important;<!-- [et_pb_line_break_holder] -->    border-left: none !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #unipile-toc .utc-col:nth-child(2n) {<!-- [et_pb_line_break_holder] -->    padding-right: 0 !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->@media (max-width: 700px) {<!-- [et_pb_line_break_holder] -->  #unipile-toc .utc-card {<!-- [et_pb_line_break_holder] -->    padding: 22px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #unipile-toc .utc-header {<!-- [et_pb_line_break_holder] -->    margin-bottom: 0 !important;<!-- [et_pb_line_break_holder] -->    padding-bottom: 0 !important;<!-- [et_pb_line_break_holder] -->    border-bottom: none !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #unipile-toc .utc-toggle {<!-- [et_pb_line_break_holder] -->    display: flex !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #unipile-toc .utc-grid {<!-- [et_pb_line_break_holder] -->    grid-template-columns: 1fr !important;<!-- [et_pb_line_break_holder] -->    gap: 22px !important;<!-- [et_pb_line_break_holder] -->    max-height: 2000px !important;<!-- [et_pb_line_break_holder] -->    overflow: hidden !important;<!-- [et_pb_line_break_holder] -->    transition: max-height 0.4s ease, margin-top 0.3s ease, padding-top 0.3s ease !important;<!-- [et_pb_line_break_holder] -->    margin-top: 22px !important;<!-- [et_pb_line_break_holder] -->    padding-top: 22px !important;<!-- [et_pb_line_break_holder] -->    border-top: 1px solid #e5e7eb !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #unipile-toc.utc-collapsed .utc-grid {<!-- [et_pb_line_break_holder] -->    max-height: 0 !important;<!-- [et_pb_line_break_holder] -->    margin-top: 0 !important;<!-- [et_pb_line_break_holder] -->    padding-top: 0 !important;<!-- [et_pb_line_break_holder] -->    border-top: none !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #unipile-toc .utc-col {<!-- [et_pb_line_break_holder] -->    padding: 0 !important;<!-- [et_pb_line_break_holder] -->    border-left: none !important;<!-- [et_pb_line_break_holder] -->    border-top: 1px solid #e5e7eb !important;<!-- [et_pb_line_break_holder] -->    padding-top: 18px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #unipile-toc .utc-col:first-child {<!-- [et_pb_line_break_holder] -->    border-top: none !important;<!-- [et_pb_line_break_holder] -->    padding-top: 0 !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><\/style><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><div id=\"unipile-toc\"><!-- [et_pb_line_break_holder] -->  <div class=\"utc-card\"><!-- [et_pb_line_break_holder] -->    <div class=\"utc-header\"><!-- [et_pb_line_break_holder] -->      <div class=\"utc-header-left\"><!-- [et_pb_line_break_holder] -->        <div class=\"utc-icon-box\"><!-- [et_pb_line_break_holder] -->          <svg viewBox=\"0 0 24 24\"><!-- [et_pb_line_break_holder] -->            <line x1=\"8\" y1=\"6\" x2=\"21\" y2=\"6\"\/><!-- [et_pb_line_break_holder] -->            <line x1=\"8\" y1=\"12\" x2=\"21\" y2=\"12\"\/><!-- [et_pb_line_break_holder] -->            <line x1=\"8\" y1=\"18\" x2=\"21\" y2=\"18\"\/><!-- [et_pb_line_break_holder] -->            <line x1=\"3\" y1=\"6\" x2=\"3.01\" y2=\"6\"\/><!-- [et_pb_line_break_holder] -->            <line x1=\"3\" y1=\"12\" x2=\"3.01\" y2=\"12\"\/><!-- [et_pb_line_break_holder] -->            <line x1=\"3\" y1=\"18\" x2=\"3.01\" y2=\"18\"\/><!-- [et_pb_line_break_holder] -->          <\/svg><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <span class=\"utc-title\">Table of Contents<\/span><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] -->      <button type=\"button\" class=\"utc-toggle\" aria-label=\"Toggle table of contents\"><!-- [et_pb_line_break_holder] -->        <span class=\"utc-toggle-label\">Hide<\/span><!-- [et_pb_line_break_holder] -->        <svg viewBox=\"0 0 24 24\"><polyline points=\"6 9 12 15 18 9\"\/><\/svg><!-- [et_pb_line_break_holder] -->      <\/button><!-- [et_pb_line_break_holder] -->    <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    <div class=\"utc-grid\"><!-- [et_pb_line_break_holder] -->      <div class=\"utc-col\"><!-- [et_pb_line_break_holder] -->        <span class=\"utc-col-label\">Fundamentals<\/span><!-- [et_pb_line_break_holder] -->        <div class=\"utc-link-list\"><!-- [et_pb_line_break_holder] -->          <a class=\"utc-link\" href=\"#imap-what-is\"><!-- [et_pb_line_break_holder] -->            <span class=\"utc-num\">01<\/span><!-- [et_pb_line_break_holder] -->            <span class=\"utc-link-text\">What is an IMAP connection<\/span><!-- [et_pb_line_break_holder] -->          <\/a><!-- [et_pb_line_break_holder] -->          <a class=\"utc-link\" href=\"#imap-ports\"><!-- [et_pb_line_break_holder] -->            <span class=\"utc-num\">02<\/span><!-- [et_pb_line_break_holder] -->            <span class=\"utc-link-text\">IMAP ports explained<\/span><!-- [et_pb_line_break_holder] -->          <\/a><!-- [et_pb_line_break_holder] -->          <a class=\"utc-link\" href=\"#imap-host-table\"><!-- [et_pb_line_break_holder] -->            <span class=\"utc-num\">03<\/span><!-- [et_pb_line_break_holder] -->            <span class=\"utc-link-text\">Host &#038; port settings<\/span><!-- [et_pb_line_break_holder] -->          <\/a><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->      <div class=\"utc-col\"><!-- [et_pb_line_break_holder] -->        <span class=\"utc-col-label\">Connection &#038; Auth<\/span><!-- [et_pb_line_break_holder] -->        <div class=\"utc-link-list\"><!-- [et_pb_line_break_holder] -->          <a class=\"utc-link\" href=\"#imap-raw-connection\"><!-- [et_pb_line_break_holder] -->            <span class=\"utc-num\">04<\/span><!-- [et_pb_line_break_holder] -->            <span class=\"utc-link-text\">Open a raw IMAP connection<\/span><!-- [et_pb_line_break_holder] -->          <\/a><!-- [et_pb_line_break_holder] -->          <a class=\"utc-link\" href=\"#imap-auth\"><!-- [et_pb_line_break_holder] -->            <span class=\"utc-num\">05<\/span><!-- [et_pb_line_break_holder] -->            <span class=\"utc-link-text\">Authentication methods<\/span><!-- [et_pb_line_break_holder] -->          <\/a><!-- [et_pb_line_break_holder] -->          <a class=\"utc-link\" href=\"#imap-basic-auth-deprecation\"><!-- [et_pb_line_break_holder] -->            <span class=\"utc-num\">06<\/span><!-- [et_pb_line_break_holder] -->            <span class=\"utc-link-text\">Microsoft Basic Auth deprecation<\/span><!-- [et_pb_line_break_holder] -->          <\/a><!-- [et_pb_line_break_holder] -->          <a class=\"utc-link\" href=\"#imap-xoauth2\"><!-- [et_pb_line_break_holder] -->            <span class=\"utc-num\">07<\/span><!-- [et_pb_line_break_holder] -->            <span class=\"utc-link-text\">Connecting via XOAUTH2<\/span><!-- [et_pb_line_break_holder] -->          <\/a><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->      <div class=\"utc-col\"><!-- [et_pb_line_break_holder] -->        <span class=\"utc-col-label\">Production<\/span><!-- [et_pb_line_break_holder] -->        <div class=\"utc-link-list\"><!-- [et_pb_line_break_holder] -->          <a class=\"utc-link\" href=\"#imap-idle\"><!-- [et_pb_line_break_holder] -->            <span class=\"utc-num\">08<\/span><!-- [et_pb_line_break_holder] -->            <span class=\"utc-link-text\">IDLE, polling &#038; push<\/span><!-- [et_pb_line_break_holder] -->          <\/a><!-- [et_pb_line_break_holder] -->          <a class=\"utc-link\" href=\"#imap-troubleshooting\"><!-- [et_pb_line_break_holder] -->            <span class=\"utc-num\">09<\/span><!-- [et_pb_line_break_holder] -->            <span class=\"utc-link-text\">Troubleshooting matrix<\/span><!-- [et_pb_line_break_holder] -->          <\/a><!-- [et_pb_line_break_holder] -->          <a class=\"utc-link\" href=\"#imap-production-scale\"><!-- [et_pb_line_break_holder] -->            <span class=\"utc-num\">10<\/span><!-- [et_pb_line_break_holder] -->            <span class=\"utc-link-text\">IMAP at scale<\/span><!-- [et_pb_line_break_holder] -->          <\/a><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->      <div class=\"utc-col\"><!-- [et_pb_line_break_holder] -->        <span class=\"utc-col-label\">Solution &#038; FAQ<\/span><!-- [et_pb_line_break_holder] -->        <div class=\"utc-link-list\"><!-- [et_pb_line_break_holder] -->          <a class=\"utc-link\" href=\"#imap-unipile\"><!-- [et_pb_line_break_holder] -->            <span class=\"utc-num\">11<\/span><!-- [et_pb_line_break_holder] -->            <span class=\"utc-link-text\">IMAP with Unipile<span class=\"utc-tag-best\">Best<\/span><\/span><!-- [et_pb_line_break_holder] -->          <\/a><!-- [et_pb_line_break_holder] -->          <a class=\"utc-link\" href=\"#imap-faq\"><!-- [et_pb_line_break_holder] -->            <span class=\"utc-num utc-num-faq\">FAQ<\/span><!-- [et_pb_line_break_holder] -->            <span class=\"utc-link-text\">Frequently Asked Questions<\/span><!-- [et_pb_line_break_holder] -->          <\/a><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] -->    <\/div><!-- [et_pb_line_break_holder] -->  <\/div><!-- [et_pb_line_break_holder] --><\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><script><!-- [et_pb_line_break_holder] -->(function(){<!-- [et_pb_line_break_holder] -->  var toc = document.getElementById('unipile-toc');<!-- [et_pb_line_break_holder] -->  if (!toc) return;<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->  var toggleBtn = toc.querySelector('.utc-toggle');<!-- [et_pb_line_break_holder] -->  var toggleLabel = toc.querySelector('.utc-toggle-label');<!-- [et_pb_line_break_holder] -->  if (toggleBtn) {<!-- [et_pb_line_break_holder] -->    toggleBtn.addEventListener('click', function(){<!-- [et_pb_line_break_holder] -->      var isCollapsed = toc.classList.toggle('utc-collapsed');<!-- [et_pb_line_break_holder] -->      if (toggleLabel) toggleLabel.textContent = isCollapsed ? 'Show' : 'Hide';<!-- [et_pb_line_break_holder] -->    });<!-- [et_pb_line_break_holder] -->    if (window.innerWidth <= 700) {<!-- [et_pb_line_break_holder] -->      toc.classList.add('utc-collapsed');<!-- [et_pb_line_break_holder] -->      if (toggleLabel) toggleLabel.textContent = 'Show';<!-- [et_pb_line_break_holder] -->    }<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->  var links = toc.querySelectorAll('.utc-link');<!-- [et_pb_line_break_holder] -->  links.forEach(function(link){<!-- [et_pb_line_break_holder] -->    link.addEventListener('click', function(e){<!-- [et_pb_line_break_holder] -->      var href = link.getAttribute('href');<!-- [et_pb_line_break_holder] -->      if (!href || href.charAt(0) !== '#') return;<!-- [et_pb_line_break_holder] -->      var target = document.getElementById(href.substring(1));<!-- [et_pb_line_break_holder] -->      if (target) {<!-- [et_pb_line_break_holder] -->        e.preventDefault();<!-- [et_pb_line_break_holder] -->        var offset = 80;<!-- [et_pb_line_break_holder] -->        var top = target.getBoundingClientRect().top + window.pageYOffset - offset;<!-- [et_pb_line_break_holder] -->        window.scrollTo({ top: top, behavior: 'smooth' });<!-- [et_pb_line_break_holder] -->      }<!-- [et_pb_line_break_holder] -->    });<!-- [et_pb_line_break_holder] -->  });<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->  var sectionIds = [];<!-- [et_pb_line_break_holder] -->  links.forEach(function(link){<!-- [et_pb_line_break_holder] -->    var href = link.getAttribute('href');<!-- [et_pb_line_break_holder] -->    if (href && href.charAt(0) === '#') sectionIds.push(href.substring(1));<!-- [et_pb_line_break_holder] -->  });<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->  function updateActive(){<!-- [et_pb_line_break_holder] -->    var scrollY = window.pageYOffset + 120;<!-- [et_pb_line_break_holder] -->    var activeId = null;<!-- [et_pb_line_break_holder] -->    var readIds = [];<!-- [et_pb_line_break_holder] -->    sectionIds.forEach(function(id){<!-- [et_pb_line_break_holder] -->      var el = document.getElementById(id);<!-- [et_pb_line_break_holder] -->      if (el) {<!-- [et_pb_line_break_holder] -->        var top = el.getBoundingClientRect().top + window.pageYOffset;<!-- [et_pb_line_break_holder] -->        if (top <= scrollY) {<!-- [et_pb_line_break_holder] -->          activeId = id;<!-- [et_pb_line_break_holder] -->          readIds.push(id);<!-- [et_pb_line_break_holder] -->        }<!-- [et_pb_line_break_holder] -->      }<!-- [et_pb_line_break_holder] -->    });<!-- [et_pb_line_break_holder] -->    links.forEach(function(link){<!-- [et_pb_line_break_holder] -->      var href = link.getAttribute('href');<!-- [et_pb_line_break_holder] -->      var id = href ? href.substring(1) : '';<!-- [et_pb_line_break_holder] -->      link.classList.remove('utc-active', 'utc-read');<!-- [et_pb_line_break_holder] -->      if (id === activeId) {<!-- [et_pb_line_break_holder] -->        link.classList.add('utc-active');<!-- [et_pb_line_break_holder] -->      } else if (readIds.indexOf(id) !== -1) {<!-- [et_pb_line_break_holder] -->        link.classList.add('utc-read');<!-- [et_pb_line_break_holder] -->      }<!-- [et_pb_line_break_holder] -->    });<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->  if ('IntersectionObserver' in window) {<!-- [et_pb_line_break_holder] -->    var observer = new IntersectionObserver(function(){<!-- [et_pb_line_break_holder] -->      updateActive();<!-- [et_pb_line_break_holder] -->    }, { rootMargin: '-120px 0px -60% 0px' });<!-- [et_pb_line_break_holder] -->    sectionIds.forEach(function(id){<!-- [et_pb_line_break_holder] -->      var el = document.getElementById(id);<!-- [et_pb_line_break_holder] -->      if (el) observer.observe(el);<!-- [et_pb_line_break_holder] -->    });<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  window.addEventListener('scroll', updateActive, { passive: true });<!-- [et_pb_line_break_holder] -->  updateActive();<!-- [et_pb_line_break_holder] -->})();<!-- [et_pb_line_break_holder] --><\/script>[\/et_pb_code][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.27.0&#8243; background_color=&#8221;transparent&#8221; custom_padding=&#8221;0px||0px||false|false&#8221; da_disable_devices=&#8221;off|off|off&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221; da_is_popup=&#8221;off&#8221; da_exit_intent=&#8221;off&#8221; da_has_close=&#8221;on&#8221; da_alt_close=&#8221;off&#8221; da_dark_close=&#8221;off&#8221; da_not_modal=&#8221;on&#8221; da_is_singular=&#8221;off&#8221; da_with_loader=&#8221;off&#8221; da_has_shadow=&#8221;on&#8221;][et_pb_row _builder_version=&#8221;4.27.0&#8243; max_width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.27.0&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_code _builder_version=&#8221;4.27.0&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Inter:wght@400;500;600;700&#038;family=Poppins:wght@700;800&#038;display=swap\" rel=\"stylesheet\"><!-- [et_pb_line_break_holder] --><style><!-- [et_pb_line_break_holder] -->#upl-imap-what,<!-- [et_pb_line_break_holder] -->#upl-imap-what *,<!-- [et_pb_line_break_holder] -->#upl-imap-what *::before,<!-- [et_pb_line_break_holder] -->#upl-imap-what *::after {<!-- [et_pb_line_break_holder] -->  margin: 0 !important;<!-- [et_pb_line_break_holder] -->  padding: 0 !important;<!-- [et_pb_line_break_holder] -->  box-sizing: border-box !important;<!-- [et_pb_line_break_holder] -->  border: none !important;<!-- [et_pb_line_break_holder] -->  outline: none !important;<!-- [et_pb_line_break_holder] -->  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.5 !important;<!-- [et_pb_line_break_holder] -->  letter-spacing: normal !important;<!-- [et_pb_line_break_holder] -->  text-transform: none !important;<!-- [et_pb_line_break_holder] -->  text-decoration: none !important;<!-- [et_pb_line_break_holder] -->  list-style: none !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-what.upl-imap-what-wrapper {<!-- [et_pb_line_break_holder] -->  display: block !important;<!-- [et_pb_line_break_holder] -->  padding: 70px 24px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-what.upl-imap-what-wrapper .wi-container {<!-- [et_pb_line_break_holder] -->  max-width: 1100px !important;<!-- [et_pb_line_break_holder] -->  margin: 0 auto !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-what.upl-imap-what-wrapper .wi-badge {<!-- [et_pb_line_break_holder] -->  display: inline-flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 8px !important;<!-- [et_pb_line_break_holder] -->  background: rgba(59, 185, 139, 0.12) !important;<!-- [et_pb_line_break_holder] -->  color: #2aaa7e !important;<!-- [et_pb_line_break_holder] -->  padding: 6px 14px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 20px !important;<!-- [et_pb_line_break_holder] -->  font-size: 12px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  text-transform: uppercase !important;<!-- [et_pb_line_break_holder] -->  letter-spacing: 0.5px !important;<!-- [et_pb_line_break_holder] -->  width: fit-content !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 16px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-what.upl-imap-what-wrapper .wi-badge-dot {<!-- [et_pb_line_break_holder] -->  width: 7px !important;<!-- [et_pb_line_break_holder] -->  height: 7px !important;<!-- [et_pb_line_break_holder] -->  background: #3BB98B !important;<!-- [et_pb_line_break_holder] -->  border-radius: 50% !important;<!-- [et_pb_line_break_holder] -->  flex-shrink: 0 !important;<!-- [et_pb_line_break_holder] -->  display: inline-block !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-what.upl-imap-what-wrapper h2 {<!-- [et_pb_line_break_holder] -->  font-family: 'Poppins', sans-serif !important;<!-- [et_pb_line_break_holder] -->  font-size: 35px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.2 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 20px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-what.upl-imap-what-wrapper .wi-definition {<!-- [et_pb_line_break_holder] -->  background: #f4f5f7 !important;<!-- [et_pb_line_break_holder] -->  border-left: 4px solid #3BB98B !important;<!-- [et_pb_line_break_holder] -->  border-radius: 0 12px 12px 0 !important;<!-- [et_pb_line_break_holder] -->  padding: 24px 28px !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 28px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-what.upl-imap-what-wrapper .wi-definition p {<!-- [et_pb_line_break_holder] -->  font-size: 17px !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.75 !important;<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  font-weight: 500 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-what.upl-imap-what-wrapper .wi-body p {<!-- [et_pb_line_break_holder] -->  font-size: 16px !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.78 !important;<!-- [et_pb_line_break_holder] -->  color: #383838 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 16px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-what.upl-imap-what-wrapper .wi-body p:last-child {<!-- [et_pb_line_break_holder] -->  margin-bottom: 0 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-what.upl-imap-what-wrapper .wi-body a {<!-- [et_pb_line_break_holder] -->  color: #2aaa7e !important;<!-- [et_pb_line_break_holder] -->  text-decoration: underline !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-what.upl-imap-what-wrapper .wi-body strong {<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->@media (max-width: 900px) {<!-- [et_pb_line_break_holder] -->  #upl-imap-what.upl-imap-what-wrapper {<!-- [et_pb_line_break_holder] -->    padding: 50px 20px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-what.upl-imap-what-wrapper h2 {<!-- [et_pb_line_break_holder] -->    font-size: 28px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->@media (max-width: 600px) {<!-- [et_pb_line_break_holder] -->  #upl-imap-what.upl-imap-what-wrapper {<!-- [et_pb_line_break_holder] -->    padding: 40px 16px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-what.upl-imap-what-wrapper h2 {<!-- [et_pb_line_break_holder] -->    font-size: 26px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><\/style><!-- [et_pb_line_break_holder] --><div id=\"upl-imap-what\" class=\"upl-imap-what-wrapper\"><!-- [et_pb_line_break_holder] -->  <div class=\"wi-container\"><!-- [et_pb_line_break_holder] -->    <span id=\"imap-what-is\" style=\"display:block;position:relative;top:-80px;visibility:hidden;\"><\/span><!-- [et_pb_line_break_holder] -->    <div class=\"wi-badge\"><span class=\"wi-badge-dot\"><\/span><span>Definition<\/span><\/div><!-- [et_pb_line_break_holder] -->    <h2>What an IMAP server connection actually is<\/h2><!-- [et_pb_line_break_holder] -->    <div class=\"wi-definition\"><!-- [et_pb_line_break_holder] -->      <pee>An IMAP server connection is a persistent TCP session between an email client and a mail server that uses the Internet Message Access Protocol (IMAP) to synchronize, retrieve, and manage email messages stored remotely &#8211; without downloading or deleting them from the server.<\/pee><!-- [et_pb_line_break_holder] -->    <\/div><!-- [et_pb_line_break_holder] -->    <div class=\"wi-body\"><!-- [et_pb_line_break_holder] -->      <pee>Unlike POP3, which was designed to download messages locally and optionally delete them from the server, <strong>IMAP was built for synchronization<\/strong>. Every read, flag, move, or deletion you perform locally is reflected on the server &#8211; and therefore across every device connected to the same mailbox. This is why IMAP became the de facto protocol for modern email clients.<\/pee><!-- [et_pb_line_break_holder] -->      <pee>At the network level, an IMAP server connection opens a TCP socket to a mail server (typically port 993 for SSL\/TLS or port 143 for STARTTLS), performs a TLS handshake, authenticates the user (via password, app password, or OAuth 2.0 XOAUTH2), then enters a state machine: <strong>Not Authenticated<\/strong>, <strong>Authenticated<\/strong>, <strong>Selected<\/strong> (inside a mailbox folder), or <strong>Logout<\/strong>. Most of the useful commands &#8211; FETCH, SEARCH, STORE, COPY, EXPUNGE &#8211; only work in the Selected state.<\/pee><!-- [et_pb_line_break_holder] -->      <pee>For developers building email integrations, an IMAP server connection is the lowest-level building block. You establish it, authenticate it, SELECT a mailbox, then poll or IDLE for new messages. This guide covers every step: the right host and port for each provider, the correct authentication method in 2026 (OAuth is increasingly mandatory), and a complete troubleshooting reference for the most common failure modes.<\/pee><!-- [et_pb_line_break_holder] -->    <\/div><!-- [et_pb_line_break_holder] -->  <\/div><!-- [et_pb_line_break_holder] --><\/div>[\/et_pb_code][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.27.0&#8243; background_color=&#8221;transparent&#8221; custom_padding=&#8221;0px||0px||false|false&#8221; da_disable_devices=&#8221;off|off|off&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221; da_is_popup=&#8221;off&#8221; da_exit_intent=&#8221;off&#8221; da_has_close=&#8221;on&#8221; da_alt_close=&#8221;off&#8221; da_dark_close=&#8221;off&#8221; da_not_modal=&#8221;on&#8221; da_is_singular=&#8221;off&#8221; da_with_loader=&#8221;off&#8221; da_has_shadow=&#8221;on&#8221;][et_pb_row _builder_version=&#8221;4.27.0&#8243; max_width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.27.0&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_code _builder_version=&#8221;4.27.0&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Inter:wght@400;500;600;700&#038;family=Poppins:wght@700;800&#038;display=swap\" rel=\"stylesheet\"><!-- [et_pb_line_break_holder] --><style><!-- [et_pb_line_break_holder] -->#upl-imap-ports,<!-- [et_pb_line_break_holder] -->#upl-imap-ports *,<!-- [et_pb_line_break_holder] -->#upl-imap-ports *::before,<!-- [et_pb_line_break_holder] -->#upl-imap-ports *::after {<!-- [et_pb_line_break_holder] -->  margin: 0 !important;<!-- [et_pb_line_break_holder] -->  padding: 0 !important;<!-- [et_pb_line_break_holder] -->  box-sizing: border-box !important;<!-- [et_pb_line_break_holder] -->  border: none !important;<!-- [et_pb_line_break_holder] -->  outline: none !important;<!-- [et_pb_line_break_holder] -->  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.5 !important;<!-- [et_pb_line_break_holder] -->  letter-spacing: normal !important;<!-- [et_pb_line_break_holder] -->  text-transform: none !important;<!-- [et_pb_line_break_holder] -->  text-decoration: none !important;<!-- [et_pb_line_break_holder] -->  list-style: none !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-ports.upl-imap-ports-wrapper {<!-- [et_pb_line_break_holder] -->  display: block !important;<!-- [et_pb_line_break_holder] -->  padding: 70px 24px !important;<!-- [et_pb_line_break_holder] -->  background: #f4f5f7 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-ports.upl-imap-ports-wrapper .pt-container {<!-- [et_pb_line_break_holder] -->  max-width: 1100px !important;<!-- [et_pb_line_break_holder] -->  margin: 0 auto !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-ports.upl-imap-ports-wrapper .pt-badge {<!-- [et_pb_line_break_holder] -->  display: inline-flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 8px !important;<!-- [et_pb_line_break_holder] -->  background: rgba(221, 223, 76, 0.18) !important;<!-- [et_pb_line_break_holder] -->  color: #8a8c2e !important;<!-- [et_pb_line_break_holder] -->  padding: 6px 14px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 20px !important;<!-- [et_pb_line_break_holder] -->  font-size: 12px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  text-transform: uppercase !important;<!-- [et_pb_line_break_holder] -->  letter-spacing: 0.5px !important;<!-- [et_pb_line_break_holder] -->  width: fit-content !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 16px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-ports.upl-imap-ports-wrapper .pt-badge-dot {<!-- [et_pb_line_break_holder] -->  width: 7px !important;<!-- [et_pb_line_break_holder] -->  height: 7px !important;<!-- [et_pb_line_break_holder] -->  background: #DDDF4C !important;<!-- [et_pb_line_break_holder] -->  border-radius: 50% !important;<!-- [et_pb_line_break_holder] -->  flex-shrink: 0 !important;<!-- [et_pb_line_break_holder] -->  display: inline-block !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-ports.upl-imap-ports-wrapper h2 {<!-- [et_pb_line_break_holder] -->  font-family: 'Poppins', sans-serif !important;<!-- [et_pb_line_break_holder] -->  font-size: 35px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.2 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 16px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-ports.upl-imap-ports-wrapper .pt-intro {<!-- [et_pb_line_break_holder] -->  font-size: 16px !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.78 !important;<!-- [et_pb_line_break_holder] -->  color: #383838 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 36px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-ports.upl-imap-ports-wrapper .pt-cards {<!-- [et_pb_line_break_holder] -->  display: grid !important;<!-- [et_pb_line_break_holder] -->  grid-template-columns: 1fr 1fr !important;<!-- [et_pb_line_break_holder] -->  gap: 24px !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 36px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-ports.upl-imap-ports-wrapper .pt-card {<!-- [et_pb_line_break_holder] -->  background: #ffffff !important;<!-- [et_pb_line_break_holder] -->  border-radius: 16px !important;<!-- [et_pb_line_break_holder] -->  padding: 28px !important;<!-- [et_pb_line_break_holder] -->  border: 2px solid #e5e7eb !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-ports.upl-imap-ports-wrapper .pt-card.pt-card-recommended {<!-- [et_pb_line_break_holder] -->  border-color: #3BB98B !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-ports.upl-imap-ports-wrapper .pt-card-tag {<!-- [et_pb_line_break_holder] -->  display: inline-flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 6px !important;<!-- [et_pb_line_break_holder] -->  font-size: 11px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  text-transform: uppercase !important;<!-- [et_pb_line_break_holder] -->  letter-spacing: 0.5px !important;<!-- [et_pb_line_break_holder] -->  padding: 4px 10px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 20px !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 14px !important;<!-- [et_pb_line_break_holder] -->  width: fit-content !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-ports.upl-imap-ports-wrapper .pt-card-tag.tag-green {<!-- [et_pb_line_break_holder] -->  background: rgba(59, 185, 139, 0.12) !important;<!-- [et_pb_line_break_holder] -->  color: #2aaa7e !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-ports.upl-imap-ports-wrapper .pt-card-tag.tag-yellow {<!-- [et_pb_line_break_holder] -->  background: rgba(221, 223, 76, 0.18) !important;<!-- [et_pb_line_break_holder] -->  color: #8a8c2e !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-ports.upl-imap-ports-wrapper .pt-port-num {<!-- [et_pb_line_break_holder] -->  font-family: 'Poppins', sans-serif !important;<!-- [et_pb_line_break_holder] -->  font-size: 48px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  line-height: 1 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 6px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-ports.upl-imap-ports-wrapper .pt-port-label {<!-- [et_pb_line_break_holder] -->  font-size: 14px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  color: #3BB98B !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 12px !important;<!-- [et_pb_line_break_holder] -->  text-transform: uppercase !important;<!-- [et_pb_line_break_holder] -->  letter-spacing: 0.4px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-ports.upl-imap-ports-wrapper .pt-port-desc {<!-- [et_pb_line_break_holder] -->  font-size: 15px !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.7 !important;<!-- [et_pb_line_break_holder] -->  color: #383838 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 16px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-ports.upl-imap-ports-wrapper .pt-checklist {<!-- [et_pb_line_break_holder] -->  display: flex !important;<!-- [et_pb_line_break_holder] -->  flex-direction: column !important;<!-- [et_pb_line_break_holder] -->  gap: 8px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-ports.upl-imap-ports-wrapper .pt-check-item {<!-- [et_pb_line_break_holder] -->  display: flex !important;<!-- [et_pb_line_break_holder] -->  align-items: flex-start !important;<!-- [et_pb_line_break_holder] -->  gap: 8px !important;<!-- [et_pb_line_break_holder] -->  font-size: 14px !important;<!-- [et_pb_line_break_holder] -->  color: #383838 !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.5 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-ports.upl-imap-ports-wrapper .pt-check-icon {<!-- [et_pb_line_break_holder] -->  width: 16px !important;<!-- [et_pb_line_break_holder] -->  height: 16px !important;<!-- [et_pb_line_break_holder] -->  flex-shrink: 0 !important;<!-- [et_pb_line_break_holder] -->  margin-top: 1px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-ports.upl-imap-ports-wrapper .pt-check-icon.icon-green {<!-- [et_pb_line_break_holder] -->  stroke: #3BB98B !important;<!-- [et_pb_line_break_holder] -->  fill: none !important;<!-- [et_pb_line_break_holder] -->  stroke-width: 2.5 !important;<!-- [et_pb_line_break_holder] -->  stroke-linecap: round !important;<!-- [et_pb_line_break_holder] -->  stroke-linejoin: round !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-ports.upl-imap-ports-wrapper .pt-check-icon.icon-yellow {<!-- [et_pb_line_break_holder] -->  stroke: #8a8c2e !important;<!-- [et_pb_line_break_holder] -->  fill: none !important;<!-- [et_pb_line_break_holder] -->  stroke-width: 2.5 !important;<!-- [et_pb_line_break_holder] -->  stroke-linecap: round !important;<!-- [et_pb_line_break_holder] -->  stroke-linejoin: round !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-ports.upl-imap-ports-wrapper .pt-recommendation {<!-- [et_pb_line_break_holder] -->  background: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  border-radius: 12px !important;<!-- [et_pb_line_break_holder] -->  padding: 20px 24px !important;<!-- [et_pb_line_break_holder] -->  display: flex !important;<!-- [et_pb_line_break_holder] -->  align-items: flex-start !important;<!-- [et_pb_line_break_holder] -->  gap: 14px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-ports.upl-imap-ports-wrapper .pt-rec-icon {<!-- [et_pb_line_break_holder] -->  width: 22px !important;<!-- [et_pb_line_break_holder] -->  height: 22px !important;<!-- [et_pb_line_break_holder] -->  stroke: #DDDF4C !important;<!-- [et_pb_line_break_holder] -->  fill: none !important;<!-- [et_pb_line_break_holder] -->  stroke-width: 2 !important;<!-- [et_pb_line_break_holder] -->  stroke-linecap: round !important;<!-- [et_pb_line_break_holder] -->  stroke-linejoin: round !important;<!-- [et_pb_line_break_holder] -->  flex-shrink: 0 !important;<!-- [et_pb_line_break_holder] -->  margin-top: 2px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-ports.upl-imap-ports-wrapper .pt-rec-text {<!-- [et_pb_line_break_holder] -->  font-size: 15px !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.7 !important;<!-- [et_pb_line_break_holder] -->  color: rgba(255,255,255,0.9) !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-ports.upl-imap-ports-wrapper .pt-rec-text strong {<!-- [et_pb_line_break_holder] -->  color: #DDDF4C !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-ports.upl-imap-ports-wrapper .pt-body p {<!-- [et_pb_line_break_holder] -->  font-size: 16px !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.78 !important;<!-- [et_pb_line_break_holder] -->  color: #383838 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 16px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-ports.upl-imap-ports-wrapper .pt-body p:last-child {<!-- [et_pb_line_break_holder] -->  margin-bottom: 0 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-ports.upl-imap-ports-wrapper .pt-body strong {<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-ports.upl-imap-ports-wrapper .pt-body a {<!-- [et_pb_line_break_holder] -->  color: #2aaa7e !important;<!-- [et_pb_line_break_holder] -->  text-decoration: underline !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-ports.upl-imap-ports-wrapper .pt-spacer {<!-- [et_pb_line_break_holder] -->  height: 28px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->@media (max-width: 900px) {<!-- [et_pb_line_break_holder] -->  #upl-imap-ports.upl-imap-ports-wrapper {<!-- [et_pb_line_break_holder] -->    padding: 50px 20px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-ports.upl-imap-ports-wrapper h2 {<!-- [et_pb_line_break_holder] -->    font-size: 28px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-ports.upl-imap-ports-wrapper .pt-cards {<!-- [et_pb_line_break_holder] -->    grid-template-columns: 1fr !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->@media (max-width: 600px) {<!-- [et_pb_line_break_holder] -->  #upl-imap-ports.upl-imap-ports-wrapper {<!-- [et_pb_line_break_holder] -->    padding: 40px 16px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-ports.upl-imap-ports-wrapper h2 {<!-- [et_pb_line_break_holder] -->    font-size: 26px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-ports.upl-imap-ports-wrapper .pt-port-num {<!-- [et_pb_line_break_holder] -->    font-size: 38px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><\/style><!-- [et_pb_line_break_holder] --><div id=\"upl-imap-ports\" class=\"upl-imap-ports-wrapper\"><!-- [et_pb_line_break_holder] -->  <div class=\"pt-container\"><!-- [et_pb_line_break_holder] -->    <span id=\"imap-ports\" style=\"display:block;position:relative;top:-80px;visibility:hidden;\"><\/span><!-- [et_pb_line_break_holder] -->    <div class=\"pt-badge\"><span class=\"pt-badge-dot\"><\/span><span>Technical Reference<\/span><\/div><!-- [et_pb_line_break_holder] -->    <h2>IMAP ports explained: 143, 993, and when STARTTLS is OK<\/h2><!-- [et_pb_line_break_holder] -->    <pee class=\"pt-intro\">There are exactly two IMAP ports in active use: <strong>993<\/strong> (Implicit TLS, the modern standard) and <strong>143<\/strong> (STARTTLS upgrade or plain-text, which most servers no longer allow plain). Knowing the difference matters because using the wrong port is one of the most common causes of connection failures when building an IMAP integration.<\/pee><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    <div class=\"pt-cards\"><!-- [et_pb_line_break_holder] -->      <div class=\"pt-card pt-card-recommended\"><!-- [et_pb_line_break_holder] -->        <div class=\"pt-card-tag tag-green\"><span>Recommended 2026<\/span><\/div><!-- [et_pb_line_break_holder] -->        <div class=\"pt-port-num\">993<\/div><!-- [et_pb_line_break_holder] -->        <div class=\"pt-port-label\">IMAP over SSL\/TLS (Implicit)<\/div><!-- [et_pb_line_break_holder] -->        <pee class=\"pt-port-desc\">The client connects and immediately initiates a TLS handshake before any IMAP data is exchanged. All traffic is encrypted from the first byte. This is the correct default for any new integration.<\/pee><!-- [et_pb_line_break_holder] -->        <div class=\"pt-checklist\"><!-- [et_pb_line_break_holder] -->          <div class=\"pt-check-item\"><!-- [et_pb_line_break_holder] -->            <svg class=\"pt-check-icon icon-green\" viewBox=\"0 0 24 24\"><polyline points=\"20 6 9 17 4 12\"\/><\/svg><!-- [et_pb_line_break_holder] -->            <span>Supported by all major providers (Gmail, Outlook, Yahoo, iCloud)<\/span><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->          <div class=\"pt-check-item\"><!-- [et_pb_line_break_holder] -->            <svg class=\"pt-check-icon icon-green\" viewBox=\"0 0 24 24\"><polyline points=\"20 6 9 17 4 12\"\/><\/svg><!-- [et_pb_line_break_holder] -->            <span>TLS established before authentication credentials are sent<\/span><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->          <div class=\"pt-check-item\"><!-- [et_pb_line_break_holder] -->            <svg class=\"pt-check-icon icon-green\" viewBox=\"0 0 24 24\"><polyline points=\"20 6 9 17 4 12\"\/><\/svg><!-- [et_pb_line_break_holder] -->            <span>Required for OAuth 2.0 XOAUTH2 on Google and Microsoft<\/span><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->          <div class=\"pt-check-item\"><!-- [et_pb_line_break_holder] -->            <svg class=\"pt-check-icon icon-green\" viewBox=\"0 0 24 24\"><polyline points=\"20 6 9 17 4 12\"\/><\/svg><!-- [et_pb_line_break_holder] -->            <span>Simpler connection logic (no STARTTLS upgrade step)<\/span><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] -->      <div class=\"pt-card\"><!-- [et_pb_line_break_holder] -->        <div class=\"pt-card-tag tag-yellow\"><span>Legacy \/ Conditional<\/span><\/div><!-- [et_pb_line_break_holder] -->        <div class=\"pt-port-num\">143<\/div><!-- [et_pb_line_break_holder] -->        <div class=\"pt-port-label\">IMAP with STARTTLS upgrade<\/div><!-- [et_pb_line_break_holder] -->        <pee class=\"pt-port-desc\">The client connects in plain-text, then issues a <code style=\"background:rgba(0,0,0,0.06);padding:2px 5px;border-radius:4px;font-family:'Courier New',monospace;font-size:13px;\">STARTTLS<\/code> command to upgrade to TLS. Most modern servers require this upgrade and reject plain-text sessions entirely.<\/pee><!-- [et_pb_line_break_holder] -->        <div class=\"pt-checklist\"><!-- [et_pb_line_break_holder] -->          <div class=\"pt-check-item\"><!-- [et_pb_line_break_holder] -->            <svg class=\"pt-check-icon icon-yellow\" viewBox=\"0 0 24 24\"><line x1=\"12\" y1=\"9\" x2=\"12\" y2=\"13\"\/><line x1=\"12\" y1=\"17\" x2=\"12.01\" y2=\"17\"\/><circle cx=\"12\" cy=\"12\" r=\"10\"\/><\/svg><!-- [et_pb_line_break_holder] -->            <span>Acceptable on corporate IMAP servers and self-hosted mail (e.g., Dovecot, Postfix)<\/span><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->          <div class=\"pt-check-item\"><!-- [et_pb_line_break_holder] -->            <svg class=\"pt-check-icon icon-yellow\" viewBox=\"0 0 24 24\"><line x1=\"12\" y1=\"9\" x2=\"12\" y2=\"13\"\/><line x1=\"12\" y1=\"17\" x2=\"12.01\" y2=\"17\"\/><circle cx=\"12\" cy=\"12\" r=\"10\"\/><\/svg><!-- [et_pb_line_break_holder] -->            <span>More complex handshake: your client must handle the STARTTLS flow explicitly<\/span><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->          <div class=\"pt-check-item\"><!-- [et_pb_line_break_holder] -->            <svg class=\"pt-check-icon icon-yellow\" viewBox=\"0 0 24 24\"><line x1=\"12\" y1=\"9\" x2=\"12\" y2=\"13\"\/><line x1=\"12\" y1=\"17\" x2=\"12.01\" y2=\"17\"\/><circle cx=\"12\" cy=\"12\" r=\"10\"\/><\/svg><!-- [et_pb_line_break_holder] -->            <span>Avoid for cloud providers &#8211; they all prefer 993<\/span><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->          <div class=\"pt-check-item\"><!-- [et_pb_line_break_holder] -->            <svg class=\"pt-check-icon icon-yellow\" viewBox=\"0 0 24 24\"><line x1=\"12\" y1=\"9\" x2=\"12\" y2=\"13\"\/><line x1=\"12\" y1=\"17\" x2=\"12.01\" y2=\"17\"\/><circle cx=\"12\" cy=\"12\" r=\"10\"\/><\/svg><!-- [et_pb_line_break_holder] -->            <span>Port 143 without STARTTLS is blocked by virtually every modern mail server<\/span><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] -->    <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    <div class=\"pt-recommendation\"><!-- [et_pb_line_break_holder] -->      <svg class=\"pt-rec-icon\" viewBox=\"0 0 24 24\"><circle cx=\"12\" cy=\"12\" r=\"10\"\/><line x1=\"12\" y1=\"8\" x2=\"12\" y2=\"12\"\/><line x1=\"12\" y1=\"16\" x2=\"12.01\" y2=\"16\"\/><\/svg><!-- [et_pb_line_break_holder] -->      <pee class=\"pt-rec-text\"><strong>2026 recommendation:<\/strong> always use port <strong>993 with SSL_CONTEXT<\/strong> (implicit TLS). If you are building against a corporate IMAP server that only exposes port 143, enable STARTTLS and verify the server certificate. Never connect to an IMAP server over plain-text in production &#8211; credentials travel in the clear and most providers now refuse such connections outright.<\/pee><!-- [et_pb_line_break_holder] -->    <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    <div class=\"pt-spacer\"><\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    <div class=\"pt-body\"><!-- [et_pb_line_break_holder] -->      <pee>A quick note on <strong>RFC 9051 (IMAP4rev2)<\/strong>, published in August 2021 as the successor to RFC 3501. IMAP4rev2 formally requires TLS for any connection carrying credentials, deprecates MD5-based authentication mechanisms, and removes the <code style=\"background:rgba(0,0,0,0.06);padding:2px 5px;border-radius:4px;font-family:'Courier New',monospace;font-size:13px;\">LIST-EXTENDED<\/code> incompatibilities that caused subtle bugs in older clients. Most major cloud providers (Gmail, Outlook) have been IMAP4rev2-compatible in practice for years, even before the RFC was finalized. For practical purposes, target port 993 + TLS and you will be RFC 9051 compliant by default.<\/pee><!-- [et_pb_line_break_holder] -->    <\/div><!-- [et_pb_line_break_holder] -->  <\/div><!-- [et_pb_line_break_holder] --><\/div>[\/et_pb_code][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.27.0&#8243; background_color=&#8221;transparent&#8221; custom_padding=&#8221;0px||0px||false|false&#8221; da_disable_devices=&#8221;off|off|off&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221; da_is_popup=&#8221;off&#8221; da_exit_intent=&#8221;off&#8221; da_has_close=&#8221;on&#8221; da_alt_close=&#8221;off&#8221; da_dark_close=&#8221;off&#8221; da_not_modal=&#8221;on&#8221; da_is_singular=&#8221;off&#8221; da_with_loader=&#8221;off&#8221; da_has_shadow=&#8221;on&#8221;][et_pb_row _builder_version=&#8221;4.27.0&#8243; max_width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.27.0&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_code _builder_version=&#8221;4.27.4&#8243; hover_enabled=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221; sticky_enabled=&#8221;0&#8243;]<!DOCTYPE html><!-- [et_pb_line_break_holder] --><html lang=\"en\"><!-- [et_pb_line_break_holder] --><head><!-- [et_pb_line_break_holder] --><meta charset=\"UTF-8\"><!-- [et_pb_line_break_holder] --><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><!-- [et_pb_line_break_holder] --><title>Unipile &#8211; IMAP Host &#038; Port Table<\/title><!-- [et_pb_line_break_holder] --><link href=\"https:\/\/fonts.googleapis.com\/css2?family=Inter:wght@400;500;600;700&#038;family=Poppins:wght@700;800&#038;display=swap\" rel=\"stylesheet\"><!-- [et_pb_line_break_holder] --><style><!-- [et_pb_line_break_holder] -->#upl-imap-table,<!-- [et_pb_line_break_holder] -->#upl-imap-table *,<!-- [et_pb_line_break_holder] -->#upl-imap-table *::before,<!-- [et_pb_line_break_holder] -->#upl-imap-table *::after {<!-- [et_pb_line_break_holder] -->  margin: 0 !important;<!-- [et_pb_line_break_holder] -->  padding: 0 !important;<!-- [et_pb_line_break_holder] -->  box-sizing: border-box !important;<!-- [et_pb_line_break_holder] -->  border: none !important;<!-- [et_pb_line_break_holder] -->  outline: none !important;<!-- [et_pb_line_break_holder] -->  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.5 !important;<!-- [et_pb_line_break_holder] -->  letter-spacing: normal !important;<!-- [et_pb_line_break_holder] -->  text-transform: none !important;<!-- [et_pb_line_break_holder] -->  text-decoration: none !important;<!-- [et_pb_line_break_holder] -->  list-style: none !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-table.upl-imap-table-wrapper {<!-- [et_pb_line_break_holder] -->  display: block !important;<!-- [et_pb_line_break_holder] -->  padding: 70px 24px !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-table.upl-imap-table-wrapper .ht-container {<!-- [et_pb_line_break_holder] -->  max-width: 1100px !important;<!-- [et_pb_line_break_holder] -->  margin: 0 auto !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-table.upl-imap-table-wrapper .ht-badge {<!-- [et_pb_line_break_holder] -->  display: inline-flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 8px !important;<!-- [et_pb_line_break_holder] -->  background: rgba(59, 185, 139, 0.12) !important;<!-- [et_pb_line_break_holder] -->  color: #2aaa7e !important;<!-- [et_pb_line_break_holder] -->  padding: 6px 14px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 20px !important;<!-- [et_pb_line_break_holder] -->  font-size: 12px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  text-transform: uppercase !important;<!-- [et_pb_line_break_holder] -->  letter-spacing: 0.5px !important;<!-- [et_pb_line_break_holder] -->  width: fit-content !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 16px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-table.upl-imap-table-wrapper .ht-badge-dot {<!-- [et_pb_line_break_holder] -->  width: 7px !important;<!-- [et_pb_line_break_holder] -->  height: 7px !important;<!-- [et_pb_line_break_holder] -->  background: #3BB98B !important;<!-- [et_pb_line_break_holder] -->  border-radius: 50% !important;<!-- [et_pb_line_break_holder] -->  flex-shrink: 0 !important;<!-- [et_pb_line_break_holder] -->  display: inline-block !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-table.upl-imap-table-wrapper h2 {<!-- [et_pb_line_break_holder] -->  font-family: 'Poppins', sans-serif !important;<!-- [et_pb_line_break_holder] -->  font-size: 35px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.2 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 16px !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-table.upl-imap-table-wrapper .ht-intro {<!-- [et_pb_line_break_holder] -->  font-size: 16px !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.78 !important;<!-- [et_pb_line_break_holder] -->  color: #383838 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 32px !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-table.upl-imap-table-wrapper .ht-intro a {<!-- [et_pb_line_break_holder] -->  color: #2aaa7e !important;<!-- [et_pb_line_break_holder] -->  text-decoration: underline !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->\/* Desktop table *\/<!-- [et_pb_line_break_holder] -->#upl-imap-table.upl-imap-table-wrapper .ht-table-wrap {<!-- [et_pb_line_break_holder] -->  overflow-x: auto !important;<!-- [et_pb_line_break_holder] -->  border-radius: 16px !important;<!-- [et_pb_line_break_holder] -->  border: 1px solid #e5e7eb !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 24px !important;<!-- [et_pb_line_break_holder] -->  background: #ffffff !important;<!-- [et_pb_line_break_holder] -->  -webkit-overflow-scrolling: touch !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-table.upl-imap-table-wrapper table {<!-- [et_pb_line_break_holder] -->  width: 100% !important;<!-- [et_pb_line_break_holder] -->  border-collapse: collapse !important;<!-- [et_pb_line_break_holder] -->  background: #ffffff !important;<!-- [et_pb_line_break_holder] -->  border-radius: 16px !important;<!-- [et_pb_line_break_holder] -->  overflow: hidden !important;<!-- [et_pb_line_break_holder] -->  min-width: 880px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-table.upl-imap-table-wrapper thead tr {<!-- [et_pb_line_break_holder] -->  background: #0f2736 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-table.upl-imap-table-wrapper thead th {<!-- [et_pb_line_break_holder] -->  padding: 14px 18px !important;<!-- [et_pb_line_break_holder] -->  text-align: left !important;<!-- [et_pb_line_break_holder] -->  font-size: 12px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  color: rgba(255,255,255,0.9) !important;<!-- [et_pb_line_break_holder] -->  text-transform: uppercase !important;<!-- [et_pb_line_break_holder] -->  letter-spacing: 0.5px !important;<!-- [et_pb_line_break_holder] -->  white-space: nowrap !important;<!-- [et_pb_line_break_holder] -->  background: #0f2736 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-table.upl-imap-table-wrapper tbody tr {<!-- [et_pb_line_break_holder] -->  border-bottom: 1px solid #f0f2f5 !important;<!-- [et_pb_line_break_holder] -->  transition: background 0.15s !important;<!-- [et_pb_line_break_holder] -->  background: #ffffff !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-table.upl-imap-table-wrapper tbody tr:last-child {<!-- [et_pb_line_break_holder] -->  border-bottom: none !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-table.upl-imap-table-wrapper tbody tr:hover {<!-- [et_pb_line_break_holder] -->  background: #f8fafc !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-table.upl-imap-table-wrapper tbody td {<!-- [et_pb_line_break_holder] -->  padding: 14px 18px !important;<!-- [et_pb_line_break_holder] -->  font-size: 14px !important;<!-- [et_pb_line_break_holder] -->  color: #383838 !important;<!-- [et_pb_line_break_holder] -->  vertical-align: middle !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-table.upl-imap-table-wrapper .td-provider {<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  white-space: nowrap !important;<!-- [et_pb_line_break_holder] -->  display: flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 10px !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-table.upl-imap-table-wrapper .td-provider img {<!-- [et_pb_line_break_holder] -->  width: 22px !important;<!-- [et_pb_line_break_holder] -->  height: 22px !important;<!-- [et_pb_line_break_holder] -->  flex-shrink: 0 !important;<!-- [et_pb_line_break_holder] -->  display: inline-block !important;<!-- [et_pb_line_break_holder] -->  object-fit: contain !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-table.upl-imap-table-wrapper .provider-icon-fallback {<!-- [et_pb_line_break_holder] -->  width: 22px !important;<!-- [et_pb_line_break_holder] -->  height: 22px !important;<!-- [et_pb_line_break_holder] -->  flex-shrink: 0 !important;<!-- [et_pb_line_break_holder] -->  display: inline-flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  justify-content: center !important;<!-- [et_pb_line_break_holder] -->  background: rgba(15,39,54,0.08) !important;<!-- [et_pb_line_break_holder] -->  border-radius: 5px !important;<!-- [et_pb_line_break_holder] -->  font-size: 11px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-table.upl-imap-table-wrapper .td-host {<!-- [et_pb_line_break_holder] -->  font-family: 'Courier New', monospace !important;<!-- [et_pb_line_break_holder] -->  font-size: 13px !important;<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  background: rgba(15,39,54,0.05) !important;<!-- [et_pb_line_break_holder] -->  padding: 3px 8px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 5px !important;<!-- [et_pb_line_break_holder] -->  white-space: nowrap !important;<!-- [et_pb_line_break_holder] -->  display: inline-block !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-table.upl-imap-table-wrapper .td-port {<!-- [et_pb_line_break_holder] -->  font-family: 'Courier New', monospace !important;<!-- [et_pb_line_break_holder] -->  font-size: 14px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-table.upl-imap-table-wrapper .td-enc-tag {<!-- [et_pb_line_break_holder] -->  display: inline-flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 5px !important;<!-- [et_pb_line_break_holder] -->  padding: 3px 10px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 20px !important;<!-- [et_pb_line_break_holder] -->  font-size: 12px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  white-space: nowrap !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-table.upl-imap-table-wrapper .tag-ssl {<!-- [et_pb_line_break_holder] -->  background: rgba(59, 185, 139, 0.12) !important;<!-- [et_pb_line_break_holder] -->  color: #2aaa7e !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-table.upl-imap-table-wrapper .tag-tls {<!-- [et_pb_line_break_holder] -->  background: rgba(221, 223, 76, 0.18) !important;<!-- [et_pb_line_break_holder] -->  color: #8a8c2e !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-table.upl-imap-table-wrapper .oauth-yes {<!-- [et_pb_line_break_holder] -->  display: inline-flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 5px !important;<!-- [et_pb_line_break_holder] -->  font-size: 13px !important;<!-- [et_pb_line_break_holder] -->  color: #2aaa7e !important;<!-- [et_pb_line_break_holder] -->  font-weight: 600 !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-table.upl-imap-table-wrapper .oauth-partial {<!-- [et_pb_line_break_holder] -->  display: inline-flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 5px !important;<!-- [et_pb_line_break_holder] -->  font-size: 13px !important;<!-- [et_pb_line_break_holder] -->  color: #8a8c2e !important;<!-- [et_pb_line_break_holder] -->  font-weight: 600 !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-table.upl-imap-table-wrapper .oauth-no {<!-- [et_pb_line_break_holder] -->  display: inline-flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 5px !important;<!-- [et_pb_line_break_holder] -->  font-size: 13px !important;<!-- [et_pb_line_break_holder] -->  color: #6b7280 !important;<!-- [et_pb_line_break_holder] -->  font-weight: 600 !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-table.upl-imap-table-wrapper .chk-icon {<!-- [et_pb_line_break_holder] -->  width: 14px !important;<!-- [et_pb_line_break_holder] -->  height: 14px !important;<!-- [et_pb_line_break_holder] -->  stroke-width: 2.5 !important;<!-- [et_pb_line_break_holder] -->  stroke-linecap: round !important;<!-- [et_pb_line_break_holder] -->  stroke-linejoin: round !important;<!-- [et_pb_line_break_holder] -->  fill: none !important;<!-- [et_pb_line_break_holder] -->  flex-shrink: 0 !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-table.upl-imap-table-wrapper .ht-note {<!-- [et_pb_line_break_holder] -->  font-size: 13px !important;<!-- [et_pb_line_break_holder] -->  color: #6b7280 !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.6 !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-table.upl-imap-table-wrapper .ht-note a {<!-- [et_pb_line_break_holder] -->  color: #2aaa7e !important;<!-- [et_pb_line_break_holder] -->  text-decoration: underline !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->\/* Mobile cards container - hidden by default *\/<!-- [et_pb_line_break_holder] -->#upl-imap-table.upl-imap-table-wrapper .ht-mobile-cards {<!-- [et_pb_line_break_holder] -->  display: none !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->\/* Mobile breakpoint - switch to cards layout *\/<!-- [et_pb_line_break_holder] -->@media (max-width: 768px) {<!-- [et_pb_line_break_holder] -->  #upl-imap-table.upl-imap-table-wrapper .ht-table-wrap {<!-- [et_pb_line_break_holder] -->    display: none !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-table.upl-imap-table-wrapper .ht-mobile-cards {<!-- [et_pb_line_break_holder] -->    display: flex !important;<!-- [et_pb_line_break_holder] -->    flex-direction: column !important;<!-- [et_pb_line_break_holder] -->    gap: 14px !important;<!-- [et_pb_line_break_holder] -->    margin-bottom: 24px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-table.upl-imap-table-wrapper .ht-card {<!-- [et_pb_line_break_holder] -->    background: #ffffff !important;<!-- [et_pb_line_break_holder] -->    border: 1px solid #e5e7eb !important;<!-- [et_pb_line_break_holder] -->    border-radius: 14px !important;<!-- [et_pb_line_break_holder] -->    padding: 18px !important;<!-- [et_pb_line_break_holder] -->    display: flex !important;<!-- [et_pb_line_break_holder] -->    flex-direction: column !important;<!-- [et_pb_line_break_holder] -->    gap: 12px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-table.upl-imap-table-wrapper .ht-card-header {<!-- [et_pb_line_break_holder] -->    display: flex !important;<!-- [et_pb_line_break_holder] -->    align-items: center !important;<!-- [et_pb_line_break_holder] -->    gap: 10px !important;<!-- [et_pb_line_break_holder] -->    padding-bottom: 12px !important;<!-- [et_pb_line_break_holder] -->    border-bottom: 1px solid #f0f2f5 !important;<!-- [et_pb_line_break_holder] -->    background: transparent !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-table.upl-imap-table-wrapper .ht-card-header img {<!-- [et_pb_line_break_holder] -->    width: 24px !important;<!-- [et_pb_line_break_holder] -->    height: 24px !important;<!-- [et_pb_line_break_holder] -->    flex-shrink: 0 !important;<!-- [et_pb_line_break_holder] -->    object-fit: contain !important;<!-- [et_pb_line_break_holder] -->    background: transparent !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-table.upl-imap-table-wrapper .ht-card-header .provider-icon-fallback {<!-- [et_pb_line_break_holder] -->    width: 24px !important;<!-- [et_pb_line_break_holder] -->    height: 24px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-table.upl-imap-table-wrapper .ht-card-title {<!-- [et_pb_line_break_holder] -->    font-size: 16px !important;<!-- [et_pb_line_break_holder] -->    font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->    color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->    background: transparent !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-table.upl-imap-table-wrapper .ht-card-row {<!-- [et_pb_line_break_holder] -->    display: flex !important;<!-- [et_pb_line_break_holder] -->    flex-direction: column !important;<!-- [et_pb_line_break_holder] -->    gap: 4px !important;<!-- [et_pb_line_break_holder] -->    background: transparent !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-table.upl-imap-table-wrapper .ht-card-row-inline {<!-- [et_pb_line_break_holder] -->    display: flex !important;<!-- [et_pb_line_break_holder] -->    align-items: center !important;<!-- [et_pb_line_break_holder] -->    justify-content: space-between !important;<!-- [et_pb_line_break_holder] -->    gap: 12px !important;<!-- [et_pb_line_break_holder] -->    background: transparent !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-table.upl-imap-table-wrapper .ht-card-label {<!-- [et_pb_line_break_holder] -->    font-size: 11px !important;<!-- [et_pb_line_break_holder] -->    font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->    color: #6b7280 !important;<!-- [et_pb_line_break_holder] -->    text-transform: uppercase !important;<!-- [et_pb_line_break_holder] -->    letter-spacing: 0.5px !important;<!-- [et_pb_line_break_holder] -->    background: transparent !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-table.upl-imap-table-wrapper .ht-card-value {<!-- [et_pb_line_break_holder] -->    font-size: 14px !important;<!-- [et_pb_line_break_holder] -->    color: #383838 !important;<!-- [et_pb_line_break_holder] -->    background: transparent !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-table.upl-imap-table-wrapper .ht-card-notes {<!-- [et_pb_line_break_holder] -->    font-size: 13px !important;<!-- [et_pb_line_break_holder] -->    color: #6b7280 !important;<!-- [et_pb_line_break_holder] -->    line-height: 1.5 !important;<!-- [et_pb_line_break_holder] -->    padding-top: 8px !important;<!-- [et_pb_line_break_holder] -->    border-top: 1px solid #f0f2f5 !important;<!-- [et_pb_line_break_holder] -->    background: transparent !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->@media (max-width: 900px) {<!-- [et_pb_line_break_holder] -->  #upl-imap-table.upl-imap-table-wrapper {<!-- [et_pb_line_break_holder] -->    padding: 50px 20px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-table.upl-imap-table-wrapper h2 {<!-- [et_pb_line_break_holder] -->    font-size: 28px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->@media (max-width: 600px) {<!-- [et_pb_line_break_holder] -->  #upl-imap-table.upl-imap-table-wrapper {<!-- [et_pb_line_break_holder] -->    padding: 40px 16px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-table.upl-imap-table-wrapper h2 {<!-- [et_pb_line_break_holder] -->    font-size: 22px !important;<!-- [et_pb_line_break_holder] -->    line-height: 1.3 !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-table.upl-imap-table-wrapper .ht-intro {<!-- [et_pb_line_break_holder] -->    font-size: 15px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->@media (max-width: 400px) {<!-- [et_pb_line_break_holder] -->  #upl-imap-table.upl-imap-table-wrapper {<!-- [et_pb_line_break_holder] -->    padding: 36px 14px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-table.upl-imap-table-wrapper h2 {<!-- [et_pb_line_break_holder] -->    font-size: 20px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-table.upl-imap-table-wrapper .ht-card {<!-- [et_pb_line_break_holder] -->    padding: 16px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><\/style><!-- [et_pb_line_break_holder] --><\/head><!-- [et_pb_line_break_holder] --><body><!-- [et_pb_line_break_holder] --><div id=\"upl-imap-table\" class=\"upl-imap-table-wrapper\"><!-- [et_pb_line_break_holder] -->  <div class=\"ht-container\"><!-- [et_pb_line_break_holder] -->    <span id=\"imap-host-table\" style=\"display:block;position:relative;top:-80px;visibility:hidden;\"><\/span><!-- [et_pb_line_break_holder] -->    <div class=\"ht-badge\"><span class=\"ht-badge-dot\"><\/span><span>Reference Table<\/span><\/div><!-- [et_pb_line_break_holder] -->    <h2>Host and port settings table &#8211; Gmail, Outlook, Yahoo, iCloud, Zoho, Fastmail, AOL, ProtonMail Bridge<\/h2><!-- [et_pb_line_break_holder] -->    <pee class=\"ht-intro\">The table below lists the correct IMAP server connection settings for the most widely used email providers. All values have been verified against each provider&#8217;s official documentation as of May 2026. Use this as your quick-reference when configuring an IMAP client or building an <a href=\"https:\/\/www.unipile.com\/the-developers-guide-to-imap-api-solution\/\">IMAP API integration<\/a>.<\/pee><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    <!-- DESKTOP TABLE --><!-- [et_pb_line_break_holder] -->    <div class=\"ht-table-wrap\"><!-- [et_pb_line_break_holder] -->      <table><!-- [et_pb_line_break_holder] -->        <thead><!-- [et_pb_line_break_holder] -->          <tr><!-- [et_pb_line_break_holder] -->            <th>Provider<\/th><!-- [et_pb_line_break_holder] -->            <th>IMAP Host<\/th><!-- [et_pb_line_break_holder] -->            <th>Port<\/th><!-- [et_pb_line_break_holder] -->            <th>Encryption<\/th><!-- [et_pb_line_break_holder] -->            <th>OAuth 2.0 (XOAUTH2)<\/th><!-- [et_pb_line_break_holder] -->            <th>Notes<\/th><!-- [et_pb_line_break_holder] -->          <\/tr><!-- [et_pb_line_break_holder] -->        <\/thead><!-- [et_pb_line_break_holder] -->        <tbody><!-- [et_pb_line_break_holder] -->          <tr><!-- [et_pb_line_break_holder] -->            <td><div class=\"td-provider\"><img decoding=\"async\" src=\"https:\/\/www.unipile.com\/wp-content\/uploads\/2024\/02\/gmail-3.svg\" alt=\"Gmail logo\" width=\"22\" height=\"22\"><span>Gmail<\/span><\/div><\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"td-host\">imap.gmail.com<\/span><\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"td-port\">993<\/span><\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"td-enc-tag tag-ssl\"><span>SSL\/TLS<\/span><\/span><\/td><!-- [et_pb_line_break_holder] -->            <td><div class=\"oauth-yes\"><svg class=\"chk-icon\" style=\"stroke:#3BB98B;\" viewBox=\"0 0 24 24\"><polyline points=\"20 6 9 17 4 12\"\/><\/svg><span>Yes (required for new apps)<\/span><\/div><\/td><!-- [et_pb_line_break_holder] -->            <td>App passwords work but OAuth is strongly preferred. Enable IMAP in Gmail settings first.<\/td><!-- [et_pb_line_break_holder] -->          <\/tr><!-- [et_pb_line_break_holder] -->          <tr><!-- [et_pb_line_break_holder] -->            <td><div class=\"td-provider\"><img decoding=\"async\" src=\"https:\/\/www.unipile.com\/wp-content\/uploads\/2024\/02\/outlook-2.svg\" alt=\"Outlook logo\" width=\"22\" height=\"22\"><span>Outlook \/ Microsoft 365<\/span><\/div><\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"td-host\">outlook.office365.com<\/span><\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"td-port\">993<\/span><\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"td-enc-tag tag-ssl\"><span>SSL\/TLS<\/span><\/span><\/td><!-- [et_pb_line_break_holder] -->            <td><div class=\"oauth-yes\"><svg class=\"chk-icon\" style=\"stroke:#3BB98B;\" viewBox=\"0 0 24 24\"><polyline points=\"20 6 9 17 4 12\"\/><\/svg><span>Yes (Basic Auth deprecated Dec 2026)<\/span><\/div><\/td><!-- [et_pb_line_break_holder] -->            <td>Basic Auth end-of-life December 2026 for all tenants. Migrate to OAuth now.<\/td><!-- [et_pb_line_break_holder] -->          <\/tr><!-- [et_pb_line_break_holder] -->          <tr><!-- [et_pb_line_break_holder] -->            <td><div class=\"td-provider\"><span class=\"provider-icon-fallback\">Y!<\/span><span>Yahoo Mail<\/span><\/div><\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"td-host\">imap.mail.yahoo.com<\/span><\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"td-port\">993<\/span><\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"td-enc-tag tag-ssl\"><span>SSL\/TLS<\/span><\/span><\/td><!-- [et_pb_line_break_holder] -->            <td><div class=\"oauth-yes\"><svg class=\"chk-icon\" style=\"stroke:#3BB98B;\" viewBox=\"0 0 24 24\"><polyline points=\"20 6 9 17 4 12\"\/><\/svg><span>Yes<\/span><\/div><\/td><!-- [et_pb_line_break_holder] -->            <td>App password required if 2FA is enabled. OAuth via Yahoo&#8217;s developer portal.<\/td><!-- [et_pb_line_break_holder] -->          <\/tr><!-- [et_pb_line_break_holder] -->          <tr><!-- [et_pb_line_break_holder] -->            <td><div class=\"td-provider\"><span class=\"provider-icon-fallback\">iC<\/span><span>iCloud Mail<\/span><\/div><\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"td-host\">imap.mail.me.com<\/span><\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"td-port\">993<\/span><\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"td-enc-tag tag-ssl\"><span>SSL\/TLS<\/span><\/span><\/td><!-- [et_pb_line_break_holder] -->            <td><div class=\"oauth-no\"><svg class=\"chk-icon\" style=\"stroke:#6b7280;\" viewBox=\"0 0 24 24\"><line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"\/><line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"\/><\/svg><span>No (app-specific password only)<\/span><\/div><\/td><!-- [et_pb_line_break_holder] -->            <td>Apple requires an app-specific password from appleid.apple.com. No OAuth XOAUTH2 support.<\/td><!-- [et_pb_line_break_holder] -->          <\/tr><!-- [et_pb_line_break_holder] -->          <tr><!-- [et_pb_line_break_holder] -->            <td><div class=\"td-provider\"><span class=\"provider-icon-fallback\">Zo<\/span><span>Zoho Mail<\/span><\/div><\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"td-host\">imap.zoho.com<\/span><\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"td-port\">993<\/span><\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"td-enc-tag tag-ssl\"><span>SSL\/TLS<\/span><\/span><\/td><!-- [et_pb_line_break_holder] -->            <td><div class=\"oauth-yes\"><svg class=\"chk-icon\" style=\"stroke:#3BB98B;\" viewBox=\"0 0 24 24\"><polyline points=\"20 6 9 17 4 12\"\/><\/svg><span>Yes<\/span><\/div><\/td><!-- [et_pb_line_break_holder] -->            <td>OAuth via Zoho Accounts API. IMAP must be enabled per mailbox in Zoho Mail settings.<\/td><!-- [et_pb_line_break_holder] -->          <\/tr><!-- [et_pb_line_break_holder] -->          <tr><!-- [et_pb_line_break_holder] -->            <td><div class=\"td-provider\"><span class=\"provider-icon-fallback\">Fm<\/span><span>Fastmail<\/span><\/div><\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"td-host\">imap.fastmail.com<\/span><\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"td-port\">993<\/span><\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"td-enc-tag tag-ssl\"><span>SSL\/TLS<\/span><\/span><\/td><!-- [et_pb_line_break_holder] -->            <td><div class=\"oauth-yes\"><svg class=\"chk-icon\" style=\"stroke:#3BB98B;\" viewBox=\"0 0 24 24\"><polyline points=\"20 6 9 17 4 12\"\/><\/svg><span>Yes (JMAP preferred)<\/span><\/div><\/td><!-- [et_pb_line_break_holder] -->            <td>Fastmail natively supports JMAP (faster than IMAP) but IMAP is fully supported. App passwords available.<\/td><!-- [et_pb_line_break_holder] -->          <\/tr><!-- [et_pb_line_break_holder] -->          <tr><!-- [et_pb_line_break_holder] -->            <td><div class=\"td-provider\"><span class=\"provider-icon-fallback\">AOL<\/span><span>AOL Mail<\/span><\/div><\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"td-host\">imap.aol.com<\/span><\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"td-port\">993<\/span><\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"td-enc-tag tag-ssl\"><span>SSL\/TLS<\/span><\/span><\/td><!-- [et_pb_line_break_holder] -->            <td><div class=\"oauth-yes\"><svg class=\"chk-icon\" style=\"stroke:#3BB98B;\" viewBox=\"0 0 24 24\"><polyline points=\"20 6 9 17 4 12\"\/><\/svg><span>Yes<\/span><\/div><\/td><!-- [et_pb_line_break_holder] -->            <td>Now part of Yahoo Inc. App password required if 2FA enabled. OAuth via Yahoo&#8217;s developer portal.<\/td><!-- [et_pb_line_break_holder] -->          <\/tr><!-- [et_pb_line_break_holder] -->          <tr><!-- [et_pb_line_break_holder] -->            <td><div class=\"td-provider\"><span class=\"provider-icon-fallback\">Pr<\/span><span>ProtonMail Bridge<\/span><\/div><\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"td-host\">127.0.0.1<\/span><\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"td-port\">1143<\/span><\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"td-enc-tag tag-tls\"><span>STARTTLS<\/span><\/span><\/td><!-- [et_pb_line_break_holder] -->            <td><div class=\"oauth-no\"><svg class=\"chk-icon\" style=\"stroke:#6b7280;\" viewBox=\"0 0 24 24\"><line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"\/><line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"\/><\/svg><span>No (Bridge token auth)<\/span><\/div><\/td><!-- [et_pb_line_break_holder] -->            <td>ProtonMail Bridge runs locally and exposes a local IMAP server. Not suitable for server-side integrations.<\/td><!-- [et_pb_line_break_holder] -->          <\/tr><!-- [et_pb_line_break_holder] -->          <tr><!-- [et_pb_line_break_holder] -->            <td><div class=\"td-provider\"><span class=\"provider-icon-fallback\">G<\/span><span>Generic IMAP<\/span><\/div><\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"td-host\">your-mail-server.com<\/span><\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"td-port\">993 \/ 143<\/span><\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"td-enc-tag tag-ssl\"><span>SSL\/TLS<\/span><\/span> <span class=\"td-enc-tag tag-tls\" style=\"margin-left:4px;\"><span>STARTTLS<\/span><\/span><\/td><!-- [et_pb_line_break_holder] -->            <td><div class=\"oauth-partial\"><svg class=\"chk-icon\" style=\"stroke:#8a8c2e;\" viewBox=\"0 0 24 24\"><line x1=\"12\" y1=\"9\" x2=\"12\" y2=\"13\"\/><line x1=\"12\" y1=\"17\" x2=\"12.01\" y2=\"17\"\/><circle cx=\"12\" cy=\"12\" r=\"10\"\/><\/svg><span>Varies (check server config)<\/span><\/div><\/td><!-- [et_pb_line_break_holder] -->            <td>Dovecot, Postfix, Zimbra, Courier. Check your server&#8217;s CAPABILITY response for supported auth mechanisms.<\/td><!-- [et_pb_line_break_holder] -->          <\/tr><!-- [et_pb_line_break_holder] -->        <\/tbody><!-- [et_pb_line_break_holder] -->      <\/table><!-- [et_pb_line_break_holder] -->    <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    <!-- MOBILE CARDS --><!-- [et_pb_line_break_holder] -->    <div class=\"ht-mobile-cards\"><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->      <div class=\"ht-card\"><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-header\"><!-- [et_pb_line_break_holder] -->          <img decoding=\"async\" src=\"https:\/\/www.unipile.com\/wp-content\/uploads\/2024\/02\/gmail-3.svg\" alt=\"Gmail logo\" width=\"24\" height=\"24\"><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-title\">Gmail<\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-row\"><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-label\">IMAP Host<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-value\"><span class=\"td-host\">imap.gmail.com<\/span><\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-row-inline\"><!-- [et_pb_line_break_holder] -->          <div class=\"ht-card-row\"><!-- [et_pb_line_break_holder] -->            <span class=\"ht-card-label\">Port<\/span><!-- [et_pb_line_break_holder] -->            <span class=\"ht-card-value\"><span class=\"td-port\">993<\/span><\/span><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->          <div class=\"ht-card-row\"><!-- [et_pb_line_break_holder] -->            <span class=\"ht-card-label\">Encryption<\/span><!-- [et_pb_line_break_holder] -->            <span class=\"ht-card-value\"><span class=\"td-enc-tag tag-ssl\"><span>SSL\/TLS<\/span><\/span><\/span><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-row\"><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-label\">OAuth 2.0<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-value\"><div class=\"oauth-yes\"><svg class=\"chk-icon\" style=\"stroke:#3BB98B;\" viewBox=\"0 0 24 24\"><polyline points=\"20 6 9 17 4 12\"\/><\/svg><span>Yes (required for new apps)<\/span><\/div><\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-notes\">App passwords work but OAuth is strongly preferred. Enable IMAP in Gmail settings first.<\/div><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->      <div class=\"ht-card\"><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-header\"><!-- [et_pb_line_break_holder] -->          <img decoding=\"async\" src=\"https:\/\/www.unipile.com\/wp-content\/uploads\/2024\/02\/outlook-2.svg\" alt=\"Outlook logo\" width=\"24\" height=\"24\"><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-title\">Outlook \/ Microsoft 365<\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-row\"><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-label\">IMAP Host<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-value\"><span class=\"td-host\">outlook.office365.com<\/span><\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-row-inline\"><!-- [et_pb_line_break_holder] -->          <div class=\"ht-card-row\"><!-- [et_pb_line_break_holder] -->            <span class=\"ht-card-label\">Port<\/span><!-- [et_pb_line_break_holder] -->            <span class=\"ht-card-value\"><span class=\"td-port\">993<\/span><\/span><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->          <div class=\"ht-card-row\"><!-- [et_pb_line_break_holder] -->            <span class=\"ht-card-label\">Encryption<\/span><!-- [et_pb_line_break_holder] -->            <span class=\"ht-card-value\"><span class=\"td-enc-tag tag-ssl\"><span>SSL\/TLS<\/span><\/span><\/span><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-row\"><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-label\">OAuth 2.0<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-value\"><div class=\"oauth-yes\"><svg class=\"chk-icon\" style=\"stroke:#3BB98B;\" viewBox=\"0 0 24 24\"><polyline points=\"20 6 9 17 4 12\"\/><\/svg><span>Yes (Basic Auth deprecated Dec 2026)<\/span><\/div><\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-notes\">Basic Auth end-of-life December 2026 for all tenants. Migrate to OAuth now.<\/div><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->      <div class=\"ht-card\"><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-header\"><!-- [et_pb_line_break_holder] -->          <span class=\"provider-icon-fallback\">Y!<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-title\">Yahoo Mail<\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-row\"><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-label\">IMAP Host<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-value\"><span class=\"td-host\">imap.mail.yahoo.com<\/span><\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-row-inline\"><!-- [et_pb_line_break_holder] -->          <div class=\"ht-card-row\"><!-- [et_pb_line_break_holder] -->            <span class=\"ht-card-label\">Port<\/span><!-- [et_pb_line_break_holder] -->            <span class=\"ht-card-value\"><span class=\"td-port\">993<\/span><\/span><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->          <div class=\"ht-card-row\"><!-- [et_pb_line_break_holder] -->            <span class=\"ht-card-label\">Encryption<\/span><!-- [et_pb_line_break_holder] -->            <span class=\"ht-card-value\"><span class=\"td-enc-tag tag-ssl\"><span>SSL\/TLS<\/span><\/span><\/span><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-row\"><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-label\">OAuth 2.0<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-value\"><div class=\"oauth-yes\"><svg class=\"chk-icon\" style=\"stroke:#3BB98B;\" viewBox=\"0 0 24 24\"><polyline points=\"20 6 9 17 4 12\"\/><\/svg><span>Yes<\/span><\/div><\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-notes\">App password required if 2FA is enabled. OAuth via Yahoo&#8217;s developer portal.<\/div><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->      <div class=\"ht-card\"><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-header\"><!-- [et_pb_line_break_holder] -->          <span class=\"provider-icon-fallback\">iC<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-title\">iCloud Mail<\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-row\"><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-label\">IMAP Host<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-value\"><span class=\"td-host\">imap.mail.me.com<\/span><\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-row-inline\"><!-- [et_pb_line_break_holder] -->          <div class=\"ht-card-row\"><!-- [et_pb_line_break_holder] -->            <span class=\"ht-card-label\">Port<\/span><!-- [et_pb_line_break_holder] -->            <span class=\"ht-card-value\"><span class=\"td-port\">993<\/span><\/span><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->          <div class=\"ht-card-row\"><!-- [et_pb_line_break_holder] -->            <span class=\"ht-card-label\">Encryption<\/span><!-- [et_pb_line_break_holder] -->            <span class=\"ht-card-value\"><span class=\"td-enc-tag tag-ssl\"><span>SSL\/TLS<\/span><\/span><\/span><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-row\"><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-label\">OAuth 2.0<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-value\"><div class=\"oauth-no\"><svg class=\"chk-icon\" style=\"stroke:#6b7280;\" viewBox=\"0 0 24 24\"><line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"\/><line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"\/><\/svg><span>No (app-specific password only)<\/span><\/div><\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-notes\">Apple requires an app-specific password from appleid.apple.com. No OAuth XOAUTH2 support.<\/div><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->      <div class=\"ht-card\"><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-header\"><!-- [et_pb_line_break_holder] -->          <span class=\"provider-icon-fallback\">Zo<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-title\">Zoho Mail<\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-row\"><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-label\">IMAP Host<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-value\"><span class=\"td-host\">imap.zoho.com<\/span><\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-row-inline\"><!-- [et_pb_line_break_holder] -->          <div class=\"ht-card-row\"><!-- [et_pb_line_break_holder] -->            <span class=\"ht-card-label\">Port<\/span><!-- [et_pb_line_break_holder] -->            <span class=\"ht-card-value\"><span class=\"td-port\">993<\/span><\/span><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->          <div class=\"ht-card-row\"><!-- [et_pb_line_break_holder] -->            <span class=\"ht-card-label\">Encryption<\/span><!-- [et_pb_line_break_holder] -->            <span class=\"ht-card-value\"><span class=\"td-enc-tag tag-ssl\"><span>SSL\/TLS<\/span><\/span><\/span><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-row\"><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-label\">OAuth 2.0<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-value\"><div class=\"oauth-yes\"><svg class=\"chk-icon\" style=\"stroke:#3BB98B;\" viewBox=\"0 0 24 24\"><polyline points=\"20 6 9 17 4 12\"\/><\/svg><span>Yes<\/span><\/div><\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-notes\">OAuth via Zoho Accounts API. IMAP must be enabled per mailbox in Zoho Mail settings.<\/div><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->      <div class=\"ht-card\"><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-header\"><!-- [et_pb_line_break_holder] -->          <span class=\"provider-icon-fallback\">Fm<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-title\">Fastmail<\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-row\"><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-label\">IMAP Host<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-value\"><span class=\"td-host\">imap.fastmail.com<\/span><\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-row-inline\"><!-- [et_pb_line_break_holder] -->          <div class=\"ht-card-row\"><!-- [et_pb_line_break_holder] -->            <span class=\"ht-card-label\">Port<\/span><!-- [et_pb_line_break_holder] -->            <span class=\"ht-card-value\"><span class=\"td-port\">993<\/span><\/span><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->          <div class=\"ht-card-row\"><!-- [et_pb_line_break_holder] -->            <span class=\"ht-card-label\">Encryption<\/span><!-- [et_pb_line_break_holder] -->            <span class=\"ht-card-value\"><span class=\"td-enc-tag tag-ssl\"><span>SSL\/TLS<\/span><\/span><\/span><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-row\"><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-label\">OAuth 2.0<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-value\"><div class=\"oauth-yes\"><svg class=\"chk-icon\" style=\"stroke:#3BB98B;\" viewBox=\"0 0 24 24\"><polyline points=\"20 6 9 17 4 12\"\/><\/svg><span>Yes (JMAP preferred)<\/span><\/div><\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-notes\">Fastmail natively supports JMAP (faster than IMAP) but IMAP is fully supported. App passwords available.<\/div><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->      <div class=\"ht-card\"><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-header\"><!-- [et_pb_line_break_holder] -->          <span class=\"provider-icon-fallback\">AOL<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-title\">AOL Mail<\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-row\"><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-label\">IMAP Host<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-value\"><span class=\"td-host\">imap.aol.com<\/span><\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-row-inline\"><!-- [et_pb_line_break_holder] -->          <div class=\"ht-card-row\"><!-- [et_pb_line_break_holder] -->            <span class=\"ht-card-label\">Port<\/span><!-- [et_pb_line_break_holder] -->            <span class=\"ht-card-value\"><span class=\"td-port\">993<\/span><\/span><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->          <div class=\"ht-card-row\"><!-- [et_pb_line_break_holder] -->            <span class=\"ht-card-label\">Encryption<\/span><!-- [et_pb_line_break_holder] -->            <span class=\"ht-card-value\"><span class=\"td-enc-tag tag-ssl\"><span>SSL\/TLS<\/span><\/span><\/span><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-row\"><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-label\">OAuth 2.0<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-value\"><div class=\"oauth-yes\"><svg class=\"chk-icon\" style=\"stroke:#3BB98B;\" viewBox=\"0 0 24 24\"><polyline points=\"20 6 9 17 4 12\"\/><\/svg><span>Yes<\/span><\/div><\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-notes\">Now part of Yahoo Inc. App password required if 2FA enabled. OAuth via Yahoo&#8217;s developer portal.<\/div><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->      <div class=\"ht-card\"><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-header\"><!-- [et_pb_line_break_holder] -->          <span class=\"provider-icon-fallback\">Pr<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-title\">ProtonMail Bridge<\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-row\"><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-label\">IMAP Host<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-value\"><span class=\"td-host\">127.0.0.1<\/span><\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-row-inline\"><!-- [et_pb_line_break_holder] -->          <div class=\"ht-card-row\"><!-- [et_pb_line_break_holder] -->            <span class=\"ht-card-label\">Port<\/span><!-- [et_pb_line_break_holder] -->            <span class=\"ht-card-value\"><span class=\"td-port\">1143<\/span><\/span><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->          <div class=\"ht-card-row\"><!-- [et_pb_line_break_holder] -->            <span class=\"ht-card-label\">Encryption<\/span><!-- [et_pb_line_break_holder] -->            <span class=\"ht-card-value\"><span class=\"td-enc-tag tag-tls\"><span>STARTTLS<\/span><\/span><\/span><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-row\"><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-label\">OAuth 2.0<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-value\"><div class=\"oauth-no\"><svg class=\"chk-icon\" style=\"stroke:#6b7280;\" viewBox=\"0 0 24 24\"><line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"\/><line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"\/><\/svg><span>No (Bridge token auth)<\/span><\/div><\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-notes\">ProtonMail Bridge runs locally and exposes a local IMAP server. Not suitable for server-side integrations.<\/div><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->      <div class=\"ht-card\"><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-header\"><!-- [et_pb_line_break_holder] -->          <span class=\"provider-icon-fallback\">G<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-title\">Generic IMAP<\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-row\"><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-label\">IMAP Host<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-value\"><span class=\"td-host\">your-mail-server.com<\/span><\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-row-inline\"><!-- [et_pb_line_break_holder] -->          <div class=\"ht-card-row\"><!-- [et_pb_line_break_holder] -->            <span class=\"ht-card-label\">Port<\/span><!-- [et_pb_line_break_holder] -->            <span class=\"ht-card-value\"><span class=\"td-port\">993 \/ 143<\/span><\/span><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->          <div class=\"ht-card-row\"><!-- [et_pb_line_break_holder] -->            <span class=\"ht-card-label\">Encryption<\/span><!-- [et_pb_line_break_holder] -->            <span class=\"ht-card-value\"><span class=\"td-enc-tag tag-ssl\"><span>SSL\/TLS<\/span><\/span> <span class=\"td-enc-tag tag-tls\" style=\"margin-left:4px;\"><span>STARTTLS<\/span><\/span><\/span><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-row\"><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-label\">OAuth 2.0<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"ht-card-value\"><div class=\"oauth-partial\"><svg class=\"chk-icon\" style=\"stroke:#8a8c2e;\" viewBox=\"0 0 24 24\"><line x1=\"12\" y1=\"9\" x2=\"12\" y2=\"13\"\/><line x1=\"12\" y1=\"17\" x2=\"12.01\" y2=\"17\"\/><circle cx=\"12\" cy=\"12\" r=\"10\"\/><\/svg><span>Varies (check server config)<\/span><\/div><\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"ht-card-notes\">Dovecot, Postfix, Zimbra, Courier. Check your server&#8217;s CAPABILITY response for supported auth mechanisms.<\/div><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    <pee class=\"ht-note\">Note on ProtonMail: the Bridge architecture means ProtonMail IMAP connections are only viable for single-user desktop setups. For multi-account or server-side integrations, ProtonMail is effectively unsupported via standard IMAP. For Gmail and Outlook at scale, see our dedicated guides on <a href=\"https:\/\/www.unipile.com\/oauth-email-api\/\">OAuth for email APIs<\/a> and <a href=\"https:\/\/www.unipile.com\/microsoft-graph-api-email-integration-guide\/\">Microsoft Graph API Email<\/a>.<\/pee><!-- [et_pb_line_break_holder] -->  <\/div><!-- [et_pb_line_break_holder] --><\/div><!-- [et_pb_line_break_holder] --><\/body><!-- [et_pb_line_break_holder] --><\/html>[\/et_pb_code][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.27.0&#8243; background_color=&#8221;transparent&#8221; custom_padding=&#8221;0px||0px||false|false&#8221; da_disable_devices=&#8221;off|off|off&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221; da_is_popup=&#8221;off&#8221; da_exit_intent=&#8221;off&#8221; da_has_close=&#8221;on&#8221; da_alt_close=&#8221;off&#8221; da_dark_close=&#8221;off&#8221; da_not_modal=&#8221;on&#8221; da_is_singular=&#8221;off&#8221; da_with_loader=&#8221;off&#8221; da_has_shadow=&#8221;on&#8221;][et_pb_row _builder_version=&#8221;4.27.0&#8243; max_width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.27.0&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_code _builder_version=&#8221;4.27.0&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Inter:wght@400;500;600;700&#038;family=Poppins:wght@700;800&#038;display=swap\" rel=\"stylesheet\"><!-- [et_pb_line_break_holder] --><style><!-- [et_pb_line_break_holder] -->#upl-imap-rawconn,<!-- [et_pb_line_break_holder] -->#upl-imap-rawconn *,<!-- [et_pb_line_break_holder] -->#upl-imap-rawconn *::before,<!-- [et_pb_line_break_holder] -->#upl-imap-rawconn *::after {<!-- [et_pb_line_break_holder] -->  margin: 0 !important;<!-- [et_pb_line_break_holder] -->  padding: 0 !important;<!-- [et_pb_line_break_holder] -->  box-sizing: border-box !important;<!-- [et_pb_line_break_holder] -->  border: none !important;<!-- [et_pb_line_break_holder] -->  outline: none !important;<!-- [et_pb_line_break_holder] -->  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.5 !important;<!-- [et_pb_line_break_holder] -->  letter-spacing: normal !important;<!-- [et_pb_line_break_holder] -->  text-transform: none !important;<!-- [et_pb_line_break_holder] -->  text-decoration: none !important;<!-- [et_pb_line_break_holder] -->  list-style: none !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-rawconn.upl-imap-rawconn-wrapper {<!-- [et_pb_line_break_holder] -->  display: block !important;<!-- [et_pb_line_break_holder] -->  padding: 70px 24px !important;<!-- [et_pb_line_break_holder] -->  background: #f4f5f7 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-rawconn.upl-imap-rawconn-wrapper .rc-container {<!-- [et_pb_line_break_holder] -->  max-width: 1100px !important;<!-- [et_pb_line_break_holder] -->  margin: 0 auto !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-rawconn.upl-imap-rawconn-wrapper .rc-badge {<!-- [et_pb_line_break_holder] -->  display: inline-flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 8px !important;<!-- [et_pb_line_break_holder] -->  background: rgba(221, 223, 76, 0.18) !important;<!-- [et_pb_line_break_holder] -->  color: #8a8c2e !important;<!-- [et_pb_line_break_holder] -->  padding: 6px 14px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 20px !important;<!-- [et_pb_line_break_holder] -->  font-size: 12px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  text-transform: uppercase !important;<!-- [et_pb_line_break_holder] -->  letter-spacing: 0.5px !important;<!-- [et_pb_line_break_holder] -->  width: fit-content !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 16px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-rawconn.upl-imap-rawconn-wrapper .rc-badge-dot {<!-- [et_pb_line_break_holder] -->  width: 7px !important;<!-- [et_pb_line_break_holder] -->  height: 7px !important;<!-- [et_pb_line_break_holder] -->  background: #DDDF4C !important;<!-- [et_pb_line_break_holder] -->  border-radius: 50% !important;<!-- [et_pb_line_break_holder] -->  flex-shrink: 0 !important;<!-- [et_pb_line_break_holder] -->  display: inline-block !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-rawconn.upl-imap-rawconn-wrapper h2 {<!-- [et_pb_line_break_holder] -->  font-family: 'Poppins', sans-serif !important;<!-- [et_pb_line_break_holder] -->  font-size: 35px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.2 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 16px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-rawconn.upl-imap-rawconn-wrapper .rc-intro {<!-- [et_pb_line_break_holder] -->  font-size: 16px !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.78 !important;<!-- [et_pb_line_break_holder] -->  color: #383838 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 36px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-rawconn.upl-imap-rawconn-wrapper .rc-tabs {<!-- [et_pb_line_break_holder] -->  display: flex !important;<!-- [et_pb_line_break_holder] -->  gap: 4px !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 0 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-rawconn.upl-imap-rawconn-wrapper .rc-tab {<!-- [et_pb_line_break_holder] -->  padding: 10px 20px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 8px 8px 0 0 !important;<!-- [et_pb_line_break_holder] -->  font-size: 13px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 600 !important;<!-- [et_pb_line_break_holder] -->  cursor: pointer !important;<!-- [et_pb_line_break_holder] -->  color: #6b7280 !important;<!-- [et_pb_line_break_holder] -->  background: #e5e7eb !important;<!-- [et_pb_line_break_holder] -->  transition: all 0.2s !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-rawconn.upl-imap-rawconn-wrapper .rc-tab.active {<!-- [et_pb_line_break_holder] -->  background: #0d1117 !important;<!-- [et_pb_line_break_holder] -->  color: #e6edf3 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-rawconn.upl-imap-rawconn-wrapper .rc-code-block {<!-- [et_pb_line_break_holder] -->  display: none !important;<!-- [et_pb_line_break_holder] -->  border-radius: 0 14px 14px 14px !important;<!-- [et_pb_line_break_holder] -->  overflow: hidden !important;<!-- [et_pb_line_break_holder] -->  background: #0d1117 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 32px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-rawconn.upl-imap-rawconn-wrapper .rc-code-block.active {<!-- [et_pb_line_break_holder] -->  display: block !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-rawconn.upl-imap-rawconn-wrapper .rc-editor-bar {<!-- [et_pb_line_break_holder] -->  background: #161b22 !important;<!-- [et_pb_line_break_holder] -->  padding: 12px 18px !important;<!-- [et_pb_line_break_holder] -->  display: flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 8px !important;<!-- [et_pb_line_break_holder] -->  border-bottom: 1px solid rgba(255,255,255,0.06) !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-rawconn.upl-imap-rawconn-wrapper .rc-dot {<!-- [et_pb_line_break_holder] -->  width: 12px !important;<!-- [et_pb_line_break_holder] -->  height: 12px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 50% !important;<!-- [et_pb_line_break_holder] -->  display: inline-block !important;<!-- [et_pb_line_break_holder] -->  flex-shrink: 0 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-rawconn.upl-imap-rawconn-wrapper .rc-dot-r { background: #ff5f57 !important; }<!-- [et_pb_line_break_holder] -->#upl-imap-rawconn.upl-imap-rawconn-wrapper .rc-dot-y { background: #febc2e !important; }<!-- [et_pb_line_break_holder] -->#upl-imap-rawconn.upl-imap-rawconn-wrapper .rc-dot-g { background: #28c840 !important; }<!-- [et_pb_line_break_holder] -->#upl-imap-rawconn.upl-imap-rawconn-wrapper .rc-filename {<!-- [et_pb_line_break_holder] -->  color: #8b949e !important;<!-- [et_pb_line_break_holder] -->  font-size: 13px !important;<!-- [et_pb_line_break_holder] -->  margin-left: 6px !important;<!-- [et_pb_line_break_holder] -->  font-family: 'Courier New', monospace !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-rawconn.upl-imap-rawconn-wrapper .rc-pre {<!-- [et_pb_line_break_holder] -->  padding: 22px 24px !important;<!-- [et_pb_line_break_holder] -->  font-size: 13px !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.85 !important;<!-- [et_pb_line_break_holder] -->  overflow-x: auto !important;<!-- [et_pb_line_break_holder] -->  background: #0d1117 !important;<!-- [et_pb_line_break_holder] -->  font-family: 'Courier New', monospace !important;<!-- [et_pb_line_break_holder] -->  white-space: pre !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-rawconn.upl-imap-rawconn-wrapper .c { color: #8b949e !important; }<!-- [et_pb_line_break_holder] -->#upl-imap-rawconn.upl-imap-rawconn-wrapper .k { color: #ff7b72 !important; }<!-- [et_pb_line_break_holder] -->#upl-imap-rawconn.upl-imap-rawconn-wrapper .fn { color: #d2a8ff !important; }<!-- [et_pb_line_break_holder] -->#upl-imap-rawconn.upl-imap-rawconn-wrapper .s { color: #a5d6ff !important; }<!-- [et_pb_line_break_holder] -->#upl-imap-rawconn.upl-imap-rawconn-wrapper .n { color: #79c0ff !important; }<!-- [et_pb_line_break_holder] -->#upl-imap-rawconn.upl-imap-rawconn-wrapper .w { color: #e6edf3 !important; }<!-- [et_pb_line_break_holder] -->#upl-imap-rawconn.upl-imap-rawconn-wrapper .rc-body p {<!-- [et_pb_line_break_holder] -->  font-size: 16px !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.78 !important;<!-- [et_pb_line_break_holder] -->  color: #383838 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 16px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-rawconn.upl-imap-rawconn-wrapper .rc-body strong {<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-rawconn.upl-imap-rawconn-wrapper .rc-body a {<!-- [et_pb_line_break_holder] -->  color: #2aaa7e !important;<!-- [et_pb_line_break_holder] -->  text-decoration: underline !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-rawconn.upl-imap-rawconn-wrapper .rc-cta-strip {<!-- [et_pb_line_break_holder] -->  display: flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  justify-content: space-between !important;<!-- [et_pb_line_break_holder] -->  gap: 20px !important;<!-- [et_pb_line_break_holder] -->  background: #ffffff !important;<!-- [et_pb_line_break_holder] -->  border: 1px solid #e5e7eb !important;<!-- [et_pb_line_break_holder] -->  border-radius: 12px !important;<!-- [et_pb_line_break_holder] -->  padding: 20px 24px !important;<!-- [et_pb_line_break_holder] -->  flex-wrap: wrap !important;<!-- [et_pb_line_break_holder] -->  margin-top: 32px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-rawconn.upl-imap-rawconn-wrapper .rc-cta-text {<!-- [et_pb_line_break_holder] -->  font-size: 15px !important;<!-- [et_pb_line_break_holder] -->  color: #383838 !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.6 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-rawconn.upl-imap-rawconn-wrapper .rc-cta-text strong {<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-rawconn.upl-imap-rawconn-wrapper .rc-cta-btn {<!-- [et_pb_line_break_holder] -->  display: inline-flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 8px !important;<!-- [et_pb_line_break_holder] -->  background: #DDDF4C !important;<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  padding: 12px 22px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 8px !important;<!-- [et_pb_line_break_holder] -->  font-size: 14px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 600 !important;<!-- [et_pb_line_break_holder] -->  border: 2px solid #DDDF4C !important;<!-- [et_pb_line_break_holder] -->  cursor: pointer !important;<!-- [et_pb_line_break_holder] -->  white-space: nowrap !important;<!-- [et_pb_line_break_holder] -->  transition: transform 0.2s ease !important;<!-- [et_pb_line_break_holder] -->  text-decoration: none !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-rawconn.upl-imap-rawconn-wrapper .rc-cta-btn:hover {<!-- [et_pb_line_break_holder] -->  transform: translateY(-5px) !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-rawconn.upl-imap-rawconn-wrapper .rc-cta-icon {<!-- [et_pb_line_break_holder] -->  width: 15px !important;<!-- [et_pb_line_break_holder] -->  height: 15px !important;<!-- [et_pb_line_break_holder] -->  stroke: currentColor !important;<!-- [et_pb_line_break_holder] -->  fill: none !important;<!-- [et_pb_line_break_holder] -->  stroke-width: 2.5 !important;<!-- [et_pb_line_break_holder] -->  stroke-linecap: round !important;<!-- [et_pb_line_break_holder] -->  stroke-linejoin: round !important;<!-- [et_pb_line_break_holder] -->  flex-shrink: 0 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->@media (max-width: 900px) {<!-- [et_pb_line_break_holder] -->  #upl-imap-rawconn.upl-imap-rawconn-wrapper {<!-- [et_pb_line_break_holder] -->    padding: 50px 20px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-rawconn.upl-imap-rawconn-wrapper h2 {<!-- [et_pb_line_break_holder] -->    font-size: 28px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->@media (max-width: 600px) {<!-- [et_pb_line_break_holder] -->  #upl-imap-rawconn.upl-imap-rawconn-wrapper {<!-- [et_pb_line_break_holder] -->    padding: 40px 16px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-rawconn.upl-imap-rawconn-wrapper h2 {<!-- [et_pb_line_break_holder] -->    font-size: 26px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-rawconn.upl-imap-rawconn-wrapper .rc-cta-strip {<!-- [et_pb_line_break_holder] -->    flex-direction: column !important;<!-- [et_pb_line_break_holder] -->    align-items: flex-start !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-rawconn.upl-imap-rawconn-wrapper .rc-cta-btn {<!-- [et_pb_line_break_holder] -->    width: 100% !important;<!-- [et_pb_line_break_holder] -->    justify-content: center !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><\/style><!-- [et_pb_line_break_holder] --><div id=\"upl-imap-rawconn\" class=\"upl-imap-rawconn-wrapper\"><!-- [et_pb_line_break_holder] -->  <div class=\"rc-container\"><!-- [et_pb_line_break_holder] -->    <span id=\"imap-raw-connection\" style=\"display:block;position:relative;top:-80px;visibility:hidden;\"><\/span><!-- [et_pb_line_break_holder] -->    <div class=\"rc-badge\"><span class=\"rc-badge-dot\"><\/span><span>Code Example<\/span><\/div><!-- [et_pb_line_break_holder] -->    <h2>Step-by-step: opening a raw IMAP server connection<\/h2><!-- [et_pb_line_break_holder] -->    <pee class=\"rc-intro\">Below are minimal, working examples of how to open an authenticated IMAP server connection using Python&#8217;s built-in <code style=\"background:rgba(0,0,0,0.06);padding:2px 5px;border-radius:4px;font-family:'Courier New',monospace;font-size:13px;\">imaplib<\/code> and Node.js with <code style=\"background:rgba(0,0,0,0.06);padding:2px 5px;border-radius:4px;font-family:'Courier New',monospace;font-size:13px;\">imapflow<\/code>. Both examples connect to Gmail on port 993 using app-password authentication. For OAuth XOAUTH2 see H2 #7 below.<\/pee><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    <div class=\"rc-tabs\"><!-- [et_pb_line_break_holder] -->      <div class=\"rc-tab active\" onclick=\"rcShowTab(this,'rc-py')\"><span>Python (imaplib)<\/span><\/div><!-- [et_pb_line_break_holder] -->      <div class=\"rc-tab\" onclick=\"rcShowTab(this,'rc-node')\"><span>Node.js (imapflow)<\/span><\/div><!-- [et_pb_line_break_holder] -->    <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    <div id=\"rc-py\" class=\"rc-code-block active\"><!-- [et_pb_line_break_holder] -->      <div class=\"rc-editor-bar\"><!-- [et_pb_line_break_holder] -->        <span class=\"rc-dot rc-dot-r\"><\/span><span class=\"rc-dot rc-dot-y\"><\/span><span class=\"rc-dot rc-dot-g\"><\/span><!-- [et_pb_line_break_holder] -->        <span class=\"rc-filename\">imap_connect.py<\/span><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] -->      <div class=\"rc-pre\"><code><span class=\"k\">import<\/span><span class=\"w\"> imaplib<\/span><!-- [et_pb_line_break_holder] --><span class=\"k\">import<\/span><span class=\"w\"> ssl<\/span><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><span class=\"c\"># IMAP server settings<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">IMAP_HOST <\/span><span class=\"k\">=<\/span><span class=\"w\"> <\/span><span class=\"s\">\"imap.gmail.com\"<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">IMAP_PORT <\/span><span class=\"k\">=<\/span><span class=\"w\"> <\/span><span class=\"n\">993<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">USERNAME  <\/span><span class=\"k\">=<\/span><span class=\"w\"> <\/span><span class=\"s\">\"you@gmail.com\"<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">PASSWORD  <\/span><span class=\"k\">=<\/span><span class=\"w\"> <\/span><span class=\"s\">\"your-app-password\"<\/span><span class=\"w\">  <\/span><span class=\"c\"># app password, not your account password<\/span><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><span class=\"c\"># Create SSL context (verify certificates)<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">context <\/span><span class=\"k\">=<\/span><span class=\"w\"> ssl.<\/span><span class=\"fn\">create_default_context<\/span><span class=\"w\">()<\/span><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><span class=\"c\"># Open SSL connection on port 993<\/span><!-- [et_pb_line_break_holder] --><span class=\"k\">with<\/span><span class=\"w\"> imaplib.<\/span><span class=\"fn\">IMAP4_SSL<\/span><span class=\"w\">(IMAP_HOST, IMAP_PORT, ssl_context<\/span><span class=\"k\">=<\/span><span class=\"w\">context) <\/span><span class=\"k\">as<\/span><span class=\"w\"> imap:<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">    <\/span><span class=\"c\"># Authenticate<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">    imap.<\/span><span class=\"fn\">login<\/span><span class=\"w\">(USERNAME, PASSWORD)<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">    <\/span><span class=\"c\"># Select inbox (returns message count)<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">    status, data <\/span><span class=\"k\">=<\/span><span class=\"w\"> imap.<\/span><span class=\"fn\">select<\/span><span class=\"w\">(<\/span><span class=\"s\">\"INBOX\"<\/span><span class=\"w\">)<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">    <\/span><span class=\"fn\">print<\/span><span class=\"w\">(<\/span><span class=\"s\">f\"Inbox has {data[0].decode()} messages\"<\/span><span class=\"w\">)<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">    <\/span><span class=\"c\"># Search for unseen messages<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">    status, msg_ids <\/span><span class=\"k\">=<\/span><span class=\"w\"> imap.<\/span><span class=\"fn\">search<\/span><span class=\"w\">(<\/span><span class=\"s\">None<\/span><span class=\"w\">, <\/span><span class=\"s\">\"UNSEEN\"<\/span><span class=\"w\">)<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">    <\/span><span class=\"fn\">print<\/span><span class=\"w\">(<\/span><span class=\"s\">f\"Unseen: {msg_ids[0].decode()}\"<\/span><span class=\"w\">)<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">    <\/span><span class=\"c\"># Logout (connection closes at end of 'with' block)<\/span><\/code><\/div><!-- [et_pb_line_break_holder] -->    <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    <div id=\"rc-node\" class=\"rc-code-block\"><!-- [et_pb_line_break_holder] -->      <div class=\"rc-editor-bar\"><!-- [et_pb_line_break_holder] -->        <span class=\"rc-dot rc-dot-r\"><\/span><span class=\"rc-dot rc-dot-y\"><\/span><span class=\"rc-dot rc-dot-g\"><\/span><!-- [et_pb_line_break_holder] -->        <span class=\"rc-filename\">imap_connect.mjs<\/span><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] -->      <div class=\"rc-pre\"><code><span class=\"c\">\/\/ npm install imapflow<\/span><!-- [et_pb_line_break_holder] --><span class=\"k\">import<\/span><span class=\"w\"> { ImapFlow } <\/span><span class=\"k\">from<\/span><span class=\"w\"> <\/span><span class=\"s\">'imapflow'<\/span><span class=\"w\">;<\/span><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><span class=\"k\">const<\/span><span class=\"w\"> client <\/span><span class=\"k\">=<\/span><span class=\"w\"> <\/span><span class=\"k\">new<\/span><span class=\"w\"> <\/span><span class=\"fn\">ImapFlow<\/span><span class=\"w\">({<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">  host:   <\/span><span class=\"s\">'imap.gmail.com'<\/span><span class=\"w\">,<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">  port:   <\/span><span class=\"n\">993<\/span><span class=\"w\">,<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">  secure: <\/span><span class=\"k\">true<\/span><span class=\"w\">,         <\/span><span class=\"c\">\/\/ SSL\/TLS on port 993<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">  auth: {<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">    user: <\/span><span class=\"s\">'you@gmail.com'<\/span><span class=\"w\">,<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">    pass: <\/span><span class=\"s\">'your-app-password'<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">  },<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">  logger: <\/span><span class=\"k\">false<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">});<\/span><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><span class=\"k\">await<\/span><span class=\"w\"> client.<\/span><span class=\"fn\">connect<\/span><span class=\"w\">();<\/span><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><span class=\"c\">\/\/ Lock the INBOX mailbox for exclusive access<\/span><!-- [et_pb_line_break_holder] --><span class=\"k\">let<\/span><span class=\"w\"> lock <\/span><span class=\"k\">=<\/span><span class=\"w\"> <\/span><span class=\"k\">await<\/span><span class=\"w\"> client.<\/span><span class=\"fn\">getMailboxLock<\/span><span class=\"w\">(<\/span><span class=\"s\">'INBOX'<\/span><span class=\"w\">);<\/span><!-- [et_pb_line_break_holder] --><span class=\"k\">try<\/span><span class=\"w\"> {<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">  <\/span><span class=\"c\">\/\/ Fetch last 5 messages (headers only)<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">  <\/span><span class=\"k\">for<\/span><span class=\"w\"> <\/span><span class=\"k\">await<\/span><span class=\"w\"> (<\/span><span class=\"k\">let<\/span><span class=\"w\"> msg <\/span><span class=\"k\">of<\/span><span class=\"w\"> client.<\/span><span class=\"fn\">fetch<\/span><span class=\"w\">(<\/span><span class=\"s\">'1:5'<\/span><span class=\"w\">, { envelope: <\/span><span class=\"k\">true<\/span><span class=\"w\"> })) {<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">    console.<\/span><span class=\"fn\">log<\/span><span class=\"w\">(msg.envelope.subject);<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">  }<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">} <\/span><span class=\"k\">finally<\/span><span class=\"w\"> {<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">  lock.<\/span><span class=\"fn\">release<\/span><span class=\"w\">();<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">}<\/span><!-- [et_pb_line_break_holder] --><span class=\"k\">await<\/span><span class=\"w\"> client.<\/span><span class=\"fn\">logout<\/span><span class=\"w\">();<\/span><\/code><\/div><!-- [et_pb_line_break_holder] -->    <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    <div class=\"rc-body\"><!-- [et_pb_line_break_holder] -->      <pee>The Python example uses <strong>IMAP4_SSL<\/strong> &#8211; the higher-level SSL wrapper that handles the TLS handshake automatically. Avoid using <code style=\"background:rgba(0,0,0,0.06);padding:2px 5px;border-radius:4px;font-family:'Courier New',monospace;font-size:13px;\">IMAP4<\/code> + manual <code style=\"background:rgba(0,0,0,0.06);padding:2px 5px;border-radius:4px;font-family:'Courier New',monospace;font-size:13px;\">starttls()<\/code> for cloud providers as it adds complexity without benefit. For Node.js, <strong>imapflow<\/strong> is the modern, Promise-based choice (the older <code style=\"background:rgba(0,0,0,0.06);padding:2px 5px;border-radius:4px;font-family:'Courier New',monospace;font-size:13px;\">node-imap<\/code> library is unmaintained as of 2024 and does not support XOAUTH2).<\/pee><!-- [et_pb_line_break_holder] -->      <pee>Both examples use app passwords, which are the simplest credential type for quick testing. For production systems handling multiple users, you will need OAuth 2.0 &#8211; see the XOAUTH2 section below. For a complete production-ready solution without managing raw IMAP connections, see the <a href=\"https:\/\/www.unipile.com\/the-developers-guide-to-imap-api-solution\/\">IMAP API developer guide<\/a>.<\/pee><!-- [et_pb_line_break_holder] -->    <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    <div class=\"rc-cta-strip\"><!-- [et_pb_line_break_holder] -->      <pee class=\"rc-cta-text\"><strong>Skip the IMAP boilerplate.<\/strong> Unipile gives you read, send, and sync across Gmail, Outlook, and IMAP in a single REST API &#8211; no connection management required.<\/pee><!-- [et_pb_line_break_holder] -->      <a href=\"https:\/\/dashboard.unipile.com\/signup\/\" target=\"_blank\" class=\"rc-cta-btn\"><span>Skip IMAP boilerplate &#8211; Build it with Unipile<\/span><svg class=\"rc-cta-icon\" viewBox=\"0 0 24 24\"><line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\"\/><polyline points=\"12 5 19 12 12 19\"\/><\/svg><\/a><!-- [et_pb_line_break_holder] -->    <\/div><!-- [et_pb_line_break_holder] -->  <\/div><!-- [et_pb_line_break_holder] --><\/div><!-- [et_pb_line_break_holder] --><script><!-- [et_pb_line_break_holder] -->function rcShowTab(el, id) {<!-- [et_pb_line_break_holder] -->  var container = el.closest('#upl-imap-rawconn');<!-- [et_pb_line_break_holder] -->  container.querySelectorAll('.rc-tab').forEach(function(t){ t.classList.remove('active'); });<!-- [et_pb_line_break_holder] -->  container.querySelectorAll('.rc-code-block').forEach(function(b){ b.classList.remove('active'); });<!-- [et_pb_line_break_holder] -->  el.classList.add('active');<!-- [et_pb_line_break_holder] -->  container.querySelector('#' + id).classList.add('active');<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><\/script>[\/et_pb_code][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.27.0&#8243; background_color=&#8221;transparent&#8221; custom_padding=&#8221;0px||0px||false|false&#8221; da_disable_devices=&#8221;off|off|off&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221; da_is_popup=&#8221;off&#8221; da_exit_intent=&#8221;off&#8221; da_has_close=&#8221;on&#8221; da_alt_close=&#8221;off&#8221; da_dark_close=&#8221;off&#8221; da_not_modal=&#8221;on&#8221; da_is_singular=&#8221;off&#8221; da_with_loader=&#8221;off&#8221; da_has_shadow=&#8221;on&#8221;][et_pb_row _builder_version=&#8221;4.27.0&#8243; max_width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.27.0&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_code _builder_version=&#8221;4.27.0&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Inter:wght@400;500;600;700&#038;family=Poppins:wght@700;800&#038;display=swap\" rel=\"stylesheet\"><!-- [et_pb_line_break_holder] --><style><!-- [et_pb_line_break_holder] -->#upl-imap-auth,<!-- [et_pb_line_break_holder] -->#upl-imap-auth *,<!-- [et_pb_line_break_holder] -->#upl-imap-auth *::before,<!-- [et_pb_line_break_holder] -->#upl-imap-auth *::after {<!-- [et_pb_line_break_holder] -->  margin: 0 !important;<!-- [et_pb_line_break_holder] -->  padding: 0 !important;<!-- [et_pb_line_break_holder] -->  box-sizing: border-box !important;<!-- [et_pb_line_break_holder] -->  border: none !important;<!-- [et_pb_line_break_holder] -->  outline: none !important;<!-- [et_pb_line_break_holder] -->  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.5 !important;<!-- [et_pb_line_break_holder] -->  letter-spacing: normal !important;<!-- [et_pb_line_break_holder] -->  text-transform: none !important;<!-- [et_pb_line_break_holder] -->  text-decoration: none !important;<!-- [et_pb_line_break_holder] -->  list-style: none !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-auth.upl-imap-auth-wrapper {<!-- [et_pb_line_break_holder] -->  display: block !important;<!-- [et_pb_line_break_holder] -->  padding: 70px 24px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-auth.upl-imap-auth-wrapper .au-container {<!-- [et_pb_line_break_holder] -->  max-width: 1100px !important;<!-- [et_pb_line_break_holder] -->  margin: 0 auto !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-auth.upl-imap-auth-wrapper .au-badge {<!-- [et_pb_line_break_holder] -->  display: inline-flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 8px !important;<!-- [et_pb_line_break_holder] -->  background: rgba(59, 185, 139, 0.12) !important;<!-- [et_pb_line_break_holder] -->  color: #2aaa7e !important;<!-- [et_pb_line_break_holder] -->  padding: 6px 14px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 20px !important;<!-- [et_pb_line_break_holder] -->  font-size: 12px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  text-transform: uppercase !important;<!-- [et_pb_line_break_holder] -->  letter-spacing: 0.5px !important;<!-- [et_pb_line_break_holder] -->  width: fit-content !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 16px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-auth.upl-imap-auth-wrapper .au-badge-dot {<!-- [et_pb_line_break_holder] -->  width: 7px !important;<!-- [et_pb_line_break_holder] -->  height: 7px !important;<!-- [et_pb_line_break_holder] -->  background: #3BB98B !important;<!-- [et_pb_line_break_holder] -->  border-radius: 50% !important;<!-- [et_pb_line_break_holder] -->  flex-shrink: 0 !important;<!-- [et_pb_line_break_holder] -->  display: inline-block !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-auth.upl-imap-auth-wrapper h2 {<!-- [et_pb_line_break_holder] -->  font-family: 'Poppins', sans-serif !important;<!-- [et_pb_line_break_holder] -->  font-size: 35px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.2 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 16px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-auth.upl-imap-auth-wrapper .au-intro {<!-- [et_pb_line_break_holder] -->  font-size: 16px !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.78 !important;<!-- [et_pb_line_break_holder] -->  color: #383838 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 36px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-auth.upl-imap-auth-wrapper .au-cards {<!-- [et_pb_line_break_holder] -->  display: grid !important;<!-- [et_pb_line_break_holder] -->  grid-template-columns: 1fr 1fr 1fr !important;<!-- [et_pb_line_break_holder] -->  gap: 20px !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 36px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-auth.upl-imap-auth-wrapper .au-card {<!-- [et_pb_line_break_holder] -->  background: #ffffff !important;<!-- [et_pb_line_break_holder] -->  border: 1px solid #e5e7eb !important;<!-- [et_pb_line_break_holder] -->  border-radius: 16px !important;<!-- [et_pb_line_break_holder] -->  padding: 24px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-auth.upl-imap-auth-wrapper .au-card-num {<!-- [et_pb_line_break_holder] -->  width: 36px !important;<!-- [et_pb_line_break_holder] -->  height: 36px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 10px !important;<!-- [et_pb_line_break_holder] -->  background: rgba(59, 185, 139, 0.10) !important;<!-- [et_pb_line_break_holder] -->  color: #2aaa7e !important;<!-- [et_pb_line_break_holder] -->  font-family: 'Poppins', sans-serif !important;<!-- [et_pb_line_break_holder] -->  font-size: 14px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  display: flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  justify-content: center !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 14px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-auth.upl-imap-auth-wrapper .au-card-title {<!-- [et_pb_line_break_holder] -->  font-size: 16px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 8px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-auth.upl-imap-auth-wrapper .au-card-desc {<!-- [et_pb_line_break_holder] -->  font-size: 14px !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.7 !important;<!-- [et_pb_line_break_holder] -->  color: #383838 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 14px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-auth.upl-imap-auth-wrapper .au-card-tag {<!-- [et_pb_line_break_holder] -->  display: inline-flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 5px !important;<!-- [et_pb_line_break_holder] -->  font-size: 11px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  padding: 3px 10px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 20px !important;<!-- [et_pb_line_break_holder] -->  text-transform: uppercase !important;<!-- [et_pb_line_break_holder] -->  letter-spacing: 0.4px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-auth.upl-imap-auth-wrapper .au-card-tag.tag-red {<!-- [et_pb_line_break_holder] -->  background: rgba(234, 67, 53, 0.10) !important;<!-- [et_pb_line_break_holder] -->  color: #c0392b !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-auth.upl-imap-auth-wrapper .au-card-tag.tag-yellow {<!-- [et_pb_line_break_holder] -->  background: rgba(221, 223, 76, 0.18) !important;<!-- [et_pb_line_break_holder] -->  color: #8a8c2e !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-auth.upl-imap-auth-wrapper .au-card-tag.tag-green {<!-- [et_pb_line_break_holder] -->  background: rgba(59, 185, 139, 0.12) !important;<!-- [et_pb_line_break_holder] -->  color: #2aaa7e !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-auth.upl-imap-auth-wrapper .au-body p {<!-- [et_pb_line_break_holder] -->  font-size: 16px !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.78 !important;<!-- [et_pb_line_break_holder] -->  color: #383838 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 16px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-auth.upl-imap-auth-wrapper .au-body p:last-child {<!-- [et_pb_line_break_holder] -->  margin-bottom: 0 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-auth.upl-imap-auth-wrapper .au-body strong {<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-auth.upl-imap-auth-wrapper .au-body a {<!-- [et_pb_line_break_holder] -->  color: #2aaa7e !important;<!-- [et_pb_line_break_holder] -->  text-decoration: underline !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->@media (max-width: 900px) {<!-- [et_pb_line_break_holder] -->  #upl-imap-auth.upl-imap-auth-wrapper {<!-- [et_pb_line_break_holder] -->    padding: 50px 20px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-auth.upl-imap-auth-wrapper h2 {<!-- [et_pb_line_break_holder] -->    font-size: 28px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-auth.upl-imap-auth-wrapper .au-cards {<!-- [et_pb_line_break_holder] -->    grid-template-columns: 1fr !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->@media (max-width: 600px) {<!-- [et_pb_line_break_holder] -->  #upl-imap-auth.upl-imap-auth-wrapper {<!-- [et_pb_line_break_holder] -->    padding: 40px 16px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-auth.upl-imap-auth-wrapper h2 {<!-- [et_pb_line_break_holder] -->    font-size: 26px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><\/style><!-- [et_pb_line_break_holder] --><div id=\"upl-imap-auth\" class=\"upl-imap-auth-wrapper\"><!-- [et_pb_line_break_holder] -->  <div class=\"au-container\"><!-- [et_pb_line_break_holder] -->    <span id=\"imap-auth\" style=\"display:block;position:relative;top:-80px;visibility:hidden;\"><\/span><!-- [et_pb_line_break_holder] -->    <div class=\"au-badge\"><span class=\"au-badge-dot\"><\/span><span>Authentication<\/span><\/div><!-- [et_pb_line_break_holder] -->    <h2>Authentication: password, app password, and OAuth 2.0 (XOAUTH2)<\/h2><!-- [et_pb_line_break_holder] -->    <pee class=\"au-intro\">An IMAP server connection requires you to authenticate after the TLS handshake. There are three authentication methods in use today &#8211; each with a different security profile, complexity level, and compatibility with cloud providers in 2026.<\/pee><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    <div class=\"au-cards\"><!-- [et_pb_line_break_holder] -->      <div class=\"au-card\"><!-- [et_pb_line_break_holder] -->        <div class=\"au-card-num\">1<\/div><!-- [et_pb_line_break_holder] -->        <div class=\"au-card-title\">Basic Authentication (username + password)<\/div><!-- [et_pb_line_break_holder] -->        <pee class=\"au-card-desc\">The original IMAP AUTH PLAIN \/ LOGIN mechanism. You send the account email address and account password directly to the IMAP server. Simple to implement but increasingly blocked by cloud providers on security grounds.<\/pee><!-- [et_pb_line_break_holder] -->        <span class=\"au-card-tag tag-red\"><span>Deprecated for cloud<\/span><\/span><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] -->      <div class=\"au-card\"><!-- [et_pb_line_break_holder] -->        <div class=\"au-card-num\">2<\/div><!-- [et_pb_line_break_holder] -->        <div class=\"au-card-title\">App Password<\/div><!-- [et_pb_line_break_holder] -->        <pee class=\"au-card-desc\">A 16-character token generated by the provider (Gmail, Yahoo, iCloud) that substitutes for the real account password. Works with the same IMAP LOGIN command as Basic Auth, but is scoped and can be revoked independently. Required when 2FA is enabled.<\/pee><!-- [et_pb_line_break_holder] -->        <span class=\"au-card-tag tag-yellow\"><span>Acceptable for personal use<\/span><\/span><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] -->      <div class=\"au-card\"><!-- [et_pb_line_break_holder] -->        <div class=\"au-card-num\">3<\/div><!-- [et_pb_line_break_holder] -->        <div class=\"au-card-title\">OAuth 2.0 (XOAUTH2)<\/div><!-- [et_pb_line_break_holder] -->        <pee class=\"au-card-desc\">The user authorizes your app via a consent screen. Your app receives an access token (short-lived, typically 1 hour) which you base64-encode and pass to the IMAP AUTHENTICATE XOAUTH2 command. Tokens are refreshed with a long-lived refresh token. The only viable method for multi-user production apps.<\/pee><!-- [et_pb_line_break_holder] -->        <span class=\"au-card-tag tag-green\"><span>Required for production<\/span><\/span><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] -->    <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    <div class=\"au-body\"><!-- [et_pb_line_break_holder] -->      <pee><strong>When to use which:<\/strong> use app passwords during local development and for personal tooling. Use OAuth 2.0 XOAUTH2 for any multi-user integration &#8211; it is the only method that scales, because you never store user passwords, and each token can be revoked without changing the user&#8217;s password. For Gmail, Google has been progressively restricting Basic Auth for &#8220;less secure apps&#8221; since 2022. For Microsoft\/Outlook, Basic Auth deprecation is scheduled for December 2026 across all tenants (see the next section).<\/pee><!-- [et_pb_line_break_holder] -->      <pee>For a deep-dive on OAuth flows &#8211; including token exchange, refresh logic, and scopes &#8211; see our guide on <a href=\"https:\/\/www.unipile.com\/oauth-email-api\/\">OAuth for email APIs<\/a>. For Microsoft-specific OAuth setup, see <a href=\"https:\/\/www.unipile.com\/microsoft-graph-oauth-email\/\">Microsoft Graph OAuth for Outlook<\/a>.<\/pee><!-- [et_pb_line_break_holder] -->    <\/div><!-- [et_pb_line_break_holder] -->  <\/div><!-- [et_pb_line_break_holder] --><\/div>[\/et_pb_code][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.27.0&#8243; background_color=&#8221;transparent&#8221; custom_padding=&#8221;0px||0px||false|false&#8221; da_disable_devices=&#8221;off|off|off&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221; da_is_popup=&#8221;off&#8221; da_exit_intent=&#8221;off&#8221; da_has_close=&#8221;on&#8221; da_alt_close=&#8221;off&#8221; da_dark_close=&#8221;off&#8221; da_not_modal=&#8221;on&#8221; da_is_singular=&#8221;off&#8221; da_with_loader=&#8221;off&#8221; da_has_shadow=&#8221;on&#8221;][et_pb_row _builder_version=&#8221;4.27.0&#8243; max_width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.27.0&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_code _builder_version=&#8221;4.27.0&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Inter:wght@400;500;600;700&#038;family=Poppins:wght@700;800&#038;display=swap\" rel=\"stylesheet\"><!-- [et_pb_line_break_holder] --><style><!-- [et_pb_line_break_holder] -->#upl-imap-depr,<!-- [et_pb_line_break_holder] -->#upl-imap-depr *,<!-- [et_pb_line_break_holder] -->#upl-imap-depr *::before,<!-- [et_pb_line_break_holder] -->#upl-imap-depr *::after {<!-- [et_pb_line_break_holder] -->  margin: 0 !important;<!-- [et_pb_line_break_holder] -->  padding: 0 !important;<!-- [et_pb_line_break_holder] -->  box-sizing: border-box !important;<!-- [et_pb_line_break_holder] -->  border: none !important;<!-- [et_pb_line_break_holder] -->  outline: none !important;<!-- [et_pb_line_break_holder] -->  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.5 !important;<!-- [et_pb_line_break_holder] -->  letter-spacing: normal !important;<!-- [et_pb_line_break_holder] -->  text-transform: none !important;<!-- [et_pb_line_break_holder] -->  text-decoration: none !important;<!-- [et_pb_line_break_holder] -->  list-style: none !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-depr.upl-imap-depr-wrapper {<!-- [et_pb_line_break_holder] -->  display: block !important;<!-- [et_pb_line_break_holder] -->  padding: 70px 24px !important;<!-- [et_pb_line_break_holder] -->  background: #f4f5f7 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-depr.upl-imap-depr-wrapper .dp-container {<!-- [et_pb_line_break_holder] -->  max-width: 1100px !important;<!-- [et_pb_line_break_holder] -->  margin: 0 auto !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-depr.upl-imap-depr-wrapper .dp-badge {<!-- [et_pb_line_break_holder] -->  display: inline-flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 8px !important;<!-- [et_pb_line_break_holder] -->  background: rgba(234, 67, 53, 0.12) !important;<!-- [et_pb_line_break_holder] -->  color: #c0392b !important;<!-- [et_pb_line_break_holder] -->  padding: 6px 14px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 20px !important;<!-- [et_pb_line_break_holder] -->  font-size: 12px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  text-transform: uppercase !important;<!-- [et_pb_line_break_holder] -->  letter-spacing: 0.5px !important;<!-- [et_pb_line_break_holder] -->  width: fit-content !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 16px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-depr.upl-imap-depr-wrapper .dp-badge-dot {<!-- [et_pb_line_break_holder] -->  width: 7px !important;<!-- [et_pb_line_break_holder] -->  height: 7px !important;<!-- [et_pb_line_break_holder] -->  background: #c0392b !important;<!-- [et_pb_line_break_holder] -->  border-radius: 50% !important;<!-- [et_pb_line_break_holder] -->  flex-shrink: 0 !important;<!-- [et_pb_line_break_holder] -->  display: inline-block !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-depr.upl-imap-depr-wrapper h2 {<!-- [et_pb_line_break_holder] -->  font-family: 'Poppins', sans-serif !important;<!-- [et_pb_line_break_holder] -->  font-size: 35px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.2 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 16px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-depr.upl-imap-depr-wrapper .dp-intro {<!-- [et_pb_line_break_holder] -->  font-size: 16px !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.78 !important;<!-- [et_pb_line_break_holder] -->  color: #383838 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 36px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-depr.upl-imap-depr-wrapper .dp-alert {<!-- [et_pb_line_break_holder] -->  background: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  border-left: 4px solid #DDDF4C !important;<!-- [et_pb_line_break_holder] -->  border-radius: 0 12px 12px 0 !important;<!-- [et_pb_line_break_holder] -->  padding: 24px 28px !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 32px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-depr.upl-imap-depr-wrapper .dp-alert-header {<!-- [et_pb_line_break_holder] -->  display: flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 10px !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 12px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-depr.upl-imap-depr-wrapper .dp-alert-icon {<!-- [et_pb_line_break_holder] -->  width: 20px !important;<!-- [et_pb_line_break_holder] -->  height: 20px !important;<!-- [et_pb_line_break_holder] -->  stroke: #DDDF4C !important;<!-- [et_pb_line_break_holder] -->  fill: none !important;<!-- [et_pb_line_break_holder] -->  stroke-width: 2 !important;<!-- [et_pb_line_break_holder] -->  stroke-linecap: round !important;<!-- [et_pb_line_break_holder] -->  stroke-linejoin: round !important;<!-- [et_pb_line_break_holder] -->  flex-shrink: 0 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-depr.upl-imap-depr-wrapper .dp-alert-title {<!-- [et_pb_line_break_holder] -->  font-size: 14px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  color: #DDDF4C !important;<!-- [et_pb_line_break_holder] -->  text-transform: uppercase !important;<!-- [et_pb_line_break_holder] -->  letter-spacing: 0.5px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-depr.upl-imap-depr-wrapper .dp-alert-body {<!-- [et_pb_line_break_holder] -->  font-size: 15px !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.75 !important;<!-- [et_pb_line_break_holder] -->  color: rgba(255,255,255,0.88) !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-depr.upl-imap-depr-wrapper .dp-alert-body strong {<!-- [et_pb_line_break_holder] -->  color: #ffffff !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-depr.upl-imap-depr-wrapper .dp-alert-body a {<!-- [et_pb_line_break_holder] -->  color: #DDDF4C !important;<!-- [et_pb_line_break_holder] -->  text-decoration: underline !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-depr.upl-imap-depr-wrapper .dp-steps {<!-- [et_pb_line_break_holder] -->  margin-bottom: 32px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-depr.upl-imap-depr-wrapper .dp-steps-title {<!-- [et_pb_line_break_holder] -->  font-size: 17px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 16px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-depr.upl-imap-depr-wrapper .dp-step-list {<!-- [et_pb_line_break_holder] -->  display: flex !important;<!-- [et_pb_line_break_holder] -->  flex-direction: column !important;<!-- [et_pb_line_break_holder] -->  gap: 12px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-depr.upl-imap-depr-wrapper .dp-step {<!-- [et_pb_line_break_holder] -->  display: flex !important;<!-- [et_pb_line_break_holder] -->  align-items: flex-start !important;<!-- [et_pb_line_break_holder] -->  gap: 14px !important;<!-- [et_pb_line_break_holder] -->  background: #ffffff !important;<!-- [et_pb_line_break_holder] -->  border: 1px solid #e5e7eb !important;<!-- [et_pb_line_break_holder] -->  border-radius: 12px !important;<!-- [et_pb_line_break_holder] -->  padding: 16px 20px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-depr.upl-imap-depr-wrapper .dp-step-num {<!-- [et_pb_line_break_holder] -->  width: 32px !important;<!-- [et_pb_line_break_holder] -->  height: 32px !important;<!-- [et_pb_line_break_holder] -->  min-width: 32px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 8px !important;<!-- [et_pb_line_break_holder] -->  background: rgba(221, 223, 76, 0.18) !important;<!-- [et_pb_line_break_holder] -->  color: #8a8c2e !important;<!-- [et_pb_line_break_holder] -->  font-family: 'Poppins', sans-serif !important;<!-- [et_pb_line_break_holder] -->  font-size: 13px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  display: flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  justify-content: center !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-depr.upl-imap-depr-wrapper .dp-step-content {<!-- [et_pb_line_break_holder] -->  flex: 1 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-depr.upl-imap-depr-wrapper .dp-step-title {<!-- [et_pb_line_break_holder] -->  font-size: 15px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 4px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-depr.upl-imap-depr-wrapper .dp-step-desc {<!-- [et_pb_line_break_holder] -->  font-size: 14px !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.65 !important;<!-- [et_pb_line_break_holder] -->  color: #383838 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-depr.upl-imap-depr-wrapper .dp-step-desc a {<!-- [et_pb_line_break_holder] -->  color: #2aaa7e !important;<!-- [et_pb_line_break_holder] -->  text-decoration: underline !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-depr.upl-imap-depr-wrapper .dp-body p {<!-- [et_pb_line_break_holder] -->  font-size: 16px !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.78 !important;<!-- [et_pb_line_break_holder] -->  color: #383838 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 16px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-depr.upl-imap-depr-wrapper .dp-body p:last-child {<!-- [et_pb_line_break_holder] -->  margin-bottom: 0 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-depr.upl-imap-depr-wrapper .dp-body strong {<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-depr.upl-imap-depr-wrapper .dp-body a {<!-- [et_pb_line_break_holder] -->  color: #2aaa7e !important;<!-- [et_pb_line_break_holder] -->  text-decoration: underline !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-depr.upl-imap-depr-wrapper .dp-cta-strip {<!-- [et_pb_line_break_holder] -->  display: flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  justify-content: space-between !important;<!-- [et_pb_line_break_holder] -->  gap: 20px !important;<!-- [et_pb_line_break_holder] -->  background: #ffffff !important;<!-- [et_pb_line_break_holder] -->  border: 1px solid #e5e7eb !important;<!-- [et_pb_line_break_holder] -->  border-radius: 12px !important;<!-- [et_pb_line_break_holder] -->  padding: 20px 24px !important;<!-- [et_pb_line_break_holder] -->  flex-wrap: wrap !important;<!-- [et_pb_line_break_holder] -->  margin-top: 32px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-depr.upl-imap-depr-wrapper .dp-cta-text {<!-- [et_pb_line_break_holder] -->  font-size: 15px !important;<!-- [et_pb_line_break_holder] -->  color: #383838 !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.6 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-depr.upl-imap-depr-wrapper .dp-cta-text strong {<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-depr.upl-imap-depr-wrapper .dp-cta-btn {<!-- [et_pb_line_break_holder] -->  display: inline-flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 8px !important;<!-- [et_pb_line_break_holder] -->  background: #DDDF4C !important;<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  padding: 12px 22px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 8px !important;<!-- [et_pb_line_break_holder] -->  font-size: 14px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 600 !important;<!-- [et_pb_line_break_holder] -->  border: 2px solid #DDDF4C !important;<!-- [et_pb_line_break_holder] -->  cursor: pointer !important;<!-- [et_pb_line_break_holder] -->  white-space: nowrap !important;<!-- [et_pb_line_break_holder] -->  transition: transform 0.2s ease !important;<!-- [et_pb_line_break_holder] -->  text-decoration: none !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-depr.upl-imap-depr-wrapper .dp-cta-btn:hover {<!-- [et_pb_line_break_holder] -->  transform: translateY(-5px) !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-depr.upl-imap-depr-wrapper .dp-cta-icon {<!-- [et_pb_line_break_holder] -->  width: 15px !important;<!-- [et_pb_line_break_holder] -->  height: 15px !important;<!-- [et_pb_line_break_holder] -->  stroke: currentColor !important;<!-- [et_pb_line_break_holder] -->  fill: none !important;<!-- [et_pb_line_break_holder] -->  stroke-width: 2.5 !important;<!-- [et_pb_line_break_holder] -->  stroke-linecap: round !important;<!-- [et_pb_line_break_holder] -->  stroke-linejoin: round !important;<!-- [et_pb_line_break_holder] -->  flex-shrink: 0 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->@media (max-width: 900px) {<!-- [et_pb_line_break_holder] -->  #upl-imap-depr.upl-imap-depr-wrapper {<!-- [et_pb_line_break_holder] -->    padding: 50px 20px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-depr.upl-imap-depr-wrapper h2 {<!-- [et_pb_line_break_holder] -->    font-size: 28px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->@media (max-width: 600px) {<!-- [et_pb_line_break_holder] -->  #upl-imap-depr.upl-imap-depr-wrapper {<!-- [et_pb_line_break_holder] -->    padding: 40px 16px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-depr.upl-imap-depr-wrapper h2 {<!-- [et_pb_line_break_holder] -->    font-size: 26px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-depr.upl-imap-depr-wrapper .dp-cta-strip {<!-- [et_pb_line_break_holder] -->    flex-direction: column !important;<!-- [et_pb_line_break_holder] -->    align-items: flex-start !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-depr.upl-imap-depr-wrapper .dp-cta-btn {<!-- [et_pb_line_break_holder] -->    width: 100% !important;<!-- [et_pb_line_break_holder] -->    justify-content: center !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><\/style><!-- [et_pb_line_break_holder] --><div id=\"upl-imap-depr\" class=\"upl-imap-depr-wrapper\"><!-- [et_pb_line_break_holder] -->  <div class=\"dp-container\"><!-- [et_pb_line_break_holder] -->    <span id=\"imap-basic-auth-deprecation\" style=\"display:block;position:relative;top:-80px;visibility:hidden;\"><\/span><!-- [et_pb_line_break_holder] -->    <div class=\"dp-badge\"><span class=\"dp-badge-dot\"><\/span><span>Action Required 2026<\/span><\/div><!-- [et_pb_line_break_holder] -->    <h2>The 2026 problem: Microsoft Basic Auth deprecation (Dec 2026)<\/h2><!-- [et_pb_line_break_holder] -->    <pee class=\"dp-intro\">If your IMAP integration connects to Microsoft 365 or Outlook accounts using a username and password directly, you are on a countdown clock. Microsoft has announced the final end-of-life date for Basic Authentication across IMAP, POP3, and SMTP for all tenants.<\/pee><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    <div class=\"dp-alert\"><!-- [et_pb_line_break_holder] -->      <div class=\"dp-alert-header\"><!-- [et_pb_line_break_holder] -->        <svg class=\"dp-alert-icon\" viewBox=\"0 0 24 24\"><line x1=\"12\" y1=\"9\" x2=\"12\" y2=\"13\"\/><line x1=\"12\" y1=\"17\" x2=\"12.01\" y2=\"17\"\/><triangle points=\"12 2 22 22 2 22\"\/><path d=\"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z\"\/><\/svg><!-- [et_pb_line_break_holder] -->        <span class=\"dp-alert-title\">Microsoft Basic Auth End-of-Life: December 2026<\/span><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] -->      <pee class=\"dp-alert-body\">According to <a href=\"https:\/\/learn.microsoft.com\/en-us\/exchange\/clients-and-mobile-in-exchange-online\/deprecation-of-basic-authentication-exchange-online\" target=\"_blank\">Microsoft Learn<\/a> and the <a href=\"https:\/\/techcommunity.microsoft.com\/t5\/exchange-team-blog\/exchange-online-deprecating-basic-authentication-for-imap-pop\/\" target=\"_blank\">Microsoft Community Hub announcement<\/a>, <strong>Exchange Online will fully disable Basic Authentication for IMAP, POP3, and SMTP in December 2026<\/strong> across all tenants &#8211; including those with existing exemptions. Any IMAP client or server-side integration still using username\/password authentication will stop working. There is no further extension available.<\/pee><!-- [et_pb_line_break_holder] -->    <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    <div class=\"dp-steps\"><!-- [et_pb_line_break_holder] -->      <pee class=\"dp-steps-title\">Action steps to migrate before the deadline<\/pee><!-- [et_pb_line_break_holder] -->      <div class=\"dp-step-list\"><!-- [et_pb_line_break_holder] -->        <div class=\"dp-step\"><!-- [et_pb_line_break_holder] -->          <div class=\"dp-step-num\">1<\/div><!-- [et_pb_line_break_holder] -->          <div class=\"dp-step-content\"><!-- [et_pb_line_break_holder] -->            <div class=\"dp-step-title\">Audit your integrations<\/div><!-- [et_pb_line_break_holder] -->            <pee class=\"dp-step-desc\">Search your codebase for IMAP connections that use <code style=\"background:rgba(0,0,0,0.06);padding:2px 5px;border-radius:4px;font-family:'Courier New',monospace;font-size:12px;\">login(username, password)<\/code> or <code style=\"background:rgba(0,0,0,0.06);padding:2px 5px;border-radius:4px;font-family:'Courier New',monospace;font-size:12px;\">AUTH PLAIN<\/code>. Check Microsoft Entra ID (formerly Azure AD) sign-in logs for IMAP Basic Auth activity.<\/pee><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"dp-step\"><!-- [et_pb_line_break_holder] -->          <div class=\"dp-step-num\">2<\/div><!-- [et_pb_line_break_holder] -->          <div class=\"dp-step-content\"><!-- [et_pb_line_break_holder] -->            <div class=\"dp-step-title\">Register an app in Microsoft Entra ID<\/div><!-- [et_pb_line_break_holder] -->            <pee class=\"dp-step-desc\">Create an app registration at portal.azure.com with the <code style=\"background:rgba(0,0,0,0.06);padding:2px 5px;border-radius:4px;font-family:'Courier New',monospace;font-size:12px;\">IMAP.AccessAsUser.All<\/code> (delegated) or <code style=\"background:rgba(0,0,0,0.06);padding:2px 5px;border-radius:4px;font-family:'Courier New',monospace;font-size:12px;\">IMAP.AccessAsApp<\/code> (application) permission. See <a href=\"https:\/\/www.unipile.com\/microsoft-graph-oauth-email\/\">Microsoft Graph OAuth for Outlook<\/a> for a step-by-step walkthrough.<\/pee><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"dp-step\"><!-- [et_pb_line_break_holder] -->          <div class=\"dp-step-num\">3<\/div><!-- [et_pb_line_break_holder] -->          <div class=\"dp-step-content\"><!-- [et_pb_line_break_holder] -->            <div class=\"dp-step-title\">Implement OAuth 2.0 token acquisition<\/div><!-- [et_pb_line_break_holder] -->            <pee class=\"dp-step-desc\">Use MSAL (Microsoft Authentication Library) to acquire access tokens. Implement token refresh logic &#8211; Microsoft tokens expire after 1 hour and you need a refresh token flow to maintain long-lived IMAP sessions without user re-authentication.<\/pee><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"dp-step\"><!-- [et_pb_line_break_holder] -->          <div class=\"dp-step-num\">4<\/div><!-- [et_pb_line_break_holder] -->          <div class=\"dp-step-content\"><!-- [et_pb_line_break_holder] -->            <div class=\"dp-step-title\">Replace LOGIN with AUTHENTICATE XOAUTH2<\/div><!-- [et_pb_line_break_holder] -->            <pee class=\"dp-step-desc\">Replace the IMAP <code style=\"background:rgba(0,0,0,0.06);padding:2px 5px;border-radius:4px;font-family:'Courier New',monospace;font-size:12px;\">LOGIN<\/code> command with <code style=\"background:rgba(0,0,0,0.06);padding:2px 5px;border-radius:4px;font-family:'Courier New',monospace;font-size:12px;\">AUTHENTICATE XOAUTH2<\/code> using a base64-encoded token string. See the full code sample in the XOAUTH2 section below.<\/pee><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"dp-step\"><!-- [et_pb_line_break_holder] -->          <div class=\"dp-step-num\">5<\/div><!-- [et_pb_line_break_holder] -->          <div class=\"dp-step-content\"><!-- [et_pb_line_break_holder] -->            <div class=\"dp-step-title\">Test in a staging tenant before deadline<\/div><!-- [et_pb_line_break_holder] -->            <pee class=\"dp-step-desc\">Microsoft provides a way to disable Basic Auth early on a per-tenant basis &#8211; use this to test your OAuth flow before the December 2026 forced cutoff, so you are not debugging production issues under deadline pressure.<\/pee><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] -->    <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    <div class=\"dp-body\"><!-- [et_pb_line_break_holder] -->      <pee>If you manage IMAP connections for multiple Microsoft 365 users &#8211; a common scenario for CRM, ATS, or sales automation tools &#8211; the migration complexity compounds quickly. You need to handle OAuth consent flows for each user, store and refresh tokens securely, and deal with conditional access policies that may block your app in some tenants. This is one of the core reasons developers choose a managed IMAP API rather than maintaining raw connections themselves.<\/pee><!-- [et_pb_line_break_holder] -->    <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    <div class=\"dp-cta-strip\"><!-- [et_pb_line_break_holder] -->      <pee class=\"dp-cta-text\"><strong>Microsoft Basic Auth deadline approaching.<\/strong> Build a future-proof OAuth flow today with Unipile&#8217;s unified email API &#8211; we handle token refresh, multi-tenant auth, and XOAUTH2 for you.<\/pee><!-- [et_pb_line_break_holder] -->      <a href=\"https:\/\/dashboard.unipile.com\/signup\/\" target=\"_blank\" class=\"dp-cta-btn\"><span>Build a future-proof OAuth flow<\/span><svg class=\"dp-cta-icon\" viewBox=\"0 0 24 24\"><line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\"\/><polyline points=\"12 5 19 12 12 19\"\/><\/svg><\/a><!-- [et_pb_line_break_holder] -->    <\/div><!-- [et_pb_line_break_holder] -->  <\/div><!-- [et_pb_line_break_holder] --><\/div>[\/et_pb_code][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.27.0&#8243; background_color=&#8221;transparent&#8221; custom_padding=&#8221;0px||0px||false|false&#8221; da_disable_devices=&#8221;off|off|off&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221; da_is_popup=&#8221;off&#8221; da_exit_intent=&#8221;off&#8221; da_has_close=&#8221;on&#8221; da_alt_close=&#8221;off&#8221; da_dark_close=&#8221;off&#8221; da_not_modal=&#8221;on&#8221; da_is_singular=&#8221;off&#8221; da_with_loader=&#8221;off&#8221; da_has_shadow=&#8221;on&#8221;][et_pb_row _builder_version=&#8221;4.27.0&#8243; max_width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.27.0&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_code _builder_version=&#8221;4.27.4&#8243; hover_enabled=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221; sticky_enabled=&#8221;0&#8243;]<!DOCTYPE html><!-- [et_pb_line_break_holder] --><html lang=\"en\"><!-- [et_pb_line_break_holder] --><head><!-- [et_pb_line_break_holder] --><meta charset=\"UTF-8\"><!-- [et_pb_line_break_holder] --><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><!-- [et_pb_line_break_holder] --><title>Unipile &#8211; XOAUTH2 Code Block<\/title><!-- [et_pb_line_break_holder] --><link href=\"https:\/\/fonts.googleapis.com\/css2?family=Inter:wght@400;500;600;700&#038;family=Poppins:wght@700;800&#038;display=swap\" rel=\"stylesheet\"><!-- [et_pb_line_break_holder] --><style><!-- [et_pb_line_break_holder] -->#upl-imap-xoa,<!-- [et_pb_line_break_holder] -->#upl-imap-xoa *,<!-- [et_pb_line_break_holder] -->#upl-imap-xoa *::before,<!-- [et_pb_line_break_holder] -->#upl-imap-xoa *::after {<!-- [et_pb_line_break_holder] -->  margin: 0 !important;<!-- [et_pb_line_break_holder] -->  padding: 0 !important;<!-- [et_pb_line_break_holder] -->  box-sizing: border-box !important;<!-- [et_pb_line_break_holder] -->  border: none !important;<!-- [et_pb_line_break_holder] -->  outline: none !important;<!-- [et_pb_line_break_holder] -->  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.5 !important;<!-- [et_pb_line_break_holder] -->  letter-spacing: normal !important;<!-- [et_pb_line_break_holder] -->  text-transform: none !important;<!-- [et_pb_line_break_holder] -->  text-decoration: none !important;<!-- [et_pb_line_break_holder] -->  list-style: none !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-xoa.upl-imap-xoa-wrapper {<!-- [et_pb_line_break_holder] -->  display: block !important;<!-- [et_pb_line_break_holder] -->  padding: 70px 24px !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-xoa.upl-imap-xoa-wrapper .xo-container {<!-- [et_pb_line_break_holder] -->  max-width: 1100px !important;<!-- [et_pb_line_break_holder] -->  margin: 0 auto !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-xoa.upl-imap-xoa-wrapper .xo-badge {<!-- [et_pb_line_break_holder] -->  display: inline-flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 8px !important;<!-- [et_pb_line_break_holder] -->  background: rgba(221, 223, 76, 0.18) !important;<!-- [et_pb_line_break_holder] -->  color: #8a8c2e !important;<!-- [et_pb_line_break_holder] -->  padding: 6px 14px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 20px !important;<!-- [et_pb_line_break_holder] -->  font-size: 12px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  text-transform: uppercase !important;<!-- [et_pb_line_break_holder] -->  letter-spacing: 0.5px !important;<!-- [et_pb_line_break_holder] -->  width: fit-content !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 16px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-xoa.upl-imap-xoa-wrapper .xo-badge-dot {<!-- [et_pb_line_break_holder] -->  width: 7px !important;<!-- [et_pb_line_break_holder] -->  height: 7px !important;<!-- [et_pb_line_break_holder] -->  background: #DDDF4C !important;<!-- [et_pb_line_break_holder] -->  border-radius: 50% !important;<!-- [et_pb_line_break_holder] -->  flex-shrink: 0 !important;<!-- [et_pb_line_break_holder] -->  display: inline-block !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-xoa.upl-imap-xoa-wrapper h2 {<!-- [et_pb_line_break_holder] -->  font-family: 'Poppins', sans-serif !important;<!-- [et_pb_line_break_holder] -->  font-size: 35px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.2 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 16px !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-xoa.upl-imap-xoa-wrapper .xo-intro {<!-- [et_pb_line_break_holder] -->  font-size: 16px !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.78 !important;<!-- [et_pb_line_break_holder] -->  color: #383838 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 36px !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-xoa.upl-imap-xoa-wrapper .xo-intro code {<!-- [et_pb_line_break_holder] -->  background: rgba(0,0,0,0.06) !important;<!-- [et_pb_line_break_holder] -->  padding: 2px 5px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 4px !important;<!-- [et_pb_line_break_holder] -->  font-family: 'Courier New', monospace !important;<!-- [et_pb_line_break_holder] -->  font-size: 13px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-xoa.upl-imap-xoa-wrapper .xo-provider-tabs {<!-- [et_pb_line_break_holder] -->  display: flex !important;<!-- [et_pb_line_break_holder] -->  gap: 4px !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 0 !important;<!-- [et_pb_line_break_holder] -->  flex-wrap: wrap !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-xoa.upl-imap-xoa-wrapper .xo-tab {<!-- [et_pb_line_break_holder] -->  padding: 10px 20px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 8px 8px 0 0 !important;<!-- [et_pb_line_break_holder] -->  font-size: 13px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 600 !important;<!-- [et_pb_line_break_holder] -->  cursor: pointer !important;<!-- [et_pb_line_break_holder] -->  color: #6b7280 !important;<!-- [et_pb_line_break_holder] -->  background: #e5e7eb !important;<!-- [et_pb_line_break_holder] -->  transition: all 0.2s !important;<!-- [et_pb_line_break_holder] -->  display: flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 8px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-xoa.upl-imap-xoa-wrapper .xo-tab.active {<!-- [et_pb_line_break_holder] -->  background: #0d1117 !important;<!-- [et_pb_line_break_holder] -->  color: #e6edf3 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-xoa.upl-imap-xoa-wrapper .xo-tab img {<!-- [et_pb_line_break_holder] -->  width: 16px !important;<!-- [et_pb_line_break_holder] -->  height: 16px !important;<!-- [et_pb_line_break_holder] -->  object-fit: contain !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->  flex-shrink: 0 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-xoa.upl-imap-xoa-wrapper .xo-code-block {<!-- [et_pb_line_break_holder] -->  display: none !important;<!-- [et_pb_line_break_holder] -->  border-radius: 0 14px 14px 14px !important;<!-- [et_pb_line_break_holder] -->  overflow: hidden !important;<!-- [et_pb_line_break_holder] -->  background: #0d1117 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 32px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-xoa.upl-imap-xoa-wrapper .xo-code-block.active {<!-- [et_pb_line_break_holder] -->  display: block !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-xoa.upl-imap-xoa-wrapper .xo-editor-bar {<!-- [et_pb_line_break_holder] -->  background: #161b22 !important;<!-- [et_pb_line_break_holder] -->  padding: 12px 18px !important;<!-- [et_pb_line_break_holder] -->  display: flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 8px !important;<!-- [et_pb_line_break_holder] -->  border-bottom: 1px solid rgba(255,255,255,0.06) !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-xoa.upl-imap-xoa-wrapper .xo-dot {<!-- [et_pb_line_break_holder] -->  width: 12px !important;<!-- [et_pb_line_break_holder] -->  height: 12px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 50% !important;<!-- [et_pb_line_break_holder] -->  display: inline-block !important;<!-- [et_pb_line_break_holder] -->  flex-shrink: 0 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-xoa.upl-imap-xoa-wrapper .xo-dot-r { background: #ff5f57 !important; }<!-- [et_pb_line_break_holder] -->#upl-imap-xoa.upl-imap-xoa-wrapper .xo-dot-y { background: #febc2e !important; }<!-- [et_pb_line_break_holder] -->#upl-imap-xoa.upl-imap-xoa-wrapper .xo-dot-g { background: #28c840 !important; }<!-- [et_pb_line_break_holder] -->#upl-imap-xoa.upl-imap-xoa-wrapper .xo-filename {<!-- [et_pb_line_break_holder] -->  color: #8b949e !important;<!-- [et_pb_line_break_holder] -->  font-size: 13px !important;<!-- [et_pb_line_break_holder] -->  margin-left: 6px !important;<!-- [et_pb_line_break_holder] -->  font-family: 'Courier New', monospace !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-xoa.upl-imap-xoa-wrapper .xo-pre {<!-- [et_pb_line_break_holder] -->  padding: 22px 24px !important;<!-- [et_pb_line_break_holder] -->  font-size: 13px !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.85 !important;<!-- [et_pb_line_break_holder] -->  overflow-x: auto !important;<!-- [et_pb_line_break_holder] -->  background: #0d1117 !important;<!-- [et_pb_line_break_holder] -->  font-family: 'Courier New', monospace !important;<!-- [et_pb_line_break_holder] -->  white-space: pre !important;<!-- [et_pb_line_break_holder] -->  -webkit-overflow-scrolling: touch !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-xoa.upl-imap-xoa-wrapper .xo-pre code {<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->  font-family: 'Courier New', monospace !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-xoa.upl-imap-xoa-wrapper .c { color: #8b949e !important; background: transparent !important; }<!-- [et_pb_line_break_holder] -->#upl-imap-xoa.upl-imap-xoa-wrapper .k { color: #ff7b72 !important; background: transparent !important; }<!-- [et_pb_line_break_holder] -->#upl-imap-xoa.upl-imap-xoa-wrapper .fn { color: #d2a8ff !important; background: transparent !important; }<!-- [et_pb_line_break_holder] -->#upl-imap-xoa.upl-imap-xoa-wrapper .s { color: #a5d6ff !important; background: transparent !important; }<!-- [et_pb_line_break_holder] -->#upl-imap-xoa.upl-imap-xoa-wrapper .n { color: #79c0ff !important; background: transparent !important; }<!-- [et_pb_line_break_holder] -->#upl-imap-xoa.upl-imap-xoa-wrapper .w { color: #e6edf3 !important; background: transparent !important; }<!-- [et_pb_line_break_holder] -->#upl-imap-xoa.upl-imap-xoa-wrapper .xo-body p {<!-- [et_pb_line_break_holder] -->  font-size: 16px !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.78 !important;<!-- [et_pb_line_break_holder] -->  color: #383838 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 16px !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-xoa.upl-imap-xoa-wrapper .xo-body p:last-child {<!-- [et_pb_line_break_holder] -->  margin-bottom: 0 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-xoa.upl-imap-xoa-wrapper .xo-body strong {<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-xoa.upl-imap-xoa-wrapper .xo-body a {<!-- [et_pb_line_break_holder] -->  color: #2aaa7e !important;<!-- [et_pb_line_break_holder] -->  text-decoration: underline !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-xoa.upl-imap-xoa-wrapper .xo-body code {<!-- [et_pb_line_break_holder] -->  background: rgba(0,0,0,0.06) !important;<!-- [et_pb_line_break_holder] -->  padding: 2px 5px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 4px !important;<!-- [et_pb_line_break_holder] -->  font-family: 'Courier New', monospace !important;<!-- [et_pb_line_break_holder] -->  font-size: 13px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-xoa.upl-imap-xoa-wrapper .xo-cta-strip {<!-- [et_pb_line_break_holder] -->  display: flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  justify-content: space-between !important;<!-- [et_pb_line_break_holder] -->  gap: 20px !important;<!-- [et_pb_line_break_holder] -->  background: #ffffff !important;<!-- [et_pb_line_break_holder] -->  border: 1px solid #e5e7eb !important;<!-- [et_pb_line_break_holder] -->  border-radius: 12px !important;<!-- [et_pb_line_break_holder] -->  padding: 20px 24px !important;<!-- [et_pb_line_break_holder] -->  flex-wrap: wrap !important;<!-- [et_pb_line_break_holder] -->  margin-top: 32px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-xoa.upl-imap-xoa-wrapper .xo-cta-text {<!-- [et_pb_line_break_holder] -->  font-size: 15px !important;<!-- [et_pb_line_break_holder] -->  color: #383838 !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.6 !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->  flex: 1 1 300px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-xoa.upl-imap-xoa-wrapper .xo-cta-text strong {<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-xoa.upl-imap-xoa-wrapper .xo-cta-btn {<!-- [et_pb_line_break_holder] -->  display: inline-flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 8px !important;<!-- [et_pb_line_break_holder] -->  background: #DDDF4C !important;<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  padding: 12px 22px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 8px !important;<!-- [et_pb_line_break_holder] -->  font-size: 14px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 600 !important;<!-- [et_pb_line_break_holder] -->  border: 2px solid #DDDF4C !important;<!-- [et_pb_line_break_holder] -->  cursor: pointer !important;<!-- [et_pb_line_break_holder] -->  white-space: nowrap !important;<!-- [et_pb_line_break_holder] -->  transition: transform 0.2s ease !important;<!-- [et_pb_line_break_holder] -->  text-decoration: none !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-xoa.upl-imap-xoa-wrapper .xo-cta-btn:hover {<!-- [et_pb_line_break_holder] -->  transform: translateY(-5px) !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-xoa.upl-imap-xoa-wrapper .xo-cta-icon {<!-- [et_pb_line_break_holder] -->  width: 15px !important;<!-- [et_pb_line_break_holder] -->  height: 15px !important;<!-- [et_pb_line_break_holder] -->  stroke: currentColor !important;<!-- [et_pb_line_break_holder] -->  fill: none !important;<!-- [et_pb_line_break_holder] -->  stroke-width: 2.5 !important;<!-- [et_pb_line_break_holder] -->  stroke-linecap: round !important;<!-- [et_pb_line_break_holder] -->  stroke-linejoin: round !important;<!-- [et_pb_line_break_holder] -->  flex-shrink: 0 !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->@media (max-width: 900px) {<!-- [et_pb_line_break_holder] -->  #upl-imap-xoa.upl-imap-xoa-wrapper {<!-- [et_pb_line_break_holder] -->    padding: 50px 20px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-xoa.upl-imap-xoa-wrapper h2 {<!-- [et_pb_line_break_holder] -->    font-size: 28px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->@media (max-width: 600px) {<!-- [et_pb_line_break_holder] -->  #upl-imap-xoa.upl-imap-xoa-wrapper {<!-- [et_pb_line_break_holder] -->    padding: 40px 16px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-xoa.upl-imap-xoa-wrapper h2 {<!-- [et_pb_line_break_holder] -->    font-size: 22px !important;<!-- [et_pb_line_break_holder] -->    line-height: 1.3 !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-xoa.upl-imap-xoa-wrapper .xo-intro {<!-- [et_pb_line_break_holder] -->    font-size: 15px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-xoa.upl-imap-xoa-wrapper .xo-tab {<!-- [et_pb_line_break_holder] -->    padding: 8px 14px !important;<!-- [et_pb_line_break_holder] -->    font-size: 12px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-xoa.upl-imap-xoa-wrapper .xo-pre {<!-- [et_pb_line_break_holder] -->    padding: 18px 16px !important;<!-- [et_pb_line_break_holder] -->    font-size: 12px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-xoa.upl-imap-xoa-wrapper .xo-cta-strip {<!-- [et_pb_line_break_holder] -->    flex-direction: column !important;<!-- [et_pb_line_break_holder] -->    align-items: flex-start !important;<!-- [et_pb_line_break_holder] -->    padding: 18px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-xoa.upl-imap-xoa-wrapper .xo-cta-btn {<!-- [et_pb_line_break_holder] -->    width: 100% !important;<!-- [et_pb_line_break_holder] -->    justify-content: center !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->@media (max-width: 400px) {<!-- [et_pb_line_break_holder] -->  #upl-imap-xoa.upl-imap-xoa-wrapper {<!-- [et_pb_line_break_holder] -->    padding: 36px 14px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-xoa.upl-imap-xoa-wrapper h2 {<!-- [et_pb_line_break_holder] -->    font-size: 20px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><\/style><!-- [et_pb_line_break_holder] --><\/head><!-- [et_pb_line_break_holder] --><body><!-- [et_pb_line_break_holder] --><div id=\"upl-imap-xoa\" class=\"upl-imap-xoa-wrapper\"><!-- [et_pb_line_break_holder] -->  <div class=\"xo-container\"><!-- [et_pb_line_break_holder] -->    <span id=\"imap-xoauth2\" style=\"display:block;position:relative;top:-80px;visibility:hidden;\"><\/span><!-- [et_pb_line_break_holder] -->    <div class=\"xo-badge\"><span class=\"xo-badge-dot\"><\/span><span>OAuth 2.0 Code<\/span><\/div><!-- [et_pb_line_break_holder] -->    <h2>Connecting via OAuth XOAUTH2<\/h2><!-- [et_pb_line_break_holder] -->    <pee class=\"xo-intro\">XOAUTH2 is the SASL mechanism that allows you to authenticate an IMAP server connection using an OAuth 2.0 access token instead of a password. The token is obtained through the standard OAuth authorization code flow (or client credentials for service accounts), base64-encoded into a specific format, and passed to the <code>AUTHENTICATE XOAUTH2<\/code> IMAP command.<\/pee><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    <div class=\"xo-provider-tabs\"><!-- [et_pb_line_break_holder] -->      <div class=\"xo-tab active\" onclick=\"xoShowTab(this,'xo-gmail')\"><img decoding=\"async\" src=\"https:\/\/www.unipile.com\/wp-content\/uploads\/2024\/02\/gmail-3.svg\" alt=\"Gmail logo\" width=\"16\" height=\"16\"><span>Gmail (Google)<\/span><\/div><!-- [et_pb_line_break_holder] -->      <div class=\"xo-tab\" onclick=\"xoShowTab(this,'xo-msft')\"><img decoding=\"async\" src=\"https:\/\/www.unipile.com\/wp-content\/uploads\/2024\/02\/outlook-2.svg\" alt=\"Outlook logo\" width=\"16\" height=\"16\"><span>Microsoft 365<\/span><\/div><!-- [et_pb_line_break_holder] -->    <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    <div id=\"xo-gmail\" class=\"xo-code-block active\"><!-- [et_pb_line_break_holder] -->      <div class=\"xo-editor-bar\"><!-- [et_pb_line_break_holder] -->        <span class=\"xo-dot xo-dot-r\"><\/span><span class=\"xo-dot xo-dot-y\"><\/span><span class=\"xo-dot xo-dot-g\"><\/span><!-- [et_pb_line_break_holder] -->        <span class=\"xo-filename\">gmail_xoauth2.py<\/span><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] -->      <div class=\"xo-pre\"><code><span class=\"k\">import<\/span><span class=\"w\"> imaplib, base64, json<\/span><!-- [et_pb_line_break_holder] --><span class=\"k\">from<\/span><span class=\"w\"> google.oauth2.credentials <\/span><span class=\"k\">import<\/span><span class=\"w\"> Credentials<\/span><!-- [et_pb_line_break_holder] --><span class=\"k\">from<\/span><span class=\"w\"> google.auth.transport.requests <\/span><span class=\"k\">import<\/span><span class=\"w\"> Request<\/span><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><span class=\"c\"># Load previously obtained OAuth credentials<\/span><!-- [et_pb_line_break_holder] --><span class=\"c\"># (from google-auth-oauthlib flow)<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">creds <\/span><span class=\"k\">=<\/span><span class=\"w\"> Credentials(<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">    token<\/span><span class=\"k\">=<\/span><span class=\"w\">ACCESS_TOKEN,<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">    refresh_token<\/span><span class=\"k\">=<\/span><span class=\"w\">REFRESH_TOKEN,<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">    token_uri<\/span><span class=\"k\">=<\/span><span class=\"s\">\"https:\/\/oauth2.googleapis.com\/token\"<\/span><span class=\"w\">,<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">    client_id<\/span><span class=\"k\">=<\/span><span class=\"w\">CLIENT_ID,<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">    client_secret<\/span><span class=\"k\">=<\/span><span class=\"w\">CLIENT_SECRET,<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">    scopes<\/span><span class=\"k\">=<\/span><span class=\"w\">[<\/span><span class=\"s\">\"https:\/\/mail.google.com\/\"<\/span><span class=\"w\">]<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">)<\/span><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><span class=\"c\"># Refresh token if expired<\/span><!-- [et_pb_line_break_holder] --><span class=\"k\">if<\/span><span class=\"w\"> creds.expired:<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">    creds.<\/span><span class=\"fn\">refresh<\/span><span class=\"w\">(<\/span><span class=\"fn\">Request<\/span><span class=\"w\">())<\/span><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><span class=\"c\"># Build XOAUTH2 string: \"user={email}\\x01auth=Bearer {token}\\x01\\x01\"<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">user_email <\/span><span class=\"k\">=<\/span><span class=\"w\"> <\/span><span class=\"s\">\"user@gmail.com\"<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">auth_string <\/span><span class=\"k\">=<\/span><span class=\"w\"> <\/span><span class=\"fn\">f<\/span><span class=\"s\">\"user={user_email}\\x01auth=Bearer {creds.token}\\x01\\x01\"<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">auth_b64 <\/span><span class=\"k\">=<\/span><span class=\"w\"> base64.<\/span><span class=\"fn\">b64encode<\/span><span class=\"w\">(auth_string.<\/span><span class=\"fn\">encode<\/span><span class=\"w\">()).decode()<\/span><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><span class=\"c\"># Open IMAP connection and authenticate<\/span><!-- [et_pb_line_break_holder] --><span class=\"k\">with<\/span><span class=\"w\"> imaplib.<\/span><span class=\"fn\">IMAP4_SSL<\/span><span class=\"w\">(<\/span><span class=\"s\">\"imap.gmail.com\"<\/span><span class=\"w\">, <\/span><span class=\"n\">993<\/span><span class=\"w\">) <\/span><span class=\"k\">as<\/span><span class=\"w\"> imap:<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">    imap.<\/span><span class=\"fn\">authenticate<\/span><span class=\"w\">(<\/span><span class=\"s\">\"XOAUTH2\"<\/span><span class=\"w\">, <\/span><span class=\"k\">lambda<\/span><span class=\"w\"> _: auth_b64)<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">    imap.<\/span><span class=\"fn\">select<\/span><span class=\"w\">(<\/span><span class=\"s\">\"INBOX\"<\/span><span class=\"w\">)<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">    <\/span><span class=\"fn\">print<\/span><span class=\"w\">(<\/span><span class=\"s\">\"Connected via XOAUTH2\"<\/span><span class=\"w\">)<\/span><\/code><\/div><!-- [et_pb_line_break_holder] -->    <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    <div id=\"xo-msft\" class=\"xo-code-block\"><!-- [et_pb_line_break_holder] -->      <div class=\"xo-editor-bar\"><!-- [et_pb_line_break_holder] -->        <span class=\"xo-dot xo-dot-r\"><\/span><span class=\"xo-dot xo-dot-y\"><\/span><span class=\"xo-dot xo-dot-g\"><\/span><!-- [et_pb_line_break_holder] -->        <span class=\"xo-filename\">outlook_xoauth2.py<\/span><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] -->      <div class=\"xo-pre\"><code><span class=\"k\">import<\/span><span class=\"w\"> imaplib, base64<\/span><!-- [et_pb_line_break_holder] --><span class=\"k\">from<\/span><span class=\"w\"> msal <\/span><span class=\"k\">import<\/span><span class=\"w\"> ConfidentialClientApplication<\/span><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><span class=\"c\"># Acquire token via MSAL (client credentials flow for service accounts)<\/span><!-- [et_pb_line_break_holder] --><span class=\"c\"># For user-delegated access use the auth code flow instead<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">app <\/span><span class=\"k\">=<\/span><span class=\"w\"> <\/span><span class=\"fn\">ConfidentialClientApplication<\/span><span class=\"w\">(<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">    client_id<\/span><span class=\"k\">=<\/span><span class=\"w\">CLIENT_ID,<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">    authority<\/span><span class=\"k\">=<\/span><span class=\"s\">f\"https:\/\/login.microsoftonline.com\/{TENANT_ID}\"<\/span><span class=\"w\">,<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">    client_credential<\/span><span class=\"k\">=<\/span><span class=\"w\">CLIENT_SECRET<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">)<\/span><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><span class=\"w\">result <\/span><span class=\"k\">=<\/span><span class=\"w\"> app.<\/span><span class=\"fn\">acquire_token_for_client<\/span><span class=\"w\">(<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">    scopes<\/span><span class=\"k\">=<\/span><span class=\"w\">[<\/span><span class=\"s\">\"https:\/\/outlook.office365.com\/.default\"<\/span><span class=\"w\">]<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">)<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">access_token <\/span><span class=\"k\">=<\/span><span class=\"w\"> result[<\/span><span class=\"s\">\"access_token\"<\/span><span class=\"w\">]<\/span><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><span class=\"c\"># Build XOAUTH2 string<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">user_email <\/span><span class=\"k\">=<\/span><span class=\"w\"> <\/span><span class=\"s\">\"user@company.com\"<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">auth_string <\/span><span class=\"k\">=<\/span><span class=\"w\"> <\/span><span class=\"fn\">f<\/span><span class=\"s\">\"user={user_email}\\x01auth=Bearer {access_token}\\x01\\x01\"<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">auth_b64 <\/span><span class=\"k\">=<\/span><span class=\"w\"> base64.<\/span><span class=\"fn\">b64encode<\/span><span class=\"w\">(auth_string.<\/span><span class=\"fn\">encode<\/span><span class=\"w\">()).decode()<\/span><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><span class=\"c\"># Connect to Outlook IMAP<\/span><!-- [et_pb_line_break_holder] --><span class=\"k\">with<\/span><span class=\"w\"> imaplib.<\/span><span class=\"fn\">IMAP4_SSL<\/span><span class=\"w\">(<\/span><span class=\"s\">\"outlook.office365.com\"<\/span><span class=\"w\">, <\/span><span class=\"n\">993<\/span><span class=\"w\">) <\/span><span class=\"k\">as<\/span><span class=\"w\"> imap:<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">    imap.<\/span><span class=\"fn\">authenticate<\/span><span class=\"w\">(<\/span><span class=\"s\">\"XOAUTH2\"<\/span><span class=\"w\">, <\/span><span class=\"k\">lambda<\/span><span class=\"w\"> _: auth_b64)<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">    imap.<\/span><span class=\"fn\">select<\/span><span class=\"w\">(<\/span><span class=\"s\">\"INBOX\"<\/span><span class=\"w\">)<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">    <\/span><span class=\"fn\">print<\/span><span class=\"w\">(<\/span><span class=\"s\">\"Connected via XOAUTH2 to Outlook\"<\/span><span class=\"w\">)<\/span><\/code><\/div><!-- [et_pb_line_break_holder] -->    <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    <div class=\"xo-body\"><!-- [et_pb_line_break_holder] -->      <pee><strong>Key differences between Gmail and Microsoft XOAUTH2:<\/strong> Gmail requires the <code>https:\/\/mail.google.com\/<\/code> scope (full Gmail access). Microsoft requires <code>IMAP.AccessAsUser.All<\/code> (delegated) or <code>IMAP.AccessAsApp<\/code> (application). The base64 XOAUTH2 string format is identical for both providers: <code>user={email}\\x01auth=Bearer {token}\\x01\\x01<\/code>.<\/pee><!-- [et_pb_line_break_holder] -->      <pee>One critical implementation detail: <strong>tokens expire after 3600 seconds<\/strong>. A long-running IMAP IDLE session (see the next section) will receive an authentication error when the token expires mid-session. You need to catch the <code>AUTHENTICATIONFAILED<\/code> error, refresh the token using your refresh token, then re-establish the IMAP connection. This retry loop is non-trivial and is a primary reason why teams choose a managed API like <a href=\"https:\/\/www.unipile.com\/email-api-guide\/\">Unified Email API guide<\/a> instead of raw IMAP connections.<\/pee><!-- [et_pb_line_break_holder] -->      <pee>For a complete OAuth setup guide for Microsoft, including conditional access policy considerations, see our <a href=\"https:\/\/www.unipile.com\/microsoft-graph-oauth-email\/\">Microsoft Graph OAuth for Outlook<\/a> guide.<\/pee><!-- [et_pb_line_break_holder] -->    <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    <div class=\"xo-cta-strip\"><!-- [et_pb_line_break_holder] -->      <pee class=\"xo-cta-text\"><strong>OAuth XOAUTH2 in 10 lines.<\/strong> Unipile handles token acquisition, refresh, and IMAP re-authentication automatically. You focus on reading emails, not on connection management.<\/pee><!-- [et_pb_line_break_holder] -->      <a href=\"https:\/\/dashboard.unipile.com\/signup\/\" target=\"_blank\" class=\"xo-cta-btn\"><span>Build OAuth XOAUTH2 in 10 lines with Unipile<\/span><svg class=\"xo-cta-icon\" viewBox=\"0 0 24 24\"><line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\"\/><polyline points=\"12 5 19 12 12 19\"\/><\/svg><\/a><!-- [et_pb_line_break_holder] -->    <\/div><!-- [et_pb_line_break_holder] -->  <\/div><!-- [et_pb_line_break_holder] --><\/div><!-- [et_pb_line_break_holder] --><script><!-- [et_pb_line_break_holder] -->function xoShowTab(el, id) {<!-- [et_pb_line_break_holder] -->  var container = el.closest('#upl-imap-xoa');<!-- [et_pb_line_break_holder] -->  container.querySelectorAll('.xo-tab').forEach(function(t){ t.classList.remove('active'); });<!-- [et_pb_line_break_holder] -->  container.querySelectorAll('.xo-code-block').forEach(function(b){ b.classList.remove('active'); });<!-- [et_pb_line_break_holder] -->  el.classList.add('active');<!-- [et_pb_line_break_holder] -->  container.querySelector('#' + id).classList.add('active');<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><\/script><!-- [et_pb_line_break_holder] --><\/body><!-- [et_pb_line_break_holder] --><\/html>[\/et_pb_code][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.27.0&#8243; background_color=&#8221;transparent&#8221; custom_padding=&#8221;0px||0px||false|false&#8221; da_disable_devices=&#8221;off|off|off&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221; da_is_popup=&#8221;off&#8221; da_exit_intent=&#8221;off&#8221; da_has_close=&#8221;on&#8221; da_alt_close=&#8221;off&#8221; da_dark_close=&#8221;off&#8221; da_not_modal=&#8221;on&#8221; da_is_singular=&#8221;off&#8221; da_with_loader=&#8221;off&#8221; da_has_shadow=&#8221;on&#8221;][et_pb_row _builder_version=&#8221;4.27.0&#8243; max_width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.27.0&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_code _builder_version=&#8221;4.27.0&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Inter:wght@400;500;600;700&#038;family=Poppins:wght@700;800&#038;display=swap\" rel=\"stylesheet\"><!-- [et_pb_line_break_holder] --><style><!-- [et_pb_line_break_holder] -->#upl-imap-idle,<!-- [et_pb_line_break_holder] -->#upl-imap-idle *,<!-- [et_pb_line_break_holder] -->#upl-imap-idle *::before,<!-- [et_pb_line_break_holder] -->#upl-imap-idle *::after {<!-- [et_pb_line_break_holder] -->  margin: 0 !important;<!-- [et_pb_line_break_holder] -->  padding: 0 !important;<!-- [et_pb_line_break_holder] -->  box-sizing: border-box !important;<!-- [et_pb_line_break_holder] -->  border: none !important;<!-- [et_pb_line_break_holder] -->  outline: none !important;<!-- [et_pb_line_break_holder] -->  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.5 !important;<!-- [et_pb_line_break_holder] -->  letter-spacing: normal !important;<!-- [et_pb_line_break_holder] -->  text-transform: none !important;<!-- [et_pb_line_break_holder] -->  text-decoration: none !important;<!-- [et_pb_line_break_holder] -->  list-style: none !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-idle.upl-imap-idle-wrapper {<!-- [et_pb_line_break_holder] -->  display: block !important;<!-- [et_pb_line_break_holder] -->  padding: 70px 24px !important;<!-- [et_pb_line_break_holder] -->  background: #f4f5f7 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-idle.upl-imap-idle-wrapper .id-container {<!-- [et_pb_line_break_holder] -->  max-width: 1100px !important;<!-- [et_pb_line_break_holder] -->  margin: 0 auto !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-idle.upl-imap-idle-wrapper .id-badge {<!-- [et_pb_line_break_holder] -->  display: inline-flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 8px !important;<!-- [et_pb_line_break_holder] -->  background: rgba(59, 185, 139, 0.12) !important;<!-- [et_pb_line_break_holder] -->  color: #2aaa7e !important;<!-- [et_pb_line_break_holder] -->  padding: 6px 14px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 20px !important;<!-- [et_pb_line_break_holder] -->  font-size: 12px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  text-transform: uppercase !important;<!-- [et_pb_line_break_holder] -->  letter-spacing: 0.5px !important;<!-- [et_pb_line_break_holder] -->  width: fit-content !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 16px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-idle.upl-imap-idle-wrapper .id-badge-dot {<!-- [et_pb_line_break_holder] -->  width: 7px !important;<!-- [et_pb_line_break_holder] -->  height: 7px !important;<!-- [et_pb_line_break_holder] -->  background: #3BB98B !important;<!-- [et_pb_line_break_holder] -->  border-radius: 50% !important;<!-- [et_pb_line_break_holder] -->  flex-shrink: 0 !important;<!-- [et_pb_line_break_holder] -->  display: inline-block !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-idle.upl-imap-idle-wrapper h2 {<!-- [et_pb_line_break_holder] -->  font-family: 'Poppins', sans-serif !important;<!-- [et_pb_line_break_holder] -->  font-size: 35px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.2 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 16px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-idle.upl-imap-idle-wrapper .id-intro {<!-- [et_pb_line_break_holder] -->  font-size: 16px !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.78 !important;<!-- [et_pb_line_break_holder] -->  color: #383838 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 36px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-idle.upl-imap-idle-wrapper .id-table-wrap {<!-- [et_pb_line_break_holder] -->  overflow-x: auto !important;<!-- [et_pb_line_break_holder] -->  border-radius: 16px !important;<!-- [et_pb_line_break_holder] -->  border: 1px solid #e5e7eb !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 28px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-idle.upl-imap-idle-wrapper table {<!-- [et_pb_line_break_holder] -->  width: 100% !important;<!-- [et_pb_line_break_holder] -->  border-collapse: collapse !important;<!-- [et_pb_line_break_holder] -->  background: #ffffff !important;<!-- [et_pb_line_break_holder] -->  min-width: 600px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-idle.upl-imap-idle-wrapper thead tr {<!-- [et_pb_line_break_holder] -->  background: #0f2736 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-idle.upl-imap-idle-wrapper thead th {<!-- [et_pb_line_break_holder] -->  padding: 14px 18px !important;<!-- [et_pb_line_break_holder] -->  text-align: left !important;<!-- [et_pb_line_break_holder] -->  font-size: 12px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  color: rgba(255,255,255,0.9) !important;<!-- [et_pb_line_break_holder] -->  text-transform: uppercase !important;<!-- [et_pb_line_break_holder] -->  letter-spacing: 0.5px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-idle.upl-imap-idle-wrapper tbody tr {<!-- [et_pb_line_break_holder] -->  border-bottom: 1px solid #f0f2f5 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-idle.upl-imap-idle-wrapper tbody tr:last-child {<!-- [et_pb_line_break_holder] -->  border-bottom: none !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-idle.upl-imap-idle-wrapper tbody td {<!-- [et_pb_line_break_holder] -->  padding: 14px 18px !important;<!-- [et_pb_line_break_holder] -->  font-size: 14px !important;<!-- [et_pb_line_break_holder] -->  color: #383838 !important;<!-- [et_pb_line_break_holder] -->  vertical-align: top !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-idle.upl-imap-idle-wrapper .td-method {<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-idle.upl-imap-idle-wrapper .id-tag {<!-- [et_pb_line_break_holder] -->  display: inline-flex !important;<!-- [et_pb_line_break_holder] -->  padding: 3px 10px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 20px !important;<!-- [et_pb_line_break_holder] -->  font-size: 11px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  text-transform: uppercase !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-idle.upl-imap-idle-wrapper .tag-green {<!-- [et_pb_line_break_holder] -->  background: rgba(59, 185, 139, 0.12) !important;<!-- [et_pb_line_break_holder] -->  color: #2aaa7e !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-idle.upl-imap-idle-wrapper .tag-yellow {<!-- [et_pb_line_break_holder] -->  background: rgba(221, 223, 76, 0.18) !important;<!-- [et_pb_line_break_holder] -->  color: #8a8c2e !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-idle.upl-imap-idle-wrapper .tag-red {<!-- [et_pb_line_break_holder] -->  background: rgba(234, 67, 53, 0.10) !important;<!-- [et_pb_line_break_holder] -->  color: #c0392b !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-idle.upl-imap-idle-wrapper .id-body p {<!-- [et_pb_line_break_holder] -->  font-size: 16px !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.78 !important;<!-- [et_pb_line_break_holder] -->  color: #383838 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 16px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-idle.upl-imap-idle-wrapper .id-body p:last-child {<!-- [et_pb_line_break_holder] -->  margin-bottom: 0 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-idle.upl-imap-idle-wrapper .id-body strong {<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-idle.upl-imap-idle-wrapper .id-body a {<!-- [et_pb_line_break_holder] -->  color: #2aaa7e !important;<!-- [et_pb_line_break_holder] -->  text-decoration: underline !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->@media (max-width: 900px) {<!-- [et_pb_line_break_holder] -->  #upl-imap-idle.upl-imap-idle-wrapper {<!-- [et_pb_line_break_holder] -->    padding: 50px 20px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-idle.upl-imap-idle-wrapper h2 {<!-- [et_pb_line_break_holder] -->    font-size: 28px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->@media (max-width: 600px) {<!-- [et_pb_line_break_holder] -->  #upl-imap-idle.upl-imap-idle-wrapper {<!-- [et_pb_line_break_holder] -->    padding: 40px 16px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-idle.upl-imap-idle-wrapper h2 {<!-- [et_pb_line_break_holder] -->    font-size: 26px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><\/style><!-- [et_pb_line_break_holder] --><div id=\"upl-imap-idle\" class=\"upl-imap-idle-wrapper\"><!-- [et_pb_line_break_holder] -->  <div class=\"id-container\"><!-- [et_pb_line_break_holder] -->    <span id=\"imap-idle\" style=\"display:block;position:relative;top:-80px;visibility:hidden;\"><\/span><!-- [et_pb_line_break_holder] -->    <div class=\"id-badge\"><span class=\"id-badge-dot\"><\/span><span>Real-time Sync<\/span><\/div><!-- [et_pb_line_break_holder] -->    <h2>IDLE, polling and push notifications: keeping the IMAP connection alive<\/h2><!-- [et_pb_line_break_holder] -->    <pee class=\"id-intro\">Once you have an authenticated IMAP server connection, the next challenge is detecting new messages efficiently without hammering the server with constant requests. There are three patterns in use today &#8211; each with different latency, complexity, and infrastructure requirements.<\/pee><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    <div class=\"id-table-wrap\"><!-- [et_pb_line_break_holder] -->      <table><!-- [et_pb_line_break_holder] -->        <thead><!-- [et_pb_line_break_holder] -->          <tr><!-- [et_pb_line_break_holder] -->            <th>Method<\/th><!-- [et_pb_line_break_holder] -->            <th>How it works<\/th><!-- [et_pb_line_break_holder] -->            <th>Latency<\/th><!-- [et_pb_line_break_holder] -->            <th>Infrastructure<\/th><!-- [et_pb_line_break_holder] -->            <th>Best for<\/th><!-- [et_pb_line_break_holder] -->            <th>Rating<\/th><!-- [et_pb_line_break_holder] -->          <\/tr><!-- [et_pb_line_break_holder] -->        <\/thead><!-- [et_pb_line_break_holder] -->        <tbody><!-- [et_pb_line_break_holder] -->          <tr><!-- [et_pb_line_break_holder] -->            <td class=\"td-method\">IMAP IDLE (RFC 2177)<\/td><!-- [et_pb_line_break_holder] -->            <td>Client issues IDLE command; server sends EXISTS\/RECENT notifications over the open TCP connection when new mail arrives. Client must send DONE + re-issue IDLE every 29 minutes (server timeout).<\/td><!-- [et_pb_line_break_holder] -->            <td>~1-5 seconds<\/td><!-- [et_pb_line_break_holder] -->            <td>1 persistent TCP connection per mailbox. Requires a dedicated thread or async loop.<\/td><!-- [et_pb_line_break_holder] -->            <td>Single-user tools, desktop clients, low-latency monitoring<\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"id-tag tag-green\"><span>Good<\/span><\/span><\/td><!-- [et_pb_line_break_holder] -->          <\/tr><!-- [et_pb_line_break_holder] -->          <tr><!-- [et_pb_line_break_holder] -->            <td class=\"td-method\">Polling (NOOP \/ CHECK)<\/td><!-- [et_pb_line_break_holder] -->            <td>Client reconnects periodically, issues SELECT + SEARCH UNSEEN to look for new messages, then disconnects. Simple and stateless.<\/td><!-- [et_pb_line_break_holder] -->            <td>Equal to poll interval (typically 1-15 min)<\/td><!-- [et_pb_line_break_holder] -->            <td>Stateless. Works behind NAT\/firewalls. No persistent connection.<\/td><!-- [et_pb_line_break_holder] -->            <td>Batch processing, high-latency acceptable, environments where persistent connections are blocked<\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"id-tag tag-yellow\"><span>Acceptable<\/span><\/span><\/td><!-- [et_pb_line_break_holder] -->          <\/tr><!-- [et_pb_line_break_holder] -->          <tr><!-- [et_pb_line_break_holder] -->            <td class=\"td-method\">Provider push (Gmail Pub\/Sub, MS Graph webhooks)<\/td><!-- [et_pb_line_break_holder] -->            <td>Provider sends HTTP notification to your webhook endpoint when new mail arrives. No IMAP connection needed at rest. Gmail uses Google Cloud Pub\/Sub; Microsoft uses MS Graph change notifications.<\/td><!-- [et_pb_line_break_holder] -->            <td>Near real-time (<1 second typical)<\/td><!-- [et_pb_line_break_holder] -->            <td>Requires a public HTTPS endpoint and Pub\/Sub subscription. No persistent IMAP connection at rest.<\/td><!-- [et_pb_line_break_holder] -->            <td>High-scale multi-account production systems, serverless architectures<\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"id-tag tag-green\"><span>Best at scale<\/span><\/span><\/td><!-- [et_pb_line_break_holder] -->          <\/tr><!-- [et_pb_line_break_holder] -->        <\/tbody><!-- [et_pb_line_break_holder] -->      <\/table><!-- [et_pb_line_break_holder] -->    <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    <div class=\"id-body\"><!-- [et_pb_line_break_holder] -->      <pee><strong>IDLE is the right choice for simple integrations<\/strong> where you control a small number of accounts. The main gotchas: you must reconnect before the 29-minute IDLE timeout (Gmail enforces this strictly), and you need separate IMAP connections for each mailbox &#8211; which becomes expensive at hundreds or thousands of accounts.<\/pee><!-- [et_pb_line_break_holder] -->      <pee><strong>Provider push notifications<\/strong> are the correct architecture for production multi-account systems. Gmail&#8217;s Pub\/Sub integration and Microsoft Graph&#8217;s subscription webhooks both deliver near-real-time notifications without requiring a persistent IMAP connection for each account. The trade-off: you still need to open an IMAP connection to fetch the actual message body when notified, which means your IMAP connection code is still needed &#8211; just not kept open continuously. For reading email messages via API, see our guide on <a href=\"https:\/\/www.unipile.com\/read-email-api\/\">reading emails via API<\/a> and <a href=\"https:\/\/www.unipile.com\/send-email-api\/\">sending emails via API<\/a>.<\/pee><!-- [et_pb_line_break_holder] -->    <\/div><!-- [et_pb_line_break_holder] -->  <\/div><!-- [et_pb_line_break_holder] --><\/div>[\/et_pb_code][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.27.0&#8243; background_color=&#8221;transparent&#8221; custom_padding=&#8221;0px||0px||false|false&#8221; da_disable_devices=&#8221;off|off|off&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221; da_is_popup=&#8221;off&#8221; da_exit_intent=&#8221;off&#8221; da_has_close=&#8221;on&#8221; da_alt_close=&#8221;off&#8221; da_dark_close=&#8221;off&#8221; da_not_modal=&#8221;on&#8221; da_is_singular=&#8221;off&#8221; da_with_loader=&#8221;off&#8221; da_has_shadow=&#8221;on&#8221;][et_pb_row _builder_version=&#8221;4.27.0&#8243; max_width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.27.0&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_code _builder_version=&#8221;4.27.4&#8243; hover_enabled=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221; sticky_enabled=&#8221;0&#8243;]<!DOCTYPE html><!-- [et_pb_line_break_holder] --><html lang=\"en\"><!-- [et_pb_line_break_holder] --><head><!-- [et_pb_line_break_holder] --><meta charset=\"UTF-8\"><!-- [et_pb_line_break_holder] --><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><!-- [et_pb_line_break_holder] --><title>Unipile &#8211; IMAP Troubleshooting Matrix<\/title><!-- [et_pb_line_break_holder] --><link href=\"https:\/\/fonts.googleapis.com\/css2?family=Inter:wght@400;500;600;700&#038;family=Poppins:wght@700;800&#038;display=swap\" rel=\"stylesheet\"><!-- [et_pb_line_break_holder] --><style><!-- [et_pb_line_break_holder] -->#upl-imap-trbl,<!-- [et_pb_line_break_holder] -->#upl-imap-trbl *,<!-- [et_pb_line_break_holder] -->#upl-imap-trbl *::before,<!-- [et_pb_line_break_holder] -->#upl-imap-trbl *::after {<!-- [et_pb_line_break_holder] -->  margin: 0 !important;<!-- [et_pb_line_break_holder] -->  padding: 0 !important;<!-- [et_pb_line_break_holder] -->  box-sizing: border-box !important;<!-- [et_pb_line_break_holder] -->  border: none !important;<!-- [et_pb_line_break_holder] -->  outline: none !important;<!-- [et_pb_line_break_holder] -->  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.5 !important;<!-- [et_pb_line_break_holder] -->  letter-spacing: normal !important;<!-- [et_pb_line_break_holder] -->  text-transform: none !important;<!-- [et_pb_line_break_holder] -->  text-decoration: none !important;<!-- [et_pb_line_break_holder] -->  list-style: none !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-trbl.upl-imap-trbl-wrapper {<!-- [et_pb_line_break_holder] -->  display: block !important;<!-- [et_pb_line_break_holder] -->  padding: 70px 24px !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-trbl.upl-imap-trbl-wrapper .tr-container {<!-- [et_pb_line_break_holder] -->  max-width: 1100px !important;<!-- [et_pb_line_break_holder] -->  margin: 0 auto !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-trbl.upl-imap-trbl-wrapper .tr-badge {<!-- [et_pb_line_break_holder] -->  display: inline-flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 8px !important;<!-- [et_pb_line_break_holder] -->  background: rgba(59, 185, 139, 0.12) !important;<!-- [et_pb_line_break_holder] -->  color: #2aaa7e !important;<!-- [et_pb_line_break_holder] -->  padding: 6px 14px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 20px !important;<!-- [et_pb_line_break_holder] -->  font-size: 12px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  text-transform: uppercase !important;<!-- [et_pb_line_break_holder] -->  letter-spacing: 0.5px !important;<!-- [et_pb_line_break_holder] -->  width: fit-content !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 16px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-trbl.upl-imap-trbl-wrapper .tr-badge-dot {<!-- [et_pb_line_break_holder] -->  width: 7px !important;<!-- [et_pb_line_break_holder] -->  height: 7px !important;<!-- [et_pb_line_break_holder] -->  background: #3BB98B !important;<!-- [et_pb_line_break_holder] -->  border-radius: 50% !important;<!-- [et_pb_line_break_holder] -->  flex-shrink: 0 !important;<!-- [et_pb_line_break_holder] -->  display: inline-block !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-trbl.upl-imap-trbl-wrapper h2 {<!-- [et_pb_line_break_holder] -->  font-family: 'Poppins', sans-serif !important;<!-- [et_pb_line_break_holder] -->  font-size: 35px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.2 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 16px !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-trbl.upl-imap-trbl-wrapper .tr-intro {<!-- [et_pb_line_break_holder] -->  font-size: 16px !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.78 !important;<!-- [et_pb_line_break_holder] -->  color: #383838 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 36px !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->\/* DESKTOP TABLE *\/<!-- [et_pb_line_break_holder] -->#upl-imap-trbl.upl-imap-trbl-wrapper .tr-table-wrap {<!-- [et_pb_line_break_holder] -->  overflow-x: auto !important;<!-- [et_pb_line_break_holder] -->  border-radius: 16px !important;<!-- [et_pb_line_break_holder] -->  border: 1px solid #e5e7eb !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 32px !important;<!-- [et_pb_line_break_holder] -->  background: #ffffff !important;<!-- [et_pb_line_break_holder] -->  -webkit-overflow-scrolling: touch !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-trbl.upl-imap-trbl-wrapper table {<!-- [et_pb_line_break_holder] -->  width: 100% !important;<!-- [et_pb_line_break_holder] -->  border-collapse: collapse !important;<!-- [et_pb_line_break_holder] -->  background: #ffffff !important;<!-- [et_pb_line_break_holder] -->  min-width: 820px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-trbl.upl-imap-trbl-wrapper thead tr {<!-- [et_pb_line_break_holder] -->  background: #0f2736 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-trbl.upl-imap-trbl-wrapper thead th {<!-- [et_pb_line_break_holder] -->  padding: 14px 18px !important;<!-- [et_pb_line_break_holder] -->  text-align: left !important;<!-- [et_pb_line_break_holder] -->  font-size: 12px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  color: rgba(255,255,255,0.9) !important;<!-- [et_pb_line_break_holder] -->  text-transform: uppercase !important;<!-- [et_pb_line_break_holder] -->  letter-spacing: 0.5px !important;<!-- [et_pb_line_break_holder] -->  white-space: nowrap !important;<!-- [et_pb_line_break_holder] -->  background: #0f2736 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-trbl.upl-imap-trbl-wrapper tbody tr {<!-- [et_pb_line_break_holder] -->  border-bottom: 1px solid #f0f2f5 !important;<!-- [et_pb_line_break_holder] -->  background: #ffffff !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-trbl.upl-imap-trbl-wrapper tbody tr:last-child {<!-- [et_pb_line_break_holder] -->  border-bottom: none !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-trbl.upl-imap-trbl-wrapper tbody tr:hover {<!-- [et_pb_line_break_holder] -->  background: #f8fafc !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-trbl.upl-imap-trbl-wrapper tbody td {<!-- [et_pb_line_break_holder] -->  padding: 14px 18px !important;<!-- [et_pb_line_break_holder] -->  font-size: 14px !important;<!-- [et_pb_line_break_holder] -->  color: #383838 !important;<!-- [et_pb_line_break_holder] -->  vertical-align: top !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.6 !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-trbl.upl-imap-trbl-wrapper .td-symptom {<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-trbl.upl-imap-trbl-wrapper .tr-sev {<!-- [et_pb_line_break_holder] -->  display: inline-flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  padding: 3px 10px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 20px !important;<!-- [et_pb_line_break_holder] -->  font-size: 11px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  text-transform: uppercase !important;<!-- [et_pb_line_break_holder] -->  white-space: nowrap !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-trbl.upl-imap-trbl-wrapper .sev-high {<!-- [et_pb_line_break_holder] -->  background: rgba(234, 67, 53, 0.10) !important;<!-- [et_pb_line_break_holder] -->  color: #c0392b !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-trbl.upl-imap-trbl-wrapper .sev-med {<!-- [et_pb_line_break_holder] -->  background: rgba(221, 223, 76, 0.18) !important;<!-- [et_pb_line_break_holder] -->  color: #8a8c2e !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-trbl.upl-imap-trbl-wrapper .sev-low {<!-- [et_pb_line_break_holder] -->  background: rgba(59, 185, 139, 0.12) !important;<!-- [et_pb_line_break_holder] -->  color: #2aaa7e !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-trbl.upl-imap-trbl-wrapper .tr-fix code,<!-- [et_pb_line_break_holder] -->#upl-imap-trbl.upl-imap-trbl-wrapper .tr-card-fix code {<!-- [et_pb_line_break_holder] -->  background: rgba(0,0,0,0.06) !important;<!-- [et_pb_line_break_holder] -->  padding: 2px 5px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 4px !important;<!-- [et_pb_line_break_holder] -->  font-family: 'Courier New', monospace !important;<!-- [et_pb_line_break_holder] -->  font-size: 12.5px !important;<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  word-break: break-word !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->\/* MOBILE CARDS - hidden by default *\/<!-- [et_pb_line_break_holder] -->#upl-imap-trbl.upl-imap-trbl-wrapper .tr-mobile-cards {<!-- [et_pb_line_break_holder] -->  display: none !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->\/* CTA STRIP *\/<!-- [et_pb_line_break_holder] -->#upl-imap-trbl.upl-imap-trbl-wrapper .tr-cta-strip {<!-- [et_pb_line_break_holder] -->  display: flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  justify-content: space-between !important;<!-- [et_pb_line_break_holder] -->  gap: 20px !important;<!-- [et_pb_line_break_holder] -->  background: #ffffff !important;<!-- [et_pb_line_break_holder] -->  border: 1px solid #e5e7eb !important;<!-- [et_pb_line_break_holder] -->  border-radius: 12px !important;<!-- [et_pb_line_break_holder] -->  padding: 20px 24px !important;<!-- [et_pb_line_break_holder] -->  flex-wrap: wrap !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-trbl.upl-imap-trbl-wrapper .tr-cta-text {<!-- [et_pb_line_break_holder] -->  font-size: 15px !important;<!-- [et_pb_line_break_holder] -->  color: #383838 !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.6 !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->  flex: 1 1 300px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-trbl.upl-imap-trbl-wrapper .tr-cta-text strong {<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-trbl.upl-imap-trbl-wrapper .tr-cta-btn {<!-- [et_pb_line_break_holder] -->  display: inline-flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 8px !important;<!-- [et_pb_line_break_holder] -->  background: #DDDF4C !important;<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  padding: 12px 22px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 8px !important;<!-- [et_pb_line_break_holder] -->  font-size: 14px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 600 !important;<!-- [et_pb_line_break_holder] -->  border: 2px solid #DDDF4C !important;<!-- [et_pb_line_break_holder] -->  cursor: pointer !important;<!-- [et_pb_line_break_holder] -->  white-space: nowrap !important;<!-- [et_pb_line_break_holder] -->  transition: transform 0.2s ease !important;<!-- [et_pb_line_break_holder] -->  text-decoration: none !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-trbl.upl-imap-trbl-wrapper .tr-cta-btn:hover {<!-- [et_pb_line_break_holder] -->  transform: translateY(-5px) !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-trbl.upl-imap-trbl-wrapper .tr-cta-icon {<!-- [et_pb_line_break_holder] -->  width: 15px !important;<!-- [et_pb_line_break_holder] -->  height: 15px !important;<!-- [et_pb_line_break_holder] -->  stroke: currentColor !important;<!-- [et_pb_line_break_holder] -->  fill: none !important;<!-- [et_pb_line_break_holder] -->  stroke-width: 2.5 !important;<!-- [et_pb_line_break_holder] -->  stroke-linecap: round !important;<!-- [et_pb_line_break_holder] -->  stroke-linejoin: round !important;<!-- [et_pb_line_break_holder] -->  flex-shrink: 0 !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->\/* MOBILE BREAKPOINT - switch to cards *\/<!-- [et_pb_line_break_holder] -->@media (max-width: 768px) {<!-- [et_pb_line_break_holder] -->  #upl-imap-trbl.upl-imap-trbl-wrapper .tr-table-wrap {<!-- [et_pb_line_break_holder] -->    display: none !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-trbl.upl-imap-trbl-wrapper .tr-mobile-cards {<!-- [et_pb_line_break_holder] -->    display: flex !important;<!-- [et_pb_line_break_holder] -->    flex-direction: column !important;<!-- [et_pb_line_break_holder] -->    gap: 14px !important;<!-- [et_pb_line_break_holder] -->    margin-bottom: 32px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-trbl.upl-imap-trbl-wrapper .tr-card {<!-- [et_pb_line_break_holder] -->    background: #ffffff !important;<!-- [et_pb_line_break_holder] -->    border: 1px solid #e5e7eb !important;<!-- [et_pb_line_break_holder] -->    border-radius: 14px !important;<!-- [et_pb_line_break_holder] -->    padding: 18px !important;<!-- [et_pb_line_break_holder] -->    display: flex !important;<!-- [et_pb_line_break_holder] -->    flex-direction: column !important;<!-- [et_pb_line_break_holder] -->    gap: 12px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-trbl.upl-imap-trbl-wrapper .tr-card-header {<!-- [et_pb_line_break_holder] -->    display: flex !important;<!-- [et_pb_line_break_holder] -->    align-items: flex-start !important;<!-- [et_pb_line_break_holder] -->    justify-content: space-between !important;<!-- [et_pb_line_break_holder] -->    gap: 10px !important;<!-- [et_pb_line_break_holder] -->    padding-bottom: 12px !important;<!-- [et_pb_line_break_holder] -->    border-bottom: 1px solid #f0f2f5 !important;<!-- [et_pb_line_break_holder] -->    background: transparent !important;<!-- [et_pb_line_break_holder] -->    flex-wrap: wrap !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-trbl.upl-imap-trbl-wrapper .tr-card-title {<!-- [et_pb_line_break_holder] -->    font-size: 15px !important;<!-- [et_pb_line_break_holder] -->    font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->    color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->    line-height: 1.4 !important;<!-- [et_pb_line_break_holder] -->    background: transparent !important;<!-- [et_pb_line_break_holder] -->    flex: 1 1 auto !important;<!-- [et_pb_line_break_holder] -->    word-break: break-word !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-trbl.upl-imap-trbl-wrapper .tr-card-row {<!-- [et_pb_line_break_holder] -->    display: flex !important;<!-- [et_pb_line_break_holder] -->    flex-direction: column !important;<!-- [et_pb_line_break_holder] -->    gap: 5px !important;<!-- [et_pb_line_break_holder] -->    background: transparent !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-trbl.upl-imap-trbl-wrapper .tr-card-label {<!-- [et_pb_line_break_holder] -->    font-size: 11px !important;<!-- [et_pb_line_break_holder] -->    font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->    color: #6b7280 !important;<!-- [et_pb_line_break_holder] -->    text-transform: uppercase !important;<!-- [et_pb_line_break_holder] -->    letter-spacing: 0.5px !important;<!-- [et_pb_line_break_holder] -->    background: transparent !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-trbl.upl-imap-trbl-wrapper .tr-card-value {<!-- [et_pb_line_break_holder] -->    font-size: 14px !important;<!-- [et_pb_line_break_holder] -->    color: #383838 !important;<!-- [et_pb_line_break_holder] -->    line-height: 1.55 !important;<!-- [et_pb_line_break_holder] -->    background: transparent !important;<!-- [et_pb_line_break_holder] -->    word-break: break-word !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->@media (max-width: 900px) {<!-- [et_pb_line_break_holder] -->  #upl-imap-trbl.upl-imap-trbl-wrapper {<!-- [et_pb_line_break_holder] -->    padding: 50px 20px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-trbl.upl-imap-trbl-wrapper h2 {<!-- [et_pb_line_break_holder] -->    font-size: 28px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->@media (max-width: 600px) {<!-- [et_pb_line_break_holder] -->  #upl-imap-trbl.upl-imap-trbl-wrapper {<!-- [et_pb_line_break_holder] -->    padding: 40px 16px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-trbl.upl-imap-trbl-wrapper h2 {<!-- [et_pb_line_break_holder] -->    font-size: 22px !important;<!-- [et_pb_line_break_holder] -->    line-height: 1.3 !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-trbl.upl-imap-trbl-wrapper .tr-intro {<!-- [et_pb_line_break_holder] -->    font-size: 15px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-trbl.upl-imap-trbl-wrapper .tr-cta-strip {<!-- [et_pb_line_break_holder] -->    flex-direction: column !important;<!-- [et_pb_line_break_holder] -->    align-items: flex-start !important;<!-- [et_pb_line_break_holder] -->    padding: 18px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-trbl.upl-imap-trbl-wrapper .tr-cta-btn {<!-- [et_pb_line_break_holder] -->    width: 100% !important;<!-- [et_pb_line_break_holder] -->    justify-content: center !important;<!-- [et_pb_line_break_holder] -->    white-space: normal !important;<!-- [et_pb_line_break_holder] -->    text-align: center !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->@media (max-width: 400px) {<!-- [et_pb_line_break_holder] -->  #upl-imap-trbl.upl-imap-trbl-wrapper {<!-- [et_pb_line_break_holder] -->    padding: 36px 14px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-trbl.upl-imap-trbl-wrapper h2 {<!-- [et_pb_line_break_holder] -->    font-size: 20px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-trbl.upl-imap-trbl-wrapper .tr-card {<!-- [et_pb_line_break_holder] -->    padding: 16px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><\/style><!-- [et_pb_line_break_holder] --><\/head><!-- [et_pb_line_break_holder] --><body><!-- [et_pb_line_break_holder] --><div id=\"upl-imap-trbl\" class=\"upl-imap-trbl-wrapper\"><!-- [et_pb_line_break_holder] -->  <div class=\"tr-container\"><!-- [et_pb_line_break_holder] -->    <span id=\"imap-troubleshooting\" style=\"display:block;position:relative;top:-80px;visibility:hidden;\"><\/span><!-- [et_pb_line_break_holder] -->    <div class=\"tr-badge\"><span class=\"tr-badge-dot\"><\/span><span>Troubleshooting<\/span><\/div><!-- [et_pb_line_break_holder] -->    <h2>Troubleshooting matrix: timeouts, handshake failures, auth errors, rate limits<\/h2><!-- [et_pb_line_break_holder] -->    <pee class=\"tr-intro\">Below is a structured reference for the most common IMAP server connection errors. Match the symptom (error message or observable behavior) to the likely cause and the recommended fix.<\/pee><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    <!-- DESKTOP TABLE --><!-- [et_pb_line_break_holder] -->    <div class=\"tr-table-wrap\"><!-- [et_pb_line_break_holder] -->      <table><!-- [et_pb_line_break_holder] -->        <thead><!-- [et_pb_line_break_holder] -->          <tr><!-- [et_pb_line_break_holder] -->            <th>Symptom \/ Error<\/th><!-- [et_pb_line_break_holder] -->            <th>Category<\/th><!-- [et_pb_line_break_holder] -->            <th>Likely Cause<\/th><!-- [et_pb_line_break_holder] -->            <th>Fix<\/th><!-- [et_pb_line_break_holder] -->          <\/tr><!-- [et_pb_line_break_holder] -->        <\/thead><!-- [et_pb_line_break_holder] -->        <tbody><!-- [et_pb_line_break_holder] -->          <tr><!-- [et_pb_line_break_holder] -->            <td class=\"td-symptom\">Connection refused on port 993<\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"tr-sev sev-high\"><span>Connection<\/span><\/span><\/td><!-- [et_pb_line_break_holder] -->            <td>Wrong host, IMAP disabled in provider settings, or firewall blocking outbound 993<\/td><!-- [et_pb_line_break_holder] -->            <td class=\"tr-fix\">Verify host from the table above. Enable IMAP in provider settings (Gmail: Settings > Forwarding and POP\/IMAP). Check firewall\/proxy for outbound TCP 993.<\/td><!-- [et_pb_line_break_holder] -->          <\/tr><!-- [et_pb_line_break_holder] -->          <tr><!-- [et_pb_line_break_holder] -->            <td class=\"td-symptom\">SSL handshake timeout \/ CERTIFICATE_VERIFY_FAILED<\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"tr-sev sev-high\"><span>TLS<\/span><\/span><\/td><!-- [et_pb_line_break_holder] -->            <td>Expired or self-signed certificate, outdated CA bundle, wrong port (143 instead of 993)<\/td><!-- [et_pb_line_break_holder] -->            <td class=\"tr-fix\">Use <code>ssl.create_default_context()<\/code> (Python) &#8211; do NOT pass <code>ssl._create_unverified_context()<\/code> in production. Update your CA bundle (<code>pip install certifi<\/code>). Confirm you are connecting to port 993.<\/td><!-- [et_pb_line_break_holder] -->          <\/tr><!-- [et_pb_line_break_holder] -->          <tr><!-- [et_pb_line_break_holder] -->            <td class=\"td-symptom\">AUTHENTICATIONFAILED \/ [AUTHENTICATIONFAILED] Invalid credentials<\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"tr-sev sev-high\"><span>Auth<\/span><\/span><\/td><!-- [et_pb_line_break_holder] -->            <td>Wrong password, app password not generated, 2FA enabled but app password not used, Basic Auth blocked by provider<\/td><!-- [et_pb_line_break_holder] -->            <td class=\"tr-fix\">Generate an app-specific password from the provider&#8217;s security settings. If using Gmail, ensure &#8220;Less secure app access&#8221; is not the method &#8211; use app password or OAuth. For Microsoft, check if Basic Auth is disabled for the tenant.<\/td><!-- [et_pb_line_break_holder] -->          <\/tr><!-- [et_pb_line_break_holder] -->          <tr><!-- [et_pb_line_break_holder] -->            <td class=\"td-symptom\">AUTHENTICATE XOAUTH2 &#8211; invalid_token<\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"tr-sev sev-high\"><span>OAuth<\/span><\/span><\/td><!-- [et_pb_line_break_holder] -->            <td>Access token expired (tokens last 3600s), malformed base64 XOAUTH2 string, wrong scope<\/td><!-- [et_pb_line_break_holder] -->            <td class=\"tr-fix\">Refresh the access token before connecting. Verify the XOAUTH2 string format: <code>user={email}\\x01auth=Bearer {token}\\x01\\x01<\/code>. Check scope: Gmail needs <code>https:\/\/mail.google.com\/<\/code>; Outlook needs <code>IMAP.AccessAsUser.All<\/code>.<\/td><!-- [et_pb_line_break_holder] -->          <\/tr><!-- [et_pb_line_break_holder] -->          <tr><!-- [et_pb_line_break_holder] -->            <td class=\"td-symptom\">imaplib.error: command AUTHENTICATE illegal in state AUTH<\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"tr-sev sev-med\"><span>State<\/span><\/span><\/td><!-- [et_pb_line_break_holder] -->            <td>Attempting to authenticate when already in Authenticated state, or after a failed auth attempt without resetting<\/td><!-- [et_pb_line_break_holder] -->            <td class=\"tr-fix\">Close and reopen the IMAP connection before retrying authentication. Never retry auth on the same connection after a failure.<\/td><!-- [et_pb_line_break_holder] -->          <\/tr><!-- [et_pb_line_break_holder] -->          <tr><!-- [et_pb_line_break_holder] -->            <td class=\"td-symptom\">IMAP connection drops after 29 minutes of IDLE<\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"tr-sev sev-med\"><span>IDLE<\/span><\/span><\/td><!-- [et_pb_line_break_holder] -->            <td>Server-enforced IDLE timeout (standard: 30 minutes per RFC 2177). Gmail enforces 29 minutes.<\/td><!-- [et_pb_line_break_holder] -->            <td class=\"tr-fix\">Issue <code>DONE<\/code> at 25-27 minutes, then immediately re-issue <code>IDLE<\/code>. Use a background thread or async task with a 25-minute heartbeat timer.<\/td><!-- [et_pb_line_break_holder] -->          <\/tr><!-- [et_pb_line_break_holder] -->          <tr><!-- [et_pb_line_break_holder] -->            <td class=\"td-symptom\">[OVERQUOTA] or Too many simultaneous connections<\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"tr-sev sev-med\"><span>Rate Limit<\/span><\/span><\/td><!-- [et_pb_line_break_holder] -->            <td>Provider-imposed connection limit exceeded. Gmail allows 15 simultaneous IMAP connections per account; Outlook varies by plan.<\/td><!-- [et_pb_line_break_holder] -->            <td class=\"tr-fix\">Use connection pooling. For Gmail: max 15 concurrent connections per account. Close idle connections explicitly (<code>LOGOUT<\/code>) rather than dropping TCP. Implement exponential backoff on connection errors.<\/td><!-- [et_pb_line_break_holder] -->          <\/tr><!-- [et_pb_line_break_holder] -->          <tr><!-- [et_pb_line_break_holder] -->            <td class=\"td-symptom\">NO [ALERT] Please log in via your web browser<\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"tr-sev sev-med\"><span>Auth<\/span><\/span><\/td><!-- [et_pb_line_break_holder] -->            <td>Google security challenge triggered (unusual access pattern, new IP, captcha required)<\/td><!-- [et_pb_line_break_holder] -->            <td class=\"tr-fix\">Log in via browser from the same network to clear the security challenge. Consider switching to OAuth &#8211; app-password access from unknown IPs triggers these challenges more often than OAuth.<\/td><!-- [et_pb_line_break_holder] -->          <\/tr><!-- [et_pb_line_break_holder] -->          <tr><!-- [et_pb_line_break_holder] -->            <td class=\"td-symptom\">BYE Autologout; idle for too long<\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"tr-sev sev-low\"><span>Connection<\/span><\/span><\/td><!-- [et_pb_line_break_holder] -->            <td>IMAP connection in Authenticated state (mailbox not selected) was idle for too long<\/td><!-- [et_pb_line_break_holder] -->            <td class=\"tr-fix\">After authentication, immediately SELECT a mailbox or issue IDLE. Implement reconnect logic when you receive BYE.<\/td><!-- [et_pb_line_break_holder] -->          <\/tr><!-- [et_pb_line_break_holder] -->          <tr><!-- [et_pb_line_break_holder] -->            <td class=\"td-symptom\">FETCH returns empty body \/ nil parts<\/td><!-- [et_pb_line_break_holder] -->            <td><span class=\"tr-sev sev-low\"><span>Protocol<\/span><\/span><\/td><!-- [et_pb_line_break_holder] -->            <td>Message was expunged between SEARCH and FETCH, or UID mismatch after folder re-scan<\/td><!-- [et_pb_line_break_holder] -->            <td class=\"tr-fix\">Always use <code>UID FETCH<\/code> (not sequence numbers) for multi-step operations. Handle <code>None<\/code> return values from FETCH gracefully. Re-issue SEARCH after a reconnect to get fresh UIDs.<\/td><!-- [et_pb_line_break_holder] -->          <\/tr><!-- [et_pb_line_break_holder] -->        <\/tbody><!-- [et_pb_line_break_holder] -->      <\/table><!-- [et_pb_line_break_holder] -->    <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    <!-- MOBILE CARDS --><!-- [et_pb_line_break_holder] -->    <div class=\"tr-mobile-cards\"><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->      <div class=\"tr-card\"><!-- [et_pb_line_break_holder] -->        <div class=\"tr-card-header\"><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-title\">Connection refused on port 993<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"tr-sev sev-high\"><span>Connection<\/span><\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"tr-card-row\"><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-label\">Likely Cause<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-value\">Wrong host, IMAP disabled in provider settings, or firewall blocking outbound 993.<\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"tr-card-row\"><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-label\">Fix<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-value tr-card-fix\">Verify host from the table above. Enable IMAP in provider settings (Gmail: Settings > Forwarding and POP\/IMAP). Check firewall\/proxy for outbound TCP 993.<\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->      <div class=\"tr-card\"><!-- [et_pb_line_break_holder] -->        <div class=\"tr-card-header\"><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-title\">SSL handshake timeout \/ CERTIFICATE_VERIFY_FAILED<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"tr-sev sev-high\"><span>TLS<\/span><\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"tr-card-row\"><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-label\">Likely Cause<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-value\">Expired or self-signed certificate, outdated CA bundle, wrong port (143 instead of 993).<\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"tr-card-row\"><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-label\">Fix<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-value tr-card-fix\">Use <code>ssl.create_default_context()<\/code> (Python) &#8211; do NOT pass <code>ssl._create_unverified_context()<\/code> in production. Update your CA bundle (<code>pip install certifi<\/code>). Confirm you are connecting to port 993.<\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->      <div class=\"tr-card\"><!-- [et_pb_line_break_holder] -->        <div class=\"tr-card-header\"><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-title\">AUTHENTICATIONFAILED \/ Invalid credentials<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"tr-sev sev-high\"><span>Auth<\/span><\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"tr-card-row\"><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-label\">Likely Cause<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-value\">Wrong password, app password not generated, 2FA enabled but app password not used, Basic Auth blocked by provider.<\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"tr-card-row\"><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-label\">Fix<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-value tr-card-fix\">Generate an app-specific password from the provider&#8217;s security settings. If using Gmail, ensure &#8220;Less secure app access&#8221; is not the method &#8211; use app password or OAuth. For Microsoft, check if Basic Auth is disabled for the tenant.<\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->      <div class=\"tr-card\"><!-- [et_pb_line_break_holder] -->        <div class=\"tr-card-header\"><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-title\">AUTHENTICATE XOAUTH2 &#8211; invalid_token<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"tr-sev sev-high\"><span>OAuth<\/span><\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"tr-card-row\"><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-label\">Likely Cause<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-value\">Access token expired (tokens last 3600s), malformed base64 XOAUTH2 string, wrong scope.<\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"tr-card-row\"><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-label\">Fix<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-value tr-card-fix\">Refresh the access token before connecting. Verify the XOAUTH2 string format: <code>user={email}\\x01auth=Bearer {token}\\x01\\x01<\/code>. Check scope: Gmail needs <code>https:\/\/mail.google.com\/<\/code>; Outlook needs <code>IMAP.AccessAsUser.All<\/code>.<\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->      <div class=\"tr-card\"><!-- [et_pb_line_break_holder] -->        <div class=\"tr-card-header\"><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-title\">imaplib.error: AUTHENTICATE illegal in state AUTH<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"tr-sev sev-med\"><span>State<\/span><\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"tr-card-row\"><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-label\">Likely Cause<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-value\">Attempting to authenticate when already in Authenticated state, or after a failed auth attempt without resetting.<\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"tr-card-row\"><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-label\">Fix<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-value tr-card-fix\">Close and reopen the IMAP connection before retrying authentication. Never retry auth on the same connection after a failure.<\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->      <div class=\"tr-card\"><!-- [et_pb_line_break_holder] -->        <div class=\"tr-card-header\"><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-title\">IMAP connection drops after 29 minutes of IDLE<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"tr-sev sev-med\"><span>IDLE<\/span><\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"tr-card-row\"><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-label\">Likely Cause<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-value\">Server-enforced IDLE timeout (standard: 30 minutes per RFC 2177). Gmail enforces 29 minutes.<\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"tr-card-row\"><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-label\">Fix<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-value tr-card-fix\">Issue <code>DONE<\/code> at 25-27 minutes, then immediately re-issue <code>IDLE<\/code>. Use a background thread or async task with a 25-minute heartbeat timer.<\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->      <div class=\"tr-card\"><!-- [et_pb_line_break_holder] -->        <div class=\"tr-card-header\"><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-title\">[OVERQUOTA] or Too many simultaneous connections<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"tr-sev sev-med\"><span>Rate Limit<\/span><\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"tr-card-row\"><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-label\">Likely Cause<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-value\">Provider-imposed connection limit exceeded. Gmail allows 15 simultaneous IMAP connections per account; Outlook varies by plan.<\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"tr-card-row\"><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-label\">Fix<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-value tr-card-fix\">Use connection pooling. For Gmail: max 15 concurrent connections per account. Close idle connections explicitly (<code>LOGOUT<\/code>) rather than dropping TCP. Implement exponential backoff on connection errors.<\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->      <div class=\"tr-card\"><!-- [et_pb_line_break_holder] -->        <div class=\"tr-card-header\"><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-title\">NO [ALERT] Please log in via your web browser<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"tr-sev sev-med\"><span>Auth<\/span><\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"tr-card-row\"><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-label\">Likely Cause<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-value\">Google security challenge triggered (unusual access pattern, new IP, captcha required).<\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"tr-card-row\"><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-label\">Fix<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-value tr-card-fix\">Log in via browser from the same network to clear the security challenge. Consider switching to OAuth &#8211; app-password access from unknown IPs triggers these challenges more often than OAuth.<\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->      <div class=\"tr-card\"><!-- [et_pb_line_break_holder] -->        <div class=\"tr-card-header\"><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-title\">BYE Autologout; idle for too long<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"tr-sev sev-low\"><span>Connection<\/span><\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"tr-card-row\"><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-label\">Likely Cause<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-value\">IMAP connection in Authenticated state (mailbox not selected) was idle for too long.<\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"tr-card-row\"><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-label\">Fix<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-value tr-card-fix\">After authentication, immediately SELECT a mailbox or issue IDLE. Implement reconnect logic when you receive BYE.<\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->      <div class=\"tr-card\"><!-- [et_pb_line_break_holder] -->        <div class=\"tr-card-header\"><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-title\">FETCH returns empty body \/ nil parts<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"tr-sev sev-low\"><span>Protocol<\/span><\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"tr-card-row\"><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-label\">Likely Cause<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-value\">Message was expunged between SEARCH and FETCH, or UID mismatch after folder re-scan.<\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"tr-card-row\"><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-label\">Fix<\/span><!-- [et_pb_line_break_holder] -->          <span class=\"tr-card-value tr-card-fix\">Always use <code>UID FETCH<\/code> (not sequence numbers) for multi-step operations. Handle <code>None<\/code> return values from FETCH gracefully. Re-issue SEARCH after a reconnect to get fresh UIDs.<\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    <div class=\"tr-cta-strip\"><!-- [et_pb_line_break_holder] -->      <pee class=\"tr-cta-text\"><strong>Stop debugging IMAP errors.<\/strong> Unipile surfaces clean email objects via REST &#8211; no IMAP state machine, no token refresh logic, no connection pooling to manage.<\/pee><!-- [et_pb_line_break_holder] -->      <a href=\"https:\/\/dashboard.unipile.com\/signup\/\" target=\"_blank\" class=\"tr-cta-btn\"><span>Stop debugging IMAP &#8211; Start building<\/span><svg class=\"tr-cta-icon\" viewBox=\"0 0 24 24\"><line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\"\/><polyline points=\"12 5 19 12 12 19\"\/><\/svg><\/a><!-- [et_pb_line_break_holder] -->    <\/div><!-- [et_pb_line_break_holder] -->  <\/div><!-- [et_pb_line_break_holder] --><\/div><!-- [et_pb_line_break_holder] --><\/body><!-- [et_pb_line_break_holder] --><\/html>[\/et_pb_code][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.27.0&#8243; background_color=&#8221;transparent&#8221; custom_padding=&#8221;0px||0px||false|false&#8221; da_disable_devices=&#8221;off|off|off&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221; da_is_popup=&#8221;off&#8221; da_exit_intent=&#8221;off&#8221; da_has_close=&#8221;on&#8221; da_alt_close=&#8221;off&#8221; da_dark_close=&#8221;off&#8221; da_not_modal=&#8221;on&#8221; da_is_singular=&#8221;off&#8221; da_with_loader=&#8221;off&#8221; da_has_shadow=&#8221;on&#8221;][et_pb_row _builder_version=&#8221;4.27.0&#8243; max_width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.27.0&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_code _builder_version=&#8221;4.27.0&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Inter:wght@400;500;600;700&#038;family=Poppins:wght@700;800&#038;display=swap\" rel=\"stylesheet\"><!-- [et_pb_line_break_holder] --><style><!-- [et_pb_line_break_holder] -->#upl-imap-prod,<!-- [et_pb_line_break_holder] -->#upl-imap-prod *,<!-- [et_pb_line_break_holder] -->#upl-imap-prod *::before,<!-- [et_pb_line_break_holder] -->#upl-imap-prod *::after {<!-- [et_pb_line_break_holder] -->  margin: 0 !important;<!-- [et_pb_line_break_holder] -->  padding: 0 !important;<!-- [et_pb_line_break_holder] -->  box-sizing: border-box !important;<!-- [et_pb_line_break_holder] -->  border: none !important;<!-- [et_pb_line_break_holder] -->  outline: none !important;<!-- [et_pb_line_break_holder] -->  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.5 !important;<!-- [et_pb_line_break_holder] -->  letter-spacing: normal !important;<!-- [et_pb_line_break_holder] -->  text-transform: none !important;<!-- [et_pb_line_break_holder] -->  text-decoration: none !important;<!-- [et_pb_line_break_holder] -->  list-style: none !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-prod.upl-imap-prod-wrapper {<!-- [et_pb_line_break_holder] -->  display: block !important;<!-- [et_pb_line_break_holder] -->  padding: 70px 24px !important;<!-- [et_pb_line_break_holder] -->  background: #f4f5f7 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-prod.upl-imap-prod-wrapper .pd-container {<!-- [et_pb_line_break_holder] -->  max-width: 1100px !important;<!-- [et_pb_line_break_holder] -->  margin: 0 auto !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-prod.upl-imap-prod-wrapper .pd-badge {<!-- [et_pb_line_break_holder] -->  display: inline-flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 8px !important;<!-- [et_pb_line_break_holder] -->  background: rgba(59, 185, 139, 0.12) !important;<!-- [et_pb_line_break_holder] -->  color: #2aaa7e !important;<!-- [et_pb_line_break_holder] -->  padding: 6px 14px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 20px !important;<!-- [et_pb_line_break_holder] -->  font-size: 12px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  text-transform: uppercase !important;<!-- [et_pb_line_break_holder] -->  letter-spacing: 0.5px !important;<!-- [et_pb_line_break_holder] -->  width: fit-content !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 16px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-prod.upl-imap-prod-wrapper .pd-badge-dot {<!-- [et_pb_line_break_holder] -->  width: 7px !important;<!-- [et_pb_line_break_holder] -->  height: 7px !important;<!-- [et_pb_line_break_holder] -->  background: #3BB98B !important;<!-- [et_pb_line_break_holder] -->  border-radius: 50% !important;<!-- [et_pb_line_break_holder] -->  flex-shrink: 0 !important;<!-- [et_pb_line_break_holder] -->  display: inline-block !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-prod.upl-imap-prod-wrapper h2 {<!-- [et_pb_line_break_holder] -->  font-family: 'Poppins', sans-serif !important;<!-- [et_pb_line_break_holder] -->  font-size: 35px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.2 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 16px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-prod.upl-imap-prod-wrapper .pd-intro {<!-- [et_pb_line_break_holder] -->  font-size: 16px !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.78 !important;<!-- [et_pb_line_break_holder] -->  color: #383838 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 36px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-prod.upl-imap-prod-wrapper .pd-grid {<!-- [et_pb_line_break_holder] -->  display: grid !important;<!-- [et_pb_line_break_holder] -->  grid-template-columns: 1fr 1fr !important;<!-- [et_pb_line_break_holder] -->  gap: 20px !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 36px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-prod.upl-imap-prod-wrapper .pd-card {<!-- [et_pb_line_break_holder] -->  background: #ffffff !important;<!-- [et_pb_line_break_holder] -->  border: 1px solid #e5e7eb !important;<!-- [et_pb_line_break_holder] -->  border-radius: 16px !important;<!-- [et_pb_line_break_holder] -->  padding: 24px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-prod.upl-imap-prod-wrapper .pd-card-icon-wrap {<!-- [et_pb_line_break_holder] -->  width: 40px !important;<!-- [et_pb_line_break_holder] -->  height: 40px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 10px !important;<!-- [et_pb_line_break_holder] -->  background: rgba(59, 185, 139, 0.10) !important;<!-- [et_pb_line_break_holder] -->  display: flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  justify-content: center !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 14px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-prod.upl-imap-prod-wrapper .pd-card-icon {<!-- [et_pb_line_break_holder] -->  width: 20px !important;<!-- [et_pb_line_break_holder] -->  height: 20px !important;<!-- [et_pb_line_break_holder] -->  stroke: #3BB98B !important;<!-- [et_pb_line_break_holder] -->  fill: none !important;<!-- [et_pb_line_break_holder] -->  stroke-width: 2 !important;<!-- [et_pb_line_break_holder] -->  stroke-linecap: round !important;<!-- [et_pb_line_break_holder] -->  stroke-linejoin: round !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-prod.upl-imap-prod-wrapper .pd-card-title {<!-- [et_pb_line_break_holder] -->  font-size: 16px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 8px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-prod.upl-imap-prod-wrapper .pd-card-desc {<!-- [et_pb_line_break_holder] -->  font-size: 14px !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.7 !important;<!-- [et_pb_line_break_holder] -->  color: #383838 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-prod.upl-imap-prod-wrapper .pd-body p {<!-- [et_pb_line_break_holder] -->  font-size: 16px !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.78 !important;<!-- [et_pb_line_break_holder] -->  color: #383838 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 16px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-prod.upl-imap-prod-wrapper .pd-body p:last-child {<!-- [et_pb_line_break_holder] -->  margin-bottom: 0 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-prod.upl-imap-prod-wrapper .pd-body strong {<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-prod.upl-imap-prod-wrapper .pd-body a {<!-- [et_pb_line_break_holder] -->  color: #2aaa7e !important;<!-- [et_pb_line_break_holder] -->  text-decoration: underline !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-prod.upl-imap-prod-wrapper .pd-cta-strip {<!-- [et_pb_line_break_holder] -->  display: flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  justify-content: space-between !important;<!-- [et_pb_line_break_holder] -->  gap: 20px !important;<!-- [et_pb_line_break_holder] -->  background: #ffffff !important;<!-- [et_pb_line_break_holder] -->  border: 1px solid #e5e7eb !important;<!-- [et_pb_line_break_holder] -->  border-radius: 12px !important;<!-- [et_pb_line_break_holder] -->  padding: 20px 24px !important;<!-- [et_pb_line_break_holder] -->  flex-wrap: wrap !important;<!-- [et_pb_line_break_holder] -->  margin-top: 32px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-prod.upl-imap-prod-wrapper .pd-cta-text {<!-- [et_pb_line_break_holder] -->  font-size: 15px !important;<!-- [et_pb_line_break_holder] -->  color: #383838 !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.6 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-prod.upl-imap-prod-wrapper .pd-cta-text strong {<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-prod.upl-imap-prod-wrapper .pd-cta-btn {<!-- [et_pb_line_break_holder] -->  display: inline-flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 8px !important;<!-- [et_pb_line_break_holder] -->  background: #DDDF4C !important;<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  padding: 12px 22px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 8px !important;<!-- [et_pb_line_break_holder] -->  font-size: 14px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 600 !important;<!-- [et_pb_line_break_holder] -->  border: 2px solid #DDDF4C !important;<!-- [et_pb_line_break_holder] -->  cursor: pointer !important;<!-- [et_pb_line_break_holder] -->  white-space: nowrap !important;<!-- [et_pb_line_break_holder] -->  transition: transform 0.2s ease !important;<!-- [et_pb_line_break_holder] -->  text-decoration: none !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-prod.upl-imap-prod-wrapper .pd-cta-btn:hover {<!-- [et_pb_line_break_holder] -->  transform: translateY(-5px) !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-prod.upl-imap-prod-wrapper .pd-cta-icon {<!-- [et_pb_line_break_holder] -->  width: 15px !important;<!-- [et_pb_line_break_holder] -->  height: 15px !important;<!-- [et_pb_line_break_holder] -->  stroke: currentColor !important;<!-- [et_pb_line_break_holder] -->  fill: none !important;<!-- [et_pb_line_break_holder] -->  stroke-width: 2.5 !important;<!-- [et_pb_line_break_holder] -->  stroke-linecap: round !important;<!-- [et_pb_line_break_holder] -->  stroke-linejoin: round !important;<!-- [et_pb_line_break_holder] -->  flex-shrink: 0 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->@media (max-width: 900px) {<!-- [et_pb_line_break_holder] -->  #upl-imap-prod.upl-imap-prod-wrapper {<!-- [et_pb_line_break_holder] -->    padding: 50px 20px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-prod.upl-imap-prod-wrapper h2 {<!-- [et_pb_line_break_holder] -->    font-size: 28px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-prod.upl-imap-prod-wrapper .pd-grid {<!-- [et_pb_line_break_holder] -->    grid-template-columns: 1fr !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->@media (max-width: 600px) {<!-- [et_pb_line_break_holder] -->  #upl-imap-prod.upl-imap-prod-wrapper {<!-- [et_pb_line_break_holder] -->    padding: 40px 16px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-prod.upl-imap-prod-wrapper h2 {<!-- [et_pb_line_break_holder] -->    font-size: 26px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-prod.upl-imap-prod-wrapper .pd-cta-strip {<!-- [et_pb_line_break_holder] -->    flex-direction: column !important;<!-- [et_pb_line_break_holder] -->    align-items: flex-start !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-prod.upl-imap-prod-wrapper .pd-cta-btn {<!-- [et_pb_line_break_holder] -->    width: 100% !important;<!-- [et_pb_line_break_holder] -->    justify-content: center !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><\/style><!-- [et_pb_line_break_holder] --><div id=\"upl-imap-prod\" class=\"upl-imap-prod-wrapper\"><!-- [et_pb_line_break_holder] -->  <div class=\"pd-container\"><!-- [et_pb_line_break_holder] -->    <span id=\"imap-production-scale\" style=\"display:block;position:relative;top:-80px;visibility:hidden;\"><\/span><!-- [et_pb_line_break_holder] -->    <div class=\"pd-badge\"><span class=\"pd-badge-dot\"><\/span><span>Production Reality<\/span><\/div><!-- [et_pb_line_break_holder] -->    <h2>Why production-grade IMAP at scale is harder than it looks<\/h2><!-- [et_pb_line_break_holder] -->    <pee class=\"pd-intro\">Opening a single IMAP server connection to a Gmail inbox is 15 lines of Python. Scaling that to hundreds or thousands of users in a production SaaS product is a fundamentally different engineering problem. Here is an honest breakdown of where raw IMAP connections create non-obvious complexity.<\/pee><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    <div class=\"pd-grid\"><!-- [et_pb_line_break_holder] -->      <div class=\"pd-card\"><!-- [et_pb_line_break_holder] -->        <div class=\"pd-card-icon-wrap\"><!-- [et_pb_line_break_holder] -->          <svg class=\"pd-card-icon\" viewBox=\"0 0 24 24\"><path d=\"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z\"\/><\/svg><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"pd-card-title\">OAuth token lifecycle management<\/div><!-- [et_pb_line_break_holder] -->        <pee class=\"pd-card-desc\">Access tokens expire every 3600 seconds. For 1,000 linked accounts, you need a background job that proactively refreshes tokens before expiry, handles refresh token rotation (Google rotates them under certain conditions), and manages the case where a user revokes access &#8211; which you only discover at the next token use.<\/pee><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] -->      <div class=\"pd-card\"><!-- [et_pb_line_break_holder] -->        <div class=\"pd-card-icon-wrap\"><!-- [et_pb_line_break_holder] -->          <svg class=\"pd-card-icon\" viewBox=\"0 0 24 24\"><rect x=\"2\" y=\"3\" width=\"20\" height=\"14\" rx=\"2\" ry=\"2\"\/><line x1=\"8\" y1=\"21\" x2=\"16\" y2=\"21\"\/><line x1=\"12\" y1=\"17\" x2=\"12\" y2=\"21\"\/><\/svg><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"pd-card-title\">Multi-account IMAP connection state<\/div><!-- [et_pb_line_break_holder] -->        <pee class=\"pd-card-desc\">Each active IMAP session holds state: current selected mailbox, last seen UID, IDLE timer. If your server restarts, you lose all this state and must re-sync from scratch &#8211; potentially fetching thousands of messages you have already processed. You need a persistent state store per account.<\/pee><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] -->      <div class=\"pd-card\"><!-- [et_pb_line_break_holder] -->        <div class=\"pd-card-icon-wrap\"><!-- [et_pb_line_break_holder] -->          <svg class=\"pd-card-icon\" viewBox=\"0 0 24 24\"><polyline points=\"23 4 23 10 17 10\"\/><polyline points=\"1 20 1 14 7 14\"\/><path d=\"M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15\"\/><\/svg><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"pd-card-title\">Error retry and exponential backoff<\/div><!-- [et_pb_line_break_holder] -->        <pee class=\"pd-card-desc\">Transient failures (network blips, server 500s, rate limit responses) require retry logic with exponential backoff and jitter. Naive retry loops hammer providers and result in temporary IP bans. You need a proper job queue with configurable retry delays and dead-letter handling for permanently failed accounts.<\/pee><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] -->      <div class=\"pd-card\"><!-- [et_pb_line_break_holder] -->        <div class=\"pd-card-icon-wrap\"><!-- [et_pb_line_break_holder] -->          <svg class=\"pd-card-icon\" viewBox=\"0 0 24 24\"><rect x=\"3\" y=\"11\" width=\"18\" height=\"11\" rx=\"2\" ry=\"2\"\/><path d=\"M7 11V7a5 5 0 0 1 10 0v4\"\/><\/svg><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"pd-card-title\">Credential storage and encryption at rest<\/div><!-- [et_pb_line_break_holder] -->        <pee class=\"pd-card-desc\">OAuth refresh tokens are long-lived credentials that grant full email access. They must be encrypted at rest using a KMS-backed key, access-controlled at the infrastructure level, and rotated if there is any indication of a breach. This is a significant security surface area that requires proper key management infrastructure.<\/pee><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] -->      <div class=\"pd-card\"><!-- [et_pb_line_break_holder] -->        <div class=\"pd-card-icon-wrap\"><!-- [et_pb_line_break_holder] -->          <svg class=\"pd-card-icon\" viewBox=\"0 0 24 24\"><polyline points=\"22 12 18 12 15 21 9 3 6 12 2 12\"\/><\/svg><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"pd-card-title\">Rate limiting and per-account quotas<\/div><!-- [et_pb_line_break_holder] -->        <pee class=\"pd-card-desc\">Gmail limits concurrent IMAP connections to 15 per account. If your application opens more connections than allowed, it receives OVERQUOTA errors. At the same time, providers also impose bandwidth quotas on total data transferred. You need connection pooling, request throttling, and per-account rate tracking.<\/pee><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] -->      <div class=\"pd-card\"><!-- [et_pb_line_break_holder] -->        <div class=\"pd-card-icon-wrap\"><!-- [et_pb_line_break_holder] -->          <svg class=\"pd-card-icon\" viewBox=\"0 0 24 24\"><path d=\"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z\"\/><\/svg><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"pd-card-title\">Provider-specific edge cases<\/div><!-- [et_pb_line_break_holder] -->        <pee class=\"pd-card-desc\">Gmail labels vs. IMAP folders, Outlook&#8217;s non-standard folder naming for Sent\/Deleted, IMAP servers that return CAPABILITY responses that do not match what they actually support, and servers that silently drop connections during FETCH operations on large attachments. Each provider has a unique set of quirks that only surface in production.<\/pee><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] -->    <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    <div class=\"pd-body\"><!-- [et_pb_line_break_holder] -->      <pee>This is not an argument against building a custom IMAP integration &#8211; for a single-provider, single-user tool, raw IMAP is perfectly reasonable. But for any product that needs to <strong>read and sync email across multiple providers and multiple user accounts<\/strong>, the operational overhead of maintaining a custom IMAP layer typically exceeds the cost of using a dedicated email API. The <a href=\"https:\/\/www.unipile.com\/email-api-guide\/\">Unified Email API guide<\/a> covers the architectural trade-offs in detail.<\/pee><!-- [et_pb_line_break_holder] -->    <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    <div class=\"pd-cta-strip\"><!-- [et_pb_line_break_holder] -->      <pee class=\"pd-cta-text\"><strong>Production email sync without the IMAP overhead.<\/strong> Unipile handles connection pooling, token refresh, error retry, and multi-provider normalization &#8211; you just call the API.<\/pee><!-- [et_pb_line_break_holder] -->      <a href=\"https:\/\/dashboard.unipile.com\/signup\/\" target=\"_blank\" class=\"pd-cta-btn\"><span>Build at scale without IMAP overhead<\/span><svg class=\"pd-cta-icon\" viewBox=\"0 0 24 24\"><line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\"\/><polyline points=\"12 5 19 12 12 19\"\/><\/svg><\/a><!-- [et_pb_line_break_holder] -->    <\/div><!-- [et_pb_line_break_holder] -->  <\/div><!-- [et_pb_line_break_holder] --><\/div>[\/et_pb_code][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.27.0&#8243; background_color=&#8221;transparent&#8221; custom_padding=&#8221;0px||0px||false|false&#8221; da_disable_devices=&#8221;off|off|off&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221; da_is_popup=&#8221;off&#8221; da_exit_intent=&#8221;off&#8221; da_has_close=&#8221;on&#8221; da_alt_close=&#8221;off&#8221; da_dark_close=&#8221;off&#8221; da_not_modal=&#8221;on&#8221; da_is_singular=&#8221;off&#8221; da_with_loader=&#8221;off&#8221; da_has_shadow=&#8221;on&#8221;][et_pb_row _builder_version=&#8221;4.27.0&#8243; max_width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.27.0&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_code _builder_version=&#8221;4.27.4&#8243; hover_enabled=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221; sticky_enabled=&#8221;0&#8243;]<!DOCTYPE html><!-- [et_pb_line_break_holder] --><html lang=\"en\"><!-- [et_pb_line_break_holder] --><head><!-- [et_pb_line_break_holder] --><meta charset=\"UTF-8\"><!-- [et_pb_line_break_holder] --><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><!-- [et_pb_line_break_holder] --><title>Unipile &#8211; IMAP BOFU (Light)<\/title><!-- [et_pb_line_break_holder] --><link href=\"https:\/\/fonts.googleapis.com\/css2?family=Inter:wght@400;500;600;700&#038;family=Poppins:wght@700;800&#038;display=swap\" rel=\"stylesheet\"><!-- [et_pb_line_break_holder] --><style><!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light,<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light *,<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light *::before,<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light *::after {<!-- [et_pb_line_break_holder] -->  margin: 0 !important;<!-- [et_pb_line_break_holder] -->  padding: 0 !important;<!-- [et_pb_line_break_holder] -->  box-sizing: border-box !important;<!-- [et_pb_line_break_holder] -->  border: none !important;<!-- [et_pb_line_break_holder] -->  outline: none !important;<!-- [et_pb_line_break_holder] -->  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.5 !important;<!-- [et_pb_line_break_holder] -->  letter-spacing: normal !important;<!-- [et_pb_line_break_holder] -->  text-transform: none !important;<!-- [et_pb_line_break_holder] -->  text-decoration: none !important;<!-- [et_pb_line_break_holder] -->  list-style: none !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper {<!-- [et_pb_line_break_holder] -->  display: block !important;<!-- [et_pb_line_break_holder] -->  background: #f4f5f7 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper .bfl-container {<!-- [et_pb_line_break_holder] -->  max-width: 1100px !important;<!-- [et_pb_line_break_holder] -->  margin: 0 auto !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper .bfl-badge {<!-- [et_pb_line_break_holder] -->  display: inline-flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 8px !important;<!-- [et_pb_line_break_holder] -->  background: rgba(59, 185, 139, 0.12) !important;<!-- [et_pb_line_break_holder] -->  color: #2da077 !important;<!-- [et_pb_line_break_holder] -->  padding: 6px 14px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 20px !important;<!-- [et_pb_line_break_holder] -->  font-size: 12px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  text-transform: uppercase !important;<!-- [et_pb_line_break_holder] -->  letter-spacing: 0.5px !important;<!-- [et_pb_line_break_holder] -->  width: fit-content !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 16px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper .bfl-badge-dot {<!-- [et_pb_line_break_holder] -->  width: 7px !important;<!-- [et_pb_line_break_holder] -->  height: 7px !important;<!-- [et_pb_line_break_holder] -->  background: #3BB98B !important;<!-- [et_pb_line_break_holder] -->  border-radius: 50% !important;<!-- [et_pb_line_break_holder] -->  flex-shrink: 0 !important;<!-- [et_pb_line_break_holder] -->  display: inline-block !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper h2 {<!-- [et_pb_line_break_holder] -->  font-family: 'Poppins', sans-serif !important;<!-- [et_pb_line_break_holder] -->  font-size: 35px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.2 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 16px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper .bfl-intro {<!-- [et_pb_line_break_holder] -->  font-size: 16px !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.78 !important;<!-- [et_pb_line_break_holder] -->  color: #383838 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 40px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper .bfl-two-col {<!-- [et_pb_line_break_holder] -->  display: grid !important;<!-- [et_pb_line_break_holder] -->  grid-template-columns: 1fr 1fr !important;<!-- [et_pb_line_break_holder] -->  gap: 40px !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 40px !important;<!-- [et_pb_line_break_holder] -->  align-items: start !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper .bfl-features {<!-- [et_pb_line_break_holder] -->  display: flex !important;<!-- [et_pb_line_break_holder] -->  flex-direction: column !important;<!-- [et_pb_line_break_holder] -->  gap: 16px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper .bfl-feature {<!-- [et_pb_line_break_holder] -->  display: flex !important;<!-- [et_pb_line_break_holder] -->  align-items: flex-start !important;<!-- [et_pb_line_break_holder] -->  gap: 12px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper .bfl-feat-icon-wrap {<!-- [et_pb_line_break_holder] -->  width: 32px !important;<!-- [et_pb_line_break_holder] -->  height: 32px !important;<!-- [et_pb_line_break_holder] -->  min-width: 32px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 8px !important;<!-- [et_pb_line_break_holder] -->  background: rgba(59, 185, 139, 0.15) !important;<!-- [et_pb_line_break_holder] -->  display: flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  justify-content: center !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper .bfl-feat-icon {<!-- [et_pb_line_break_holder] -->  width: 16px !important;<!-- [et_pb_line_break_holder] -->  height: 16px !important;<!-- [et_pb_line_break_holder] -->  stroke: #3BB98B !important;<!-- [et_pb_line_break_holder] -->  fill: none !important;<!-- [et_pb_line_break_holder] -->  stroke-width: 2 !important;<!-- [et_pb_line_break_holder] -->  stroke-linecap: round !important;<!-- [et_pb_line_break_holder] -->  stroke-linejoin: round !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper .bfl-feat-title {<!-- [et_pb_line_break_holder] -->  font-size: 14px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 3px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper .bfl-feat-desc {<!-- [et_pb_line_break_holder] -->  font-size: 13px !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.6 !important;<!-- [et_pb_line_break_holder] -->  color: #383838 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper .bfl-code-wrap {<!-- [et_pb_line_break_holder] -->  border-radius: 14px !important;<!-- [et_pb_line_break_holder] -->  overflow: hidden !important;<!-- [et_pb_line_break_holder] -->  background: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  border: 1px solid rgba(15, 39, 54, 0.12) !important;<!-- [et_pb_line_break_holder] -->  box-shadow: 0 4px 20px rgba(15, 39, 54, 0.08) !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper .bfl-editor-bar {<!-- [et_pb_line_break_holder] -->  background: rgba(0,0,0,0.25) !important;<!-- [et_pb_line_break_holder] -->  padding: 12px 18px !important;<!-- [et_pb_line_break_holder] -->  display: flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 8px !important;<!-- [et_pb_line_break_holder] -->  border-bottom: 1px solid rgba(255,255,255,0.06) !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper .bfl-dot {<!-- [et_pb_line_break_holder] -->  width: 12px !important;<!-- [et_pb_line_break_holder] -->  height: 12px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 50% !important;<!-- [et_pb_line_break_holder] -->  display: inline-block !important;<!-- [et_pb_line_break_holder] -->  flex-shrink: 0 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper .bfl-dot-r { background: #ff5f57 !important; }<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper .bfl-dot-y { background: #febc2e !important; }<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper .bfl-dot-g { background: #28c840 !important; }<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper .bfl-filename {<!-- [et_pb_line_break_holder] -->  color: #8b949e !important;<!-- [et_pb_line_break_holder] -->  font-size: 13px !important;<!-- [et_pb_line_break_holder] -->  margin-left: 6px !important;<!-- [et_pb_line_break_holder] -->  font-family: 'Courier New', monospace !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper .bfl-pre {<!-- [et_pb_line_break_holder] -->  padding: 20px 22px !important;<!-- [et_pb_line_break_holder] -->  font-size: 12.5px !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.85 !important;<!-- [et_pb_line_break_holder] -->  overflow-x: auto !important;<!-- [et_pb_line_break_holder] -->  font-family: 'Courier New', monospace !important;<!-- [et_pb_line_break_holder] -->  white-space: pre !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper .c { color: #8b949e !important; }<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper .k { color: #ff7b72 !important; }<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper .fn { color: #d2a8ff !important; }<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper .s { color: #a5d6ff !important; }<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper .n { color: #79c0ff !important; }<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper .w { color: #e6edf3 !important; }<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper .bfl-editor-ok {<!-- [et_pb_line_break_holder] -->  background: rgba(59, 185, 139, 0.12) !important;<!-- [et_pb_line_break_holder] -->  border-top: 1px solid rgba(59, 185, 139, 0.3) !important;<!-- [et_pb_line_break_holder] -->  color: #3BB98B !important;<!-- [et_pb_line_break_holder] -->  padding: 10px 22px !important;<!-- [et_pb_line_break_holder] -->  font-size: 12px !important;<!-- [et_pb_line_break_holder] -->  font-family: 'Courier New', monospace !important;<!-- [et_pb_line_break_holder] -->  display: flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 8px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper .bfl-editor-ok svg {<!-- [et_pb_line_break_holder] -->  width: 14px !important;<!-- [et_pb_line_break_holder] -->  height: 14px !important;<!-- [et_pb_line_break_holder] -->  stroke: #3BB98B !important;<!-- [et_pb_line_break_holder] -->  fill: none !important;<!-- [et_pb_line_break_holder] -->  stroke-width: 2.5 !important;<!-- [et_pb_line_break_holder] -->  stroke-linecap: round !important;<!-- [et_pb_line_break_holder] -->  stroke-linejoin: round !important;<!-- [et_pb_line_break_holder] -->  flex-shrink: 0 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper .bfl-providers-strip {<!-- [et_pb_line_break_holder] -->  display: flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 12px !important;<!-- [et_pb_line_break_holder] -->  padding: 12px 18px !important;<!-- [et_pb_line_break_holder] -->  background: rgba(255,255,255,0.06) !important;<!-- [et_pb_line_break_holder] -->  border-top: 1px solid rgba(255,255,255,0.06) !important;<!-- [et_pb_line_break_holder] -->  flex-wrap: wrap !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper .bfl-prov-label {<!-- [et_pb_line_break_holder] -->  font-size: 11px !important;<!-- [et_pb_line_break_holder] -->  color: rgba(255,255,255,0.55) !important;<!-- [et_pb_line_break_holder] -->  text-transform: uppercase !important;<!-- [et_pb_line_break_holder] -->  letter-spacing: 0.4px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper .bfl-providers-strip img {<!-- [et_pb_line_break_holder] -->  width: 18px !important;<!-- [et_pb_line_break_holder] -->  height: 18px !important;<!-- [et_pb_line_break_holder] -->  opacity: 0.95 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper .bfl-compliance {<!-- [et_pb_line_break_holder] -->  display: flex !important;<!-- [et_pb_line_break_holder] -->  gap: 12px !important;<!-- [et_pb_line_break_holder] -->  flex-wrap: wrap !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 40px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper .bfl-comp-badge {<!-- [et_pb_line_break_holder] -->  display: inline-flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 6px !important;<!-- [et_pb_line_break_holder] -->  background: #ffffff !important;<!-- [et_pb_line_break_holder] -->  color: #383838 !important;<!-- [et_pb_line_break_holder] -->  padding: 6px 14px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 8px !important;<!-- [et_pb_line_break_holder] -->  font-size: 13px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 600 !important;<!-- [et_pb_line_break_holder] -->  border: 1px solid #e5e7eb !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper .bfl-comp-badge svg {<!-- [et_pb_line_break_holder] -->  width: 14px !important;<!-- [et_pb_line_break_holder] -->  height: 14px !important;<!-- [et_pb_line_break_holder] -->  stroke: #3BB98B !important;<!-- [et_pb_line_break_holder] -->  fill: none !important;<!-- [et_pb_line_break_holder] -->  stroke-width: 2 !important;<!-- [et_pb_line_break_holder] -->  stroke-linecap: round !important;<!-- [et_pb_line_break_holder] -->  stroke-linejoin: round !important;<!-- [et_pb_line_break_holder] -->  flex-shrink: 0 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper .bfl-cta-row {<!-- [et_pb_line_break_holder] -->  display: flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 16px !important;<!-- [et_pb_line_break_holder] -->  flex-wrap: wrap !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper .bfl-cta-primary {<!-- [et_pb_line_break_holder] -->  display: inline-flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 8px !important;<!-- [et_pb_line_break_holder] -->  background: #DDDF4C !important;<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  padding: 14px 28px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 8px !important;<!-- [et_pb_line_break_holder] -->  font-size: 15px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  border: 2px solid #DDDF4C !important;<!-- [et_pb_line_break_holder] -->  cursor: pointer !important;<!-- [et_pb_line_break_holder] -->  white-space: nowrap !important;<!-- [et_pb_line_break_holder] -->  transition: transform 0.2s ease !important;<!-- [et_pb_line_break_holder] -->  text-decoration: none !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper .bfl-cta-primary:hover {<!-- [et_pb_line_break_holder] -->  transform: translateY(-5px) !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper .bfl-cta-secondary {<!-- [et_pb_line_break_holder] -->  display: inline-flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 8px !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  padding: 13px 26px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 8px !important;<!-- [et_pb_line_break_holder] -->  font-size: 15px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 600 !important;<!-- [et_pb_line_break_holder] -->  border: 2px solid rgba(15, 39, 54, 0.25) !important;<!-- [et_pb_line_break_holder] -->  cursor: pointer !important;<!-- [et_pb_line_break_holder] -->  white-space: nowrap !important;<!-- [et_pb_line_break_holder] -->  transition: all 0.2s ease !important;<!-- [et_pb_line_break_holder] -->  text-decoration: none !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper .bfl-cta-secondary:hover {<!-- [et_pb_line_break_holder] -->  border-color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-bofu-light.upl-imap-bofu-light-wrapper .bfl-cta-icon {<!-- [et_pb_line_break_holder] -->  width: 15px !important;<!-- [et_pb_line_break_holder] -->  height: 15px !important;<!-- [et_pb_line_break_holder] -->  stroke: currentColor !important;<!-- [et_pb_line_break_holder] -->  fill: none !important;<!-- [et_pb_line_break_holder] -->  stroke-width: 2.5 !important;<!-- [et_pb_line_break_holder] -->  stroke-linecap: round !important;<!-- [et_pb_line_break_holder] -->  stroke-linejoin: round !important;<!-- [et_pb_line_break_holder] -->  flex-shrink: 0 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->@media (max-width: 900px) {<!-- [et_pb_line_break_holder] -->  #upl-imap-bofu-light.upl-imap-bofu-light-wrapper h2 {<!-- [et_pb_line_break_holder] -->    font-size: 28px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-bofu-light.upl-imap-bofu-light-wrapper .bfl-two-col {<!-- [et_pb_line_break_holder] -->    grid-template-columns: 1fr !important;<!-- [et_pb_line_break_holder] -->    gap: 32px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->@media (max-width: 600px) {<!-- [et_pb_line_break_holder] -->  #upl-imap-bofu-light.upl-imap-bofu-light-wrapper h2 {<!-- [et_pb_line_break_holder] -->    font-size: 26px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-bofu-light.upl-imap-bofu-light-wrapper .bfl-cta-row {<!-- [et_pb_line_break_holder] -->    flex-direction: column !important;<!-- [et_pb_line_break_holder] -->    align-items: stretch !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-bofu-light.upl-imap-bofu-light-wrapper .bfl-cta-primary,<!-- [et_pb_line_break_holder] -->  #upl-imap-bofu-light.upl-imap-bofu-light-wrapper .bfl-cta-secondary {<!-- [et_pb_line_break_holder] -->    width: 100% !important;<!-- [et_pb_line_break_holder] -->    justify-content: center !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->@media (max-width: 400px) {<!-- [et_pb_line_break_holder] -->  #upl-imap-bofu-light.upl-imap-bofu-light-wrapper h2 {<!-- [et_pb_line_break_holder] -->    font-size: 22px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><\/style><!-- [et_pb_line_break_holder] --><\/head><!-- [et_pb_line_break_holder] --><body><!-- [et_pb_line_break_holder] --><div id=\"upl-imap-bofu-light\" class=\"upl-imap-bofu-light-wrapper\"><!-- [et_pb_line_break_holder] -->  <div class=\"bfl-container\"><!-- [et_pb_line_break_holder] -->    <span id=\"imap-unipile\" style=\"display:block;position:relative;top:-80px;visibility:hidden;\"><\/span><!-- [et_pb_line_break_holder] -->    <div class=\"bfl-badge\"><span class=\"bfl-badge-dot\"><\/span><span>5-Minute Quickstart<\/span><\/div><!-- [et_pb_line_break_holder] -->    <h2>Building an IMAP integration without managing the connection: Unipile<\/h2><!-- [et_pb_line_break_holder] -->    <pee class=\"bfl-intro\">If you have read this far, you have a clear picture of what it takes to maintain raw IMAP connections in production: OAuth token refresh loops, per-account state management, connection pooling, retry logic, and provider-specific quirks for Gmail, Outlook, and IMAP servers. Unipile abstracts this entire layer and gives you a single REST API to read, send, and sync email across all three, with a 5-minute quickstart and less than 10 lines of code per operation.<\/pee><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    <div class=\"bfl-two-col\"><!-- [et_pb_line_break_holder] -->      <div class=\"bfl-features\"><!-- [et_pb_line_break_holder] -->        <div class=\"bfl-feature\"><!-- [et_pb_line_break_holder] -->          <div class=\"bfl-feat-icon-wrap\"><!-- [et_pb_line_break_holder] -->            <svg class=\"bfl-feat-icon\" viewBox=\"0 0 24 24\"><polyline points=\"20 6 9 17 4 12\"\/><\/svg><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->          <div><!-- [et_pb_line_break_holder] -->            <div class=\"bfl-feat-title\">OAuth handled for you<\/div><!-- [et_pb_line_break_holder] -->            <pee class=\"bfl-feat-desc\">Unipile manages the full OAuth flow for Gmail and Microsoft 365: token acquisition, refresh, and rotation. You never touch a refresh token directly.<\/pee><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"bfl-feature\"><!-- [et_pb_line_break_holder] -->          <div class=\"bfl-feat-icon-wrap\"><!-- [et_pb_line_break_holder] -->            <svg class=\"bfl-feat-icon\" viewBox=\"0 0 24 24\"><polyline points=\"20 6 9 17 4 12\"\/><\/svg><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->          <div><!-- [et_pb_line_break_holder] -->            <div class=\"bfl-feat-title\">Gmail, Outlook, and IMAP unified<\/div><!-- [et_pb_line_break_holder] -->            <pee class=\"bfl-feat-desc\">One API, one response schema. Read emails from a Gmail inbox and an IMAP corporate server with the same GET \/emails call. No provider-specific parsing.<\/pee><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"bfl-feature\"><!-- [et_pb_line_break_holder] -->          <div class=\"bfl-feat-icon-wrap\"><!-- [et_pb_line_break_holder] -->            <svg class=\"bfl-feat-icon\" viewBox=\"0 0 24 24\"><polyline points=\"20 6 9 17 4 12\"\/><\/svg><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->          <div><!-- [et_pb_line_break_holder] -->            <div class=\"bfl-feat-title\">Real-time webhooks, no IDLE loop<\/div><!-- [et_pb_line_break_holder] -->            <pee class=\"bfl-feat-desc\">Receive HTTP notifications when new emails arrive. No persistent IMAP connection to manage, no 29-minute IDLE timeout to handle, no dedicated thread per account.<\/pee><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"bfl-feature\"><!-- [et_pb_line_break_holder] -->          <div class=\"bfl-feat-icon-wrap\"><!-- [et_pb_line_break_holder] -->            <svg class=\"bfl-feat-icon\" viewBox=\"0 0 24 24\"><polyline points=\"20 6 9 17 4 12\"\/><\/svg><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->          <div><!-- [et_pb_line_break_holder] -->            <div class=\"bfl-feat-title\">Multi-account from day one<\/div><!-- [et_pb_line_break_holder] -->            <pee class=\"bfl-feat-desc\">Link user accounts via Unipile&#8217;s hosted OAuth flow. Each linked account gets its own account_id. Scale from 1 to 10,000 linked accounts without changing your integration code.<\/pee><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"bfl-feature\"><!-- [et_pb_line_break_holder] -->          <div class=\"bfl-feat-icon-wrap\"><!-- [et_pb_line_break_holder] -->            <svg class=\"bfl-feat-icon\" viewBox=\"0 0 24 24\"><polyline points=\"20 6 9 17 4 12\"\/><\/svg><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->          <div><!-- [et_pb_line_break_holder] -->            <div class=\"bfl-feat-title\">SOC 2 Type II + CASA Tier 2<\/div><!-- [et_pb_line_break_holder] -->            <pee class=\"bfl-feat-desc\">Credentials encrypted at rest with KMS-backed keys. Unipile is SOC 2 Type II certified and CASA Tier 2 assessed. No IMAP passwords or OAuth tokens stored in your database.<\/pee><!-- [et_pb_line_break_holder] -->          <\/div><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->      <div class=\"bfl-code-wrap\"><!-- [et_pb_line_break_holder] -->        <div class=\"bfl-editor-bar\"><!-- [et_pb_line_break_holder] -->          <span class=\"bfl-dot bfl-dot-r\"><\/span><span class=\"bfl-dot bfl-dot-y\"><\/span><span class=\"bfl-dot bfl-dot-g\"><\/span><!-- [et_pb_line_break_holder] -->          <span class=\"bfl-filename\">unipile_quickstart.py<\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"bfl-pre\"><code><span class=\"k\">import<\/span><span class=\"w\"> requests<\/span><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><span class=\"w\">BASE_URL <\/span><span class=\"k\">=<\/span><span class=\"w\"> <\/span><span class=\"s\">\"https:\/\/api7.unipile.com:13047\/api\/v1\"<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">HEADERS  <\/span><span class=\"k\">=<\/span><span class=\"w\"> {<\/span><span class=\"s\">\"X-API-KEY\"<\/span><span class=\"w\">: <\/span><span class=\"s\">\"your-unipile-api-key\"<\/span><span class=\"w\">}<\/span><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><span class=\"c\"># Step 1: List all linked accounts<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">accounts <\/span><span class=\"k\">=<\/span><span class=\"w\"> requests.<\/span><span class=\"fn\">get<\/span><span class=\"w\">(<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">    <\/span><span class=\"s\">f\"{BASE_URL}\/accounts\"<\/span><span class=\"w\">, headers<\/span><span class=\"k\">=<\/span><span class=\"w\">HEADERS<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">).<\/span><span class=\"fn\">json<\/span><span class=\"w\">()<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">account_id <\/span><span class=\"k\">=<\/span><span class=\"w\"> accounts[<\/span><span class=\"s\">\"items\"<\/span><span class=\"w\">][<\/span><span class=\"n\">0<\/span><span class=\"w\">][<\/span><span class=\"s\">\"id\"<\/span><span class=\"w\">]<\/span><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><span class=\"c\"># Step 2: Read inbox emails<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">emails <\/span><span class=\"k\">=<\/span><span class=\"w\"> requests.<\/span><span class=\"fn\">get<\/span><span class=\"w\">(<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">    <\/span><span class=\"s\">f\"{BASE_URL}\/emails\"<\/span><span class=\"w\">,<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">    headers<\/span><span class=\"k\">=<\/span><span class=\"w\">HEADERS,<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">    params<\/span><span class=\"k\">=<\/span><span class=\"w\">{<\/span><span class=\"s\">\"account_id\"<\/span><span class=\"w\">: account_id, <\/span><span class=\"s\">\"limit\"<\/span><span class=\"w\">: <\/span><span class=\"n\">10<\/span><span class=\"w\">}<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">).<\/span><span class=\"fn\">json<\/span><span class=\"w\">()<\/span><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><span class=\"k\">for<\/span><span class=\"w\"> email <\/span><span class=\"k\">in<\/span><span class=\"w\"> emails[<\/span><span class=\"s\">\"items\"<\/span><span class=\"w\">]:<\/span><!-- [et_pb_line_break_holder] --><span class=\"w\">    <\/span><span class=\"fn\">print<\/span><span class=\"w\">(email[<\/span><span class=\"s\">\"subject\"<\/span><span class=\"w\">], email[<\/span><span class=\"s\">\"from_attendee\"<\/span><span class=\"w\">])<\/span><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><span class=\"c\"># No IMAP connection, no token refresh,<\/span><!-- [et_pb_line_break_holder] --><span class=\"c\"># no SSL context, no state machine.<\/span><\/code><\/div><!-- [et_pb_line_break_holder] -->        <div class=\"bfl-editor-ok\"><!-- [et_pb_line_break_holder] -->          <svg viewBox=\"0 0 24 24\"><polyline points=\"20 6 9 17 4 12\"\/><\/svg><!-- [et_pb_line_break_holder] -->          <span>Works with Gmail, Outlook, and IMAP: same code<\/span><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"bfl-providers-strip\"><!-- [et_pb_line_break_holder] -->          <span class=\"bfl-prov-label\">Works with:<\/span><!-- [et_pb_line_break_holder] -->          <img decoding=\"async\" src=\"https:\/\/www.unipile.com\/wp-content\/uploads\/2024\/02\/gmail-3.svg\" alt=\"Gmail\" width=\"18\" height=\"18\"><!-- [et_pb_line_break_holder] -->          <img decoding=\"async\" src=\"https:\/\/www.unipile.com\/wp-content\/uploads\/2024\/02\/outlook-2.svg\" alt=\"Outlook\" width=\"18\" height=\"18\"><!-- [et_pb_line_break_holder] -->          <img decoding=\"async\" src=\"https:\/\/www.unipile.com\/wp-content\/uploads\/2024\/02\/imap-1.svg\" alt=\"IMAP\" width=\"18\" height=\"18\"><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] -->    <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    <div class=\"bfl-compliance\"><!-- [et_pb_line_break_holder] -->      <span class=\"bfl-comp-badge\"><svg viewBox=\"0 0 24 24\"><path d=\"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z\"\/><\/svg><span>SOC 2 Type II<\/span><\/span><!-- [et_pb_line_break_holder] -->      <span class=\"bfl-comp-badge\"><svg viewBox=\"0 0 24 24\"><polyline points=\"20 6 9 17 4 12\"\/><\/svg><span>CASA Tier 2<\/span><\/span><!-- [et_pb_line_break_holder] -->      <span class=\"bfl-comp-badge\"><svg viewBox=\"0 0 24 24\"><rect x=\"3\" y=\"11\" width=\"18\" height=\"11\" rx=\"2\" ry=\"2\"\/><path d=\"M7 11V7a5 5 0 0 1 10 0v4\"\/><\/svg><span>Credentials encrypted at rest<\/span><\/span><!-- [et_pb_line_break_holder] -->      <span class=\"bfl-comp-badge\"><svg viewBox=\"0 0 24 24\"><polyline points=\"20 6 9 17 4 12\"\/><\/svg><span>GDPR compliant<\/span><\/span><!-- [et_pb_line_break_holder] -->    <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    <div class=\"bfl-cta-row\"><!-- [et_pb_line_break_holder] -->      <a href=\"https:\/\/dashboard.unipile.com\/signup\/\" target=\"_blank\" class=\"bfl-cta-primary\"><span>Build your unified email integration<\/span><svg class=\"bfl-cta-icon\" viewBox=\"0 0 24 24\"><line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\"\/><polyline points=\"12 5 19 12 12 19\"\/><\/svg><\/a><!-- [et_pb_line_break_holder] -->      <a href=\"https:\/\/developer.unipile.com\/docs\/getting-started\" target=\"_blank\" class=\"bfl-cta-secondary\"><span>Read the API docs<\/span><svg class=\"bfl-cta-icon\" viewBox=\"0 0 24 24\"><path d=\"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6\"\/><polyline points=\"15 3 21 3 21 9\"\/><line x1=\"10\" y1=\"14\" x2=\"21\" y2=\"3\"\/><\/svg><\/a><!-- [et_pb_line_break_holder] -->    <\/div><!-- [et_pb_line_break_holder] -->  <\/div><!-- [et_pb_line_break_holder] --><\/div><!-- [et_pb_line_break_holder] --><\/body><!-- [et_pb_line_break_holder] --><\/html>[\/et_pb_code][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.27.0&#8243; background_color=&#8221;transparent&#8221; custom_padding=&#8221;0px||0px||false|false&#8221; da_disable_devices=&#8221;off|off|off&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221; da_is_popup=&#8221;off&#8221; da_exit_intent=&#8221;off&#8221; da_has_close=&#8221;on&#8221; da_alt_close=&#8221;off&#8221; da_dark_close=&#8221;off&#8221; da_not_modal=&#8221;on&#8221; da_is_singular=&#8221;off&#8221; da_with_loader=&#8221;off&#8221; da_has_shadow=&#8221;on&#8221;][et_pb_row _builder_version=&#8221;4.27.0&#8243; max_width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.27.0&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_code _builder_version=&#8221;4.27.0&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<script type=\"application\/ld+json\"><!-- [et_pb_line_break_holder] -->{<!-- [et_pb_line_break_holder] -->  \"@context\": \"https:\/\/schema.org\",<!-- [et_pb_line_break_holder] -->  \"@type\": \"FAQPage\",<!-- [et_pb_line_break_holder] -->  \"mainEntity\": [<!-- [et_pb_line_break_holder] -->    {<!-- [et_pb_line_break_holder] -->      \"@type\": \"Question\",<!-- [et_pb_line_break_holder] -->      \"name\": \"What is an IMAP server connection?\",<!-- [et_pb_line_break_holder] -->      \"acceptedAnswer\": {<!-- [et_pb_line_break_holder] -->        \"@type\": \"Answer\",<!-- [et_pb_line_break_holder] -->        \"text\": \"An IMAP server connection is a persistent TCP session between an email client and a mail server that uses the Internet Message Access Protocol (IMAP) to synchronize, retrieve, and manage email messages stored on the server - without downloading or deleting them locally. Unlike POP3, IMAP keeps messages on the server and synchronizes state (read, flagged, moved) across all connected devices.\"<!-- [et_pb_line_break_holder] -->      }<!-- [et_pb_line_break_holder] -->    },<!-- [et_pb_line_break_holder] -->    {<!-- [et_pb_line_break_holder] -->      \"@type\": \"Question\",<!-- [et_pb_line_break_holder] -->      \"name\": \"Which port should I use for IMAP: 143 or 993?\",<!-- [et_pb_line_break_holder] -->      \"acceptedAnswer\": {<!-- [et_pb_line_break_holder] -->        \"@type\": \"Answer\",<!-- [et_pb_line_break_holder] -->        \"text\": \"Use port 993 for IMAP over SSL\/TLS (implicit TLS). This is the modern standard and is required by all major cloud providers including Gmail and Outlook. Port 143 is for STARTTLS upgrades or plain-text connections and is suitable for self-hosted mail servers, but should never be used without STARTTLS in production. Port 993 is the correct default for any new integration.\"<!-- [et_pb_line_break_holder] -->      }<!-- [et_pb_line_break_holder] -->    },<!-- [et_pb_line_break_holder] -->    {<!-- [et_pb_line_break_holder] -->      \"@type\": \"Question\",<!-- [et_pb_line_break_holder] -->      \"name\": \"Do I need SSL\/TLS for IMAP?\",<!-- [et_pb_line_break_holder] -->      \"acceptedAnswer\": {<!-- [et_pb_line_break_holder] -->        \"@type\": \"Answer\",<!-- [et_pb_line_break_holder] -->        \"text\": \"Yes. SSL\/TLS is mandatory for any IMAP server connection that transmits credentials. Modern mail servers, including Gmail and Outlook, refuse plain-text connections entirely. Use port 993 with implicit TLS (IMAP4_SSL in Python). RFC 9051 (IMAP4rev2) formally requires TLS for all authenticated sessions.\"<!-- [et_pb_line_break_holder] -->      }<!-- [et_pb_line_break_holder] -->    },<!-- [et_pb_line_break_holder] -->    {<!-- [et_pb_line_break_holder] -->      \"@type\": \"Question\",<!-- [et_pb_line_break_holder] -->      \"name\": \"What is the IMAP server address for Gmail?\",<!-- [et_pb_line_break_holder] -->      \"acceptedAnswer\": {<!-- [et_pb_line_break_holder] -->        \"@type\": \"Answer\",<!-- [et_pb_line_break_holder] -->        \"text\": \"The IMAP server address for Gmail is imap.gmail.com on port 993 with SSL\/TLS. You must first enable IMAP access in Gmail Settings under Forwarding and POP\/IMAP. Authentication requires either an app-specific password (if 2FA is enabled) or OAuth 2.0 XOAUTH2 with the scope https:\/\/mail.google.com\/.\"<!-- [et_pb_line_break_holder] -->      }<!-- [et_pb_line_break_holder] -->    },<!-- [et_pb_line_break_holder] -->    {<!-- [et_pb_line_break_holder] -->      \"@type\": \"Question\",<!-- [et_pb_line_break_holder] -->      \"name\": \"What is the IMAP server address for Outlook and Microsoft 365?\",<!-- [et_pb_line_break_holder] -->      \"acceptedAnswer\": {<!-- [et_pb_line_break_holder] -->        \"@type\": \"Answer\",<!-- [et_pb_line_break_holder] -->        \"text\": \"The IMAP server address for Outlook and Microsoft 365 is outlook.office365.com on port 993 with SSL\/TLS. Both personal Outlook.com accounts and Microsoft 365 business accounts use the same host. Note that Microsoft is ending support for Basic Authentication (username\/password) for IMAP in December 2026 - all integrations must migrate to OAuth 2.0 XOAUTH2 before that deadline.\"<!-- [et_pb_line_break_holder] -->      }<!-- [et_pb_line_break_holder] -->    },<!-- [et_pb_line_break_holder] -->    {<!-- [et_pb_line_break_holder] -->      \"@type\": \"Question\",<!-- [et_pb_line_break_holder] -->      \"name\": \"Do I need an app password to connect to IMAP?\",<!-- [et_pb_line_break_holder] -->      \"acceptedAnswer\": {<!-- [et_pb_line_break_holder] -->        \"@type\": \"Answer\",<!-- [et_pb_line_break_holder] -->        \"text\": \"You need an app-specific password if your account has two-factor authentication (2FA) enabled and you are using Basic Authentication for IMAP. App passwords are 16-character tokens generated from your provider's security settings (Google Account for Gmail, Apple ID for iCloud) that substitute for your real password. For production multi-user applications, OAuth 2.0 is preferred over app passwords as it avoids storing any user credentials in your application.\"<!-- [et_pb_line_break_holder] -->      }<!-- [et_pb_line_break_holder] -->    },<!-- [et_pb_line_break_holder] -->    {<!-- [et_pb_line_break_holder] -->      \"@type\": \"Question\",<!-- [et_pb_line_break_holder] -->      \"name\": \"Is IMAP Basic Authentication deprecated in 2026?\",<!-- [et_pb_line_break_holder] -->      \"acceptedAnswer\": {<!-- [et_pb_line_break_holder] -->        \"@type\": \"Answer\",<!-- [et_pb_line_break_holder] -->        \"text\": \"Yes, for Microsoft services. Microsoft has announced the final end-of-life for Basic Authentication across IMAP, POP3, and SMTP for Exchange Online in December 2026. All Microsoft 365 and Outlook integrations using username\/password authentication will stop working after that date. Google has already restricted Basic Auth access for Gmail and requires app passwords or OAuth for new integrations. If your IMAP integration connects to Microsoft accounts, you must migrate to OAuth 2.0 XOAUTH2 before December 2026.\"<!-- [et_pb_line_break_holder] -->      }<!-- [et_pb_line_break_holder] -->    },<!-- [et_pb_line_break_holder] -->    {<!-- [et_pb_line_break_holder] -->      \"@type\": \"Question\",<!-- [et_pb_line_break_holder] -->      \"name\": \"How do I connect to IMAP with OAuth 2.0?\",<!-- [et_pb_line_break_holder] -->      \"acceptedAnswer\": {<!-- [et_pb_line_break_holder] -->        \"@type\": \"Answer\",<!-- [et_pb_line_break_holder] -->        \"text\": \"To connect to an IMAP server with OAuth 2.0, you use the XOAUTH2 SASL mechanism. After obtaining an access token through the standard OAuth authorization code flow, you encode a string in the format 'user={email}\\\\x01auth=Bearer {token}\\\\x01\\\\x01' as base64, then pass it to the IMAP AUTHENTICATE XOAUTH2 command. For Gmail, use the scope https:\/\/mail.google.com\/ and the Google OAuth endpoints. For Microsoft 365, use MSAL to acquire a token with the IMAP.AccessAsUser.All scope. Access tokens expire after 3600 seconds and must be refreshed before re-connecting.\"<!-- [et_pb_line_break_holder] -->      }<!-- [et_pb_line_break_holder] -->    }<!-- [et_pb_line_break_holder] -->  ]<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><\/script><!-- [et_pb_line_break_holder] --><link href=\"https:\/\/fonts.googleapis.com\/css2?family=Inter:wght@400;500;600;700&#038;family=Poppins:wght@700;800&#038;display=swap\" rel=\"stylesheet\"><!-- [et_pb_line_break_holder] --><style><!-- [et_pb_line_break_holder] -->#upl-imap-faq,<!-- [et_pb_line_break_holder] -->#upl-imap-faq *,<!-- [et_pb_line_break_holder] -->#upl-imap-faq *::before,<!-- [et_pb_line_break_holder] -->#upl-imap-faq *::after {<!-- [et_pb_line_break_holder] -->  margin: 0 !important;<!-- [et_pb_line_break_holder] -->  padding: 0 !important;<!-- [et_pb_line_break_holder] -->  box-sizing: border-box !important;<!-- [et_pb_line_break_holder] -->  border: none !important;<!-- [et_pb_line_break_holder] -->  outline: none !important;<!-- [et_pb_line_break_holder] -->  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.5 !important;<!-- [et_pb_line_break_holder] -->  letter-spacing: normal !important;<!-- [et_pb_line_break_holder] -->  text-transform: none !important;<!-- [et_pb_line_break_holder] -->  text-decoration: none !important;<!-- [et_pb_line_break_holder] -->  list-style: none !important;<!-- [et_pb_line_break_holder] -->  background: transparent !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-faq.upl-imap-faq-wrapper {<!-- [et_pb_line_break_holder] -->  display: block !important;<!-- [et_pb_line_break_holder] -->  padding: 70px 24px !important;<!-- [et_pb_line_break_holder] -->  background: #f4f5f7 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-faq.upl-imap-faq-wrapper .fq-inner {<!-- [et_pb_line_break_holder] -->  max-width: 900px !important;<!-- [et_pb_line_break_holder] -->  margin: 0 auto !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-faq.upl-imap-faq-wrapper .fq-badge {<!-- [et_pb_line_break_holder] -->  display: inline-flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 8px !important;<!-- [et_pb_line_break_holder] -->  background: rgba(59, 185, 139, 0.12) !important;<!-- [et_pb_line_break_holder] -->  color: #2aaa7e !important;<!-- [et_pb_line_break_holder] -->  padding: 6px 14px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 20px !important;<!-- [et_pb_line_break_holder] -->  font-size: 12px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  text-transform: uppercase !important;<!-- [et_pb_line_break_holder] -->  letter-spacing: 0.5px !important;<!-- [et_pb_line_break_holder] -->  width: fit-content !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 16px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-faq.upl-imap-faq-wrapper .fq-badge-dot {<!-- [et_pb_line_break_holder] -->  width: 7px !important;<!-- [et_pb_line_break_holder] -->  height: 7px !important;<!-- [et_pb_line_break_holder] -->  background: #3BB98B !important;<!-- [et_pb_line_break_holder] -->  border-radius: 50% !important;<!-- [et_pb_line_break_holder] -->  flex-shrink: 0 !important;<!-- [et_pb_line_break_holder] -->  display: inline-block !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-faq.upl-imap-faq-wrapper h2 {<!-- [et_pb_line_break_holder] -->  font-family: 'Poppins', sans-serif !important;<!-- [et_pb_line_break_holder] -->  font-size: 35px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.2 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 12px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-faq.upl-imap-faq-wrapper .fq-intro {<!-- [et_pb_line_break_holder] -->  font-size: 16px !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.75 !important;<!-- [et_pb_line_break_holder] -->  color: #383838 !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 36px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-faq.upl-imap-faq-wrapper .fq-list {<!-- [et_pb_line_break_holder] -->  display: flex !important;<!-- [et_pb_line_break_holder] -->  flex-direction: column !important;<!-- [et_pb_line_break_holder] -->  gap: 12px !important;<!-- [et_pb_line_break_holder] -->  margin-bottom: 40px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-faq.upl-imap-faq-wrapper .fq-item {<!-- [et_pb_line_break_holder] -->  background: #ffffff !important;<!-- [et_pb_line_break_holder] -->  border: 1px solid #e5e7eb !important;<!-- [et_pb_line_break_holder] -->  border-radius: 16px !important;<!-- [et_pb_line_break_holder] -->  overflow: hidden !important;<!-- [et_pb_line_break_holder] -->  transition: border-color 0.2s ease !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-faq.upl-imap-faq-wrapper .fq-item.active {<!-- [et_pb_line_break_holder] -->  border-color: #3BB98B !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-faq.upl-imap-faq-wrapper .fq-header {<!-- [et_pb_line_break_holder] -->  padding: 20px 24px !important;<!-- [et_pb_line_break_holder] -->  display: flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 16px !important;<!-- [et_pb_line_break_holder] -->  cursor: pointer !important;<!-- [et_pb_line_break_holder] -->  user-select: none !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-faq.upl-imap-faq-wrapper .fq-num {<!-- [et_pb_line_break_holder] -->  width: 38px !important;<!-- [et_pb_line_break_holder] -->  height: 38px !important;<!-- [et_pb_line_break_holder] -->  min-width: 38px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 10px !important;<!-- [et_pb_line_break_holder] -->  background: rgba(59, 185, 139, 0.10) !important;<!-- [et_pb_line_break_holder] -->  color: #2aaa7e !important;<!-- [et_pb_line_break_holder] -->  font-family: 'Poppins', sans-serif !important;<!-- [et_pb_line_break_holder] -->  font-size: 13px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->  display: flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  justify-content: center !important;<!-- [et_pb_line_break_holder] -->  transition: background 0.2s, color 0.2s !important;<!-- [et_pb_line_break_holder] -->  flex-shrink: 0 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-faq.upl-imap-faq-wrapper .fq-item.active .fq-num {<!-- [et_pb_line_break_holder] -->  background: #3BB98B !important;<!-- [et_pb_line_break_holder] -->  color: #ffffff !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-faq.upl-imap-faq-wrapper .fq-question {<!-- [et_pb_line_break_holder] -->  font-size: 16px !important;<!-- [et_pb_line_break_holder] -->  font-weight: 600 !important;<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.4 !important;<!-- [et_pb_line_break_holder] -->  flex: 1 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-faq.upl-imap-faq-wrapper .fq-toggle {<!-- [et_pb_line_break_holder] -->  width: 22px !important;<!-- [et_pb_line_break_holder] -->  height: 22px !important;<!-- [et_pb_line_break_holder] -->  min-width: 22px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 6px !important;<!-- [et_pb_line_break_holder] -->  background: rgba(59, 185, 139, 0.08) !important;<!-- [et_pb_line_break_holder] -->  display: flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  justify-content: center !important;<!-- [et_pb_line_break_holder] -->  transition: background 0.2s, transform 0.25s !important;<!-- [et_pb_line_break_holder] -->  flex-shrink: 0 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-faq.upl-imap-faq-wrapper .fq-item.active .fq-toggle {<!-- [et_pb_line_break_holder] -->  background: #3BB98B !important;<!-- [et_pb_line_break_holder] -->  transform: rotate(45deg) !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-faq.upl-imap-faq-wrapper .fq-toggle svg {<!-- [et_pb_line_break_holder] -->  width: 14px !important;<!-- [et_pb_line_break_holder] -->  height: 14px !important;<!-- [et_pb_line_break_holder] -->  stroke: #3BB98B !important;<!-- [et_pb_line_break_holder] -->  fill: none !important;<!-- [et_pb_line_break_holder] -->  stroke-width: 2.5 !important;<!-- [et_pb_line_break_holder] -->  stroke-linecap: round !important;<!-- [et_pb_line_break_holder] -->  stroke-linejoin: round !important;<!-- [et_pb_line_break_holder] -->  transition: stroke 0.2s !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-faq.upl-imap-faq-wrapper .fq-item.active .fq-toggle svg {<!-- [et_pb_line_break_holder] -->  stroke: #ffffff !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-faq.upl-imap-faq-wrapper .fq-body {<!-- [et_pb_line_break_holder] -->  max-height: 0 !important;<!-- [et_pb_line_break_holder] -->  overflow: hidden !important;<!-- [et_pb_line_break_holder] -->  transition: max-height 0.35s ease !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-faq.upl-imap-faq-wrapper .fq-body.open {<!-- [et_pb_line_break_holder] -->  max-height: 800px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-faq.upl-imap-faq-wrapper .fq-answer {<!-- [et_pb_line_break_holder] -->  padding: 0 28px 28px 76px !important;<!-- [et_pb_line_break_holder] -->  font-size: 15px !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.78 !important;<!-- [et_pb_line_break_holder] -->  color: #4a5568 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-faq.upl-imap-faq-wrapper .fq-answer a {<!-- [et_pb_line_break_holder] -->  color: #2aaa7e !important;<!-- [et_pb_line_break_holder] -->  text-decoration: underline !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-faq.upl-imap-faq-wrapper .fq-answer strong {<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-faq.upl-imap-faq-wrapper .fq-answer code {<!-- [et_pb_line_break_holder] -->  background: rgba(0,0,0,0.06) !important;<!-- [et_pb_line_break_holder] -->  padding: 2px 5px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 4px !important;<!-- [et_pb_line_break_holder] -->  font-family: 'Courier New', monospace !important;<!-- [et_pb_line_break_holder] -->  font-size: 12.5px !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-faq.upl-imap-faq-wrapper .fq-cta-bar {<!-- [et_pb_line_break_holder] -->  background: #ffffff !important;<!-- [et_pb_line_break_holder] -->  border: 1px solid #e5e7eb !important;<!-- [et_pb_line_break_holder] -->  border-radius: 16px !important;<!-- [et_pb_line_break_holder] -->  padding: 24px 28px !important;<!-- [et_pb_line_break_holder] -->  display: flex !important;<!-- [et_pb_line_break_holder] -->  justify-content: space-between !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 20px !important;<!-- [et_pb_line_break_holder] -->  flex-wrap: wrap !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-faq.upl-imap-faq-wrapper .fq-cta-text {<!-- [et_pb_line_break_holder] -->  font-size: 15.5px !important;<!-- [et_pb_line_break_holder] -->  color: #383838 !important;<!-- [et_pb_line_break_holder] -->  line-height: 1.6 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-faq.upl-imap-faq-wrapper .fq-cta-text strong {<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  font-weight: 700 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-faq.upl-imap-faq-wrapper .fq-cta-btn {<!-- [et_pb_line_break_holder] -->  display: inline-flex !important;<!-- [et_pb_line_break_holder] -->  align-items: center !important;<!-- [et_pb_line_break_holder] -->  gap: 8px !important;<!-- [et_pb_line_break_holder] -->  background: #DDDF4C !important;<!-- [et_pb_line_break_holder] -->  color: #0f2736 !important;<!-- [et_pb_line_break_holder] -->  padding: 12px 22px !important;<!-- [et_pb_line_break_holder] -->  border-radius: 8px !important;<!-- [et_pb_line_break_holder] -->  font-size: 0.9rem !important;<!-- [et_pb_line_break_holder] -->  font-weight: 600 !important;<!-- [et_pb_line_break_holder] -->  border: 2px solid #DDDF4C !important;<!-- [et_pb_line_break_holder] -->  cursor: pointer !important;<!-- [et_pb_line_break_holder] -->  white-space: nowrap !important;<!-- [et_pb_line_break_holder] -->  transition: transform 0.2s ease !important;<!-- [et_pb_line_break_holder] -->  text-decoration: none !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-faq.upl-imap-faq-wrapper .fq-cta-btn:hover {<!-- [et_pb_line_break_holder] -->  transform: translateY(-3px) !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->#upl-imap-faq.upl-imap-faq-wrapper .fq-cta-btn svg {<!-- [et_pb_line_break_holder] -->  width: 14px !important;<!-- [et_pb_line_break_holder] -->  height: 14px !important;<!-- [et_pb_line_break_holder] -->  stroke: currentColor !important;<!-- [et_pb_line_break_holder] -->  fill: none !important;<!-- [et_pb_line_break_holder] -->  stroke-width: 2.5 !important;<!-- [et_pb_line_break_holder] -->  stroke-linecap: round !important;<!-- [et_pb_line_break_holder] -->  stroke-linejoin: round !important;<!-- [et_pb_line_break_holder] -->  flex-shrink: 0 !important;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->@media (max-width: 900px) {<!-- [et_pb_line_break_holder] -->  #upl-imap-faq.upl-imap-faq-wrapper {<!-- [et_pb_line_break_holder] -->    padding: 50px 16px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-faq.upl-imap-faq-wrapper h2 {<!-- [et_pb_line_break_holder] -->    font-size: 28px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-faq.upl-imap-faq-wrapper .fq-answer {<!-- [et_pb_line_break_holder] -->    padding: 0 16px 20px 16px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->@media (max-width: 600px) {<!-- [et_pb_line_break_holder] -->  #upl-imap-faq.upl-imap-faq-wrapper h2 {<!-- [et_pb_line_break_holder] -->    font-size: 26px !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-faq.upl-imap-faq-wrapper .fq-cta-bar {<!-- [et_pb_line_break_holder] -->    flex-direction: column !important;<!-- [et_pb_line_break_holder] -->    align-items: flex-start !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->  #upl-imap-faq.upl-imap-faq-wrapper .fq-cta-btn {<!-- [et_pb_line_break_holder] -->    width: 100% !important;<!-- [et_pb_line_break_holder] -->    justify-content: center !important;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><\/style><!-- [et_pb_line_break_holder] --><div id=\"upl-imap-faq\" class=\"upl-imap-faq-wrapper\"><!-- [et_pb_line_break_holder] -->  <div class=\"fq-inner\"><!-- [et_pb_line_break_holder] -->    <span id=\"imap-faq\" style=\"display:block;position:relative;top:-80px;visibility:hidden;\"><\/span><!-- [et_pb_line_break_holder] -->    <div class=\"fq-badge\"><span class=\"fq-badge-dot\"><\/span><span>FAQ<\/span><\/div><!-- [et_pb_line_break_holder] -->    <h2>Frequently Asked Questions<\/h2><!-- [et_pb_line_break_holder] -->    <pee class=\"fq-intro\">Common questions about IMAP server connections, ports, authentication, and OAuth migration.<\/pee><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    <div class=\"fq-list\"><!-- [et_pb_line_break_holder] -->      <div class=\"fq-item\"><!-- [et_pb_line_break_holder] -->        <div class=\"fq-header\" onclick=\"fqToggle(this)\"><!-- [et_pb_line_break_holder] -->          <div class=\"fq-num\"><span>1<\/span><\/div><!-- [et_pb_line_break_holder] -->          <div class=\"fq-question\"><span>What is an IMAP server connection?<\/span><\/div><!-- [et_pb_line_break_holder] -->          <div class=\"fq-toggle\"><svg viewBox=\"0 0 24 24\"><line x1=\"12\" y1=\"5\" x2=\"12\" y2=\"19\"\/><line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\"\/><\/svg><\/div><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"fq-body\"><!-- [et_pb_line_break_holder] -->          <pee class=\"fq-answer\">An IMAP server connection is a persistent TCP session between an email client and a mail server that uses the Internet Message Access Protocol to synchronize, retrieve, and manage email messages stored on the server &#8211; without downloading or deleting them locally. Unlike POP3, IMAP keeps messages on the server and synchronizes state (read, flagged, moved) across all connected devices. For developers, it is the foundational protocol for building email integrations that work across Gmail, Outlook, and any standard <a href=\"https:\/\/www.unipile.com\/the-developers-guide-to-imap-api-solution\/\">IMAP API<\/a>.<\/pee><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->      <div class=\"fq-item\"><!-- [et_pb_line_break_holder] -->        <div class=\"fq-header\" onclick=\"fqToggle(this)\"><!-- [et_pb_line_break_holder] -->          <div class=\"fq-num\"><span>2<\/span><\/div><!-- [et_pb_line_break_holder] -->          <div class=\"fq-question\"><span>Which port should I use for IMAP: 143 or 993?<\/span><\/div><!-- [et_pb_line_break_holder] -->          <div class=\"fq-toggle\"><svg viewBox=\"0 0 24 24\"><line x1=\"12\" y1=\"5\" x2=\"12\" y2=\"19\"\/><line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\"\/><\/svg><\/div><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"fq-body\"><!-- [et_pb_line_break_holder] -->          <pee class=\"fq-answer\">Use <strong>port 993<\/strong> for IMAP over SSL\/TLS (implicit TLS). This is the modern standard and is required by all major cloud providers including Gmail and Outlook. Port 143 is for STARTTLS upgrades and is only appropriate for self-hosted mail servers. Never connect to a cloud mail server on port 143 in production &#8211; most now refuse such connections entirely. If you are unsure, always default to port 993 with <code>ssl=True<\/code>.<\/pee><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->      <div class=\"fq-item\"><!-- [et_pb_line_break_holder] -->        <div class=\"fq-header\" onclick=\"fqToggle(this)\"><!-- [et_pb_line_break_holder] -->          <div class=\"fq-num\"><span>3<\/span><\/div><!-- [et_pb_line_break_holder] -->          <div class=\"fq-question\"><span>Do I need SSL\/TLS for IMAP?<\/span><\/div><!-- [et_pb_line_break_holder] -->          <div class=\"fq-toggle\"><svg viewBox=\"0 0 24 24\"><line x1=\"12\" y1=\"5\" x2=\"12\" y2=\"19\"\/><line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\"\/><\/svg><\/div><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"fq-body\"><!-- [et_pb_line_break_holder] -->          <pee class=\"fq-answer\">Yes, without exception. SSL\/TLS is mandatory for any IMAP server connection that transmits credentials. Modern mail servers refuse plain-text connections entirely. RFC 9051 (IMAP4rev2) formally requires TLS for all authenticated sessions. Always use <strong>port 993 with implicit TLS<\/strong> for cloud providers. If connecting to a self-hosted server on port 143, you must upgrade to TLS using the STARTTLS command and verify the server certificate &#8211; never use <code>ssl._create_unverified_context()<\/code> in production.<\/pee><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->      <div class=\"fq-item\"><!-- [et_pb_line_break_holder] -->        <div class=\"fq-header\" onclick=\"fqToggle(this)\"><!-- [et_pb_line_break_holder] -->          <div class=\"fq-num\"><span>4<\/span><\/div><!-- [et_pb_line_break_holder] -->          <div class=\"fq-question\"><span>What is the IMAP server address for Gmail?<\/span><\/div><!-- [et_pb_line_break_holder] -->          <div class=\"fq-toggle\"><svg viewBox=\"0 0 24 24\"><line x1=\"12\" y1=\"5\" x2=\"12\" y2=\"19\"\/><line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\"\/><\/svg><\/div><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"fq-body\"><!-- [et_pb_line_break_holder] -->          <pee class=\"fq-answer\">The IMAP server address for Gmail is <code>imap.gmail.com<\/code> on <strong>port 993<\/strong> with SSL\/TLS. Before connecting, you must enable IMAP access in Gmail Settings under &#8220;Forwarding and POP\/IMAP&#8221;. Authentication requires either an app-specific password (if 2FA is enabled) or OAuth 2.0 XOAUTH2 with the scope <code>https:\/\/mail.google.com\/<\/code>. Google has restricted Basic Auth for new apps and strongly recommends OAuth for any programmatic IMAP access.<\/pee><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->      <div class=\"fq-item\"><!-- [et_pb_line_break_holder] -->        <div class=\"fq-header\" onclick=\"fqToggle(this)\"><!-- [et_pb_line_break_holder] -->          <div class=\"fq-num\"><span>5<\/span><\/div><!-- [et_pb_line_break_holder] -->          <div class=\"fq-question\"><span>What is the IMAP server address for Outlook and Microsoft 365?<\/span><\/div><!-- [et_pb_line_break_holder] -->          <div class=\"fq-toggle\"><svg viewBox=\"0 0 24 24\"><line x1=\"12\" y1=\"5\" x2=\"12\" y2=\"19\"\/><line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\"\/><\/svg><\/div><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"fq-body\"><!-- [et_pb_line_break_holder] -->          <pee class=\"fq-answer\">The IMAP server address for both personal Outlook.com accounts and Microsoft 365 business accounts is <code>outlook.office365.com<\/code> on <strong>port 993<\/strong> with SSL\/TLS. Note that Microsoft is ending support for Basic Authentication (username\/password) for IMAP in <strong>December 2026<\/strong>. All integrations must migrate to OAuth 2.0 XOAUTH2 before that deadline. See our <a href=\"https:\/\/www.unipile.com\/microsoft-graph-oauth-email\/\">Microsoft Graph OAuth for Outlook<\/a> guide for migration steps.<\/pee><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->      <div class=\"fq-item\"><!-- [et_pb_line_break_holder] -->        <div class=\"fq-header\" onclick=\"fqToggle(this)\"><!-- [et_pb_line_break_holder] -->          <div class=\"fq-num\"><span>6<\/span><\/div><!-- [et_pb_line_break_holder] -->          <div class=\"fq-question\"><span>Do I need an app password to connect to IMAP?<\/span><\/div><!-- [et_pb_line_break_holder] -->          <div class=\"fq-toggle\"><svg viewBox=\"0 0 24 24\"><line x1=\"12\" y1=\"5\" x2=\"12\" y2=\"19\"\/><line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\"\/><\/svg><\/div><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"fq-body\"><!-- [et_pb_line_break_holder] -->          <pee class=\"fq-answer\">You need an app-specific password if your account has two-factor authentication enabled and you are using Basic Auth for IMAP. App passwords are 16-character tokens generated from your provider&#8217;s security settings (Google Account security page for Gmail, Apple ID for iCloud) that substitute for your real password without granting full account access. For production multi-user applications, <strong>OAuth 2.0 is strongly preferred<\/strong> over app passwords &#8211; it is more secure, does not require storing any user credential in your application, and is the only method that remains valid after the Microsoft Basic Auth deprecation in December 2026.<\/pee><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->      <div class=\"fq-item\"><!-- [et_pb_line_break_holder] -->        <div class=\"fq-header\" onclick=\"fqToggle(this)\"><!-- [et_pb_line_break_holder] -->          <div class=\"fq-num\"><span>7<\/span><\/div><!-- [et_pb_line_break_holder] -->          <div class=\"fq-question\"><span>Is IMAP Basic Authentication deprecated in 2026?<\/span><\/div><!-- [et_pb_line_break_holder] -->          <div class=\"fq-toggle\"><svg viewBox=\"0 0 24 24\"><line x1=\"12\" y1=\"5\" x2=\"12\" y2=\"19\"\/><line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\"\/><\/svg><\/div><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"fq-body\"><!-- [et_pb_line_break_holder] -->          <pee class=\"fq-answer\">Yes, for Microsoft services. Microsoft has confirmed the final end-of-life for Basic Authentication across IMAP, POP3, and SMTP in Exchange Online in <strong>December 2026<\/strong>, affecting all tenants including those with existing exemptions. Any integration using username\/password authentication against Outlook or Microsoft 365 IMAP will stop working after that date. Google has already restricted Basic Auth access for Gmail and requires app passwords or OAuth for any programmatic access since 2022. If your IMAP integration connects to Microsoft accounts, you must migrate to <a href=\"https:\/\/www.unipile.com\/oauth-email-api\/\">OAuth 2.0 XOAUTH2<\/a> before December 2026.<\/pee><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->      <div class=\"fq-item\"><!-- [et_pb_line_break_holder] -->        <div class=\"fq-header\" onclick=\"fqToggle(this)\"><!-- [et_pb_line_break_holder] -->          <div class=\"fq-num\"><span>8<\/span><\/div><!-- [et_pb_line_break_holder] -->          <div class=\"fq-question\"><span>How do I connect to IMAP with OAuth 2.0?<\/span><\/div><!-- [et_pb_line_break_holder] -->          <div class=\"fq-toggle\"><svg viewBox=\"0 0 24 24\"><line x1=\"12\" y1=\"5\" x2=\"12\" y2=\"19\"\/><line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\"\/><\/svg><\/div><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->        <div class=\"fq-body\"><!-- [et_pb_line_break_holder] -->          <pee class=\"fq-answer\">To connect to an IMAP server with OAuth 2.0, you use the XOAUTH2 SASL mechanism. After obtaining an access token through the standard OAuth authorization code flow, encode the string <code>user={email}\\x01auth=Bearer {token}\\x01\\x01<\/code> as base64, then pass it to the <code>AUTHENTICATE XOAUTH2<\/code> IMAP command. For Gmail, the required scope is <code>https:\/\/mail.google.com\/<\/code>. For Microsoft 365, use MSAL to acquire a token with the <code>IMAP.AccessAsUser.All<\/code> scope. Access tokens expire after 3600 seconds and must be refreshed before reconnecting &#8211; implement a token refresh check before each new IMAP session. See the full code samples in the XOAUTH2 section above.<\/pee><!-- [et_pb_line_break_holder] -->        <\/div><!-- [et_pb_line_break_holder] -->      <\/div><!-- [et_pb_line_break_holder] -->    <\/div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    <div class=\"fq-cta-bar\"><!-- [et_pb_line_break_holder] -->      <pee class=\"fq-cta-text\"><strong>Still have questions about IMAP integration?<\/strong> Our team can help you navigate provider quirks, OAuth migration, and multi-account architecture.<\/pee><!-- [et_pb_line_break_holder] -->      <a href=\"https:\/\/dashboard.unipile.com\/signup\/\" target=\"_blank\" class=\"fq-cta-btn\"><span>Talk to an expert<\/span><svg viewBox=\"0 0 24 24\"><line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\"\/><polyline points=\"12 5 19 12 12 19\"\/><\/svg><\/a><!-- [et_pb_line_break_holder] -->    <\/div><!-- [et_pb_line_break_holder] -->  <\/div><!-- [et_pb_line_break_holder] --><\/div><!-- [et_pb_line_break_holder] --><script><!-- [et_pb_line_break_holder] -->function fqToggle(header) {<!-- [et_pb_line_break_holder] -->  var item = header.parentElement;<!-- [et_pb_line_break_holder] -->  var body = item.querySelector('.fq-body');<!-- [et_pb_line_break_holder] -->  var wasOpen = item.classList.contains('active');<!-- [et_pb_line_break_holder] -->  document.querySelectorAll('#upl-imap-faq .fq-item').forEach(function(i) {<!-- [et_pb_line_break_holder] -->    i.classList.remove('active');<!-- [et_pb_line_break_holder] -->    i.querySelector('.fq-body').classList.remove('open');<!-- [et_pb_line_break_holder] -->  });<!-- [et_pb_line_break_holder] -->  if (!wasOpen) {<!-- [et_pb_line_break_holder] -->    item.classList.add('active');<!-- [et_pb_line_break_holder] -->    body.classList.add('open');<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><\/script>[\/et_pb_code][\/et_pb_column][\/et_pb_row][\/et_pb_section]\n","protected":false},"excerpt":{"rendered":"<p>Borrador de marcador de posici\u00f3n \u2014 Gu\u00eda de conexi\u00f3n del servidor IMAP. Comprobaci\u00f3n previa breve de SERP en curso.<\/p>","protected":false},"author":4,"featured_media":278926,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","inline_featured_image":false,"footnotes":""},"categories":[37],"tags":[],"post_folder":[],"class_list":["post-278904","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cat-guides"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Connect to an IMAP Server: Hosts, Ports, SSL\/TLS &amp; OAuth (2026 Guide) - Unipile<\/title>\n<meta name=\"description\" content=\"Connect to any IMAP server in 2026: host\/port table, SSL vs STARTTLS, OAuth XOAUTH2, code samples (Python, Node) &amp; Basic Auth deprecation fix.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.unipile.com\/es\/guia-de-conexion-al-servidor-imap\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Connect to an IMAP Server: Hosts, Ports, SSL\/TLS &amp; OAuth (2026 Guide) - Unipile\" \/>\n<meta property=\"og:description\" content=\"Connect to any IMAP server in 2026: host\/port table, SSL vs STARTTLS, OAuth XOAUTH2, code samples (Python, Node) &amp; Basic Auth deprecation fix.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.unipile.com\/es\/guia-de-conexion-al-servidor-imap\/\" \/>\n<meta property=\"og:site_name\" content=\"Unipile\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/unipilefr\" \/>\n<meta property=\"article:published_time\" content=\"2026-05-21T09:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-05-21T11:02:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.unipile.com\/wp-content\/uploads\/2024\/02\/gmail-3.svg\" \/>\n<meta name=\"author\" content=\"Damien Girardeau\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@UnipileAPI\" \/>\n<meta name=\"twitter:site\" content=\"@UnipileAPI\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"Damien Girardeau\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data2\" content=\"25 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.unipile.com\\\/imap-server-connection-guide\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.unipile.com\\\/imap-server-connection-guide\\\/\"},\"author\":{\"name\":\"Damien Girardeau\",\"@id\":\"https:\\\/\\\/www.unipile.com\\\/#\\\/schema\\\/person\\\/a2ac44e22bdc27d497ce8b58716a673e\"},\"headline\":\"How to Connect to an IMAP Server: Hosts, Ports, SSL\\\/TLS &amp; OAuth (2026 Guide)\",\"datePublished\":\"2026-05-21T09:00:00+00:00\",\"dateModified\":\"2026-05-21T11:02:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.unipile.com\\\/imap-server-connection-guide\\\/\"},\"wordCount\":6301,\"publisher\":{\"@id\":\"https:\\\/\\\/www.unipile.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.unipile.com\\\/imap-server-connection-guide\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.unipile.com\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/imap-server-connection-guide-featured-1.png\",\"articleSection\":[\"Guides\"],\"inLanguage\":\"es\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.unipile.com\\\/imap-server-connection-guide\\\/\",\"url\":\"https:\\\/\\\/www.unipile.com\\\/imap-server-connection-guide\\\/\",\"name\":\"How to Connect to an IMAP Server: Hosts, Ports, SSL\\\/TLS &amp; OAuth (2026 Guide) - Unipile\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.unipile.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.unipile.com\\\/imap-server-connection-guide\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.unipile.com\\\/imap-server-connection-guide\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.unipile.com\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/imap-server-connection-guide-featured-1.png\",\"datePublished\":\"2026-05-21T09:00:00+00:00\",\"dateModified\":\"2026-05-21T11:02:29+00:00\",\"description\":\"Connect to any IMAP server in 2026: host\\\/port table, SSL vs STARTTLS, OAuth XOAUTH2, code samples (Python, Node) & Basic Auth deprecation fix.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.unipile.com\\\/imap-server-connection-guide\\\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.unipile.com\\\/imap-server-connection-guide\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/www.unipile.com\\\/imap-server-connection-guide\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.unipile.com\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/imap-server-connection-guide-featured-1.png\",\"contentUrl\":\"https:\\\/\\\/www.unipile.com\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/imap-server-connection-guide-featured-1.png\",\"width\":2400,\"height\":1260,\"caption\":\"Compare IMAP server connection settings across Gmail, Outlook, Yahoo, iCloud and 5+ other providers. SSL\\\/TLS on port 993, OAuth XOAUTH2 ready.\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.unipile.com\\\/imap-server-connection-guide\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\\\/\\\/www.unipile.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Connect to an IMAP Server: Hosts, Ports, SSL\\\/TLS &amp; OAuth (2026 Guide)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.unipile.com\\\/#website\",\"url\":\"https:\\\/\\\/www.unipile.com\\\/\",\"name\":\"Unipile\",\"description\":\"Integrate Messaging &amp; Email, Connect with Ease via API\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.unipile.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.unipile.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.unipile.com\\\/#organization\",\"name\":\"Unipile\",\"url\":\"https:\\\/\\\/www.unipile.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/www.unipile.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.unipile.com\\\/wp-content\\\/uploads\\\/2021\\\/05\\\/logo-unipile.png\",\"contentUrl\":\"https:\\\/\\\/www.unipile.com\\\/wp-content\\\/uploads\\\/2021\\\/05\\\/logo-unipile.png\",\"width\":200,\"height\":49,\"caption\":\"Unipile\"},\"image\":{\"@id\":\"https:\\\/\\\/www.unipile.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/unipilefr\",\"https:\\\/\\\/x.com\\\/UnipileAPI\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/unipile\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.unipile.com\\\/#\\\/schema\\\/person\\\/a2ac44e22bdc27d497ce8b58716a673e\",\"name\":\"Damien Girardeau\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/12dd140720736a8db29f540c42a17d2680cd54a04fb26bb7b55423c179b065a9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/12dd140720736a8db29f540c42a17d2680cd54a04fb26bb7b55423c179b065a9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/12dd140720736a8db29f540c42a17d2680cd54a04fb26bb7b55423c179b065a9?s=96&d=mm&r=g\",\"caption\":\"Damien Girardeau\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"C\u00f3mo conectarse a un servidor IMAP: hosts, puertos, SSL\/TLS y OAuth (Gu\u00eda 2026) - Unipile","description":"Con\u00e9ctese a cualquier servidor IMAP en 2026: tabla de host\/puerto, SSL contra STARTTLS, OAuth XOAUTH2, muestras de c\u00f3digo (Python, Node) y soluci\u00f3n al fin de la autenticaci\u00f3n b\u00e1sica.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.unipile.com\/es\/guia-de-conexion-al-servidor-imap\/","og_locale":"es_ES","og_type":"article","og_title":"How to Connect to an IMAP Server: Hosts, Ports, SSL\/TLS &amp; OAuth (2026 Guide) - Unipile","og_description":"Connect to any IMAP server in 2026: host\/port table, SSL vs STARTTLS, OAuth XOAUTH2, code samples (Python, Node) & Basic Auth deprecation fix.","og_url":"https:\/\/www.unipile.com\/es\/guia-de-conexion-al-servidor-imap\/","og_site_name":"Unipile","article_publisher":"https:\/\/www.facebook.com\/unipilefr","article_published_time":"2026-05-21T09:00:00+00:00","article_modified_time":"2026-05-21T11:02:29+00:00","og_image":[{"url":"https:\/\/www.unipile.com\/wp-content\/uploads\/2024\/02\/gmail-3.svg","type":"","width":"","height":""}],"author":"Damien Girardeau","twitter_card":"summary_large_image","twitter_creator":"@UnipileAPI","twitter_site":"@UnipileAPI","twitter_misc":{"Escrito por":"Damien Girardeau","Tiempo de lectura":"25 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.unipile.com\/imap-server-connection-guide\/#article","isPartOf":{"@id":"https:\/\/www.unipile.com\/imap-server-connection-guide\/"},"author":{"name":"Damien Girardeau","@id":"https:\/\/www.unipile.com\/#\/schema\/person\/a2ac44e22bdc27d497ce8b58716a673e"},"headline":"How to Connect to an IMAP Server: Hosts, Ports, SSL\/TLS &amp; OAuth (2026 Guide)","datePublished":"2026-05-21T09:00:00+00:00","dateModified":"2026-05-21T11:02:29+00:00","mainEntityOfPage":{"@id":"https:\/\/www.unipile.com\/imap-server-connection-guide\/"},"wordCount":6301,"publisher":{"@id":"https:\/\/www.unipile.com\/#organization"},"image":{"@id":"https:\/\/www.unipile.com\/imap-server-connection-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/www.unipile.com\/wp-content\/uploads\/2026\/05\/imap-server-connection-guide-featured-1.png","articleSection":["Guides"],"inLanguage":"es"},{"@type":"WebPage","@id":"https:\/\/www.unipile.com\/imap-server-connection-guide\/","url":"https:\/\/www.unipile.com\/imap-server-connection-guide\/","name":"C\u00f3mo conectarse a un servidor IMAP: hosts, puertos, SSL\/TLS y OAuth (Gu\u00eda 2026) - Unipile","isPartOf":{"@id":"https:\/\/www.unipile.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.unipile.com\/imap-server-connection-guide\/#primaryimage"},"image":{"@id":"https:\/\/www.unipile.com\/imap-server-connection-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/www.unipile.com\/wp-content\/uploads\/2026\/05\/imap-server-connection-guide-featured-1.png","datePublished":"2026-05-21T09:00:00+00:00","dateModified":"2026-05-21T11:02:29+00:00","description":"Con\u00e9ctese a cualquier servidor IMAP en 2026: tabla de host\/puerto, SSL contra STARTTLS, OAuth XOAUTH2, muestras de c\u00f3digo (Python, Node) y soluci\u00f3n al fin de la autenticaci\u00f3n b\u00e1sica.","breadcrumb":{"@id":"https:\/\/www.unipile.com\/imap-server-connection-guide\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.unipile.com\/imap-server-connection-guide\/"]}]},{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/www.unipile.com\/imap-server-connection-guide\/#primaryimage","url":"https:\/\/www.unipile.com\/wp-content\/uploads\/2026\/05\/imap-server-connection-guide-featured-1.png","contentUrl":"https:\/\/www.unipile.com\/wp-content\/uploads\/2026\/05\/imap-server-connection-guide-featured-1.png","width":2400,"height":1260,"caption":"Compare IMAP server connection settings across Gmail, Outlook, Yahoo, iCloud and 5+ other providers. SSL\/TLS on port 993, OAuth XOAUTH2 ready."},{"@type":"BreadcrumbList","@id":"https:\/\/www.unipile.com\/imap-server-connection-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.unipile.com\/"},{"@type":"ListItem","position":2,"name":"How to Connect to an IMAP Server: Hosts, Ports, SSL\/TLS &amp; OAuth (2026 Guide)"}]},{"@type":"WebSite","@id":"https:\/\/www.unipile.com\/#website","url":"https:\/\/www.unipile.com\/","name":"Unipile","description":"Integre la mensajer\u00eda y el correo electr\u00f3nico, con\u00e9ctese f\u00e1cilmente mediante API","publisher":{"@id":"https:\/\/www.unipile.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.unipile.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/www.unipile.com\/#organization","name":"Unipile","url":"https:\/\/www.unipile.com\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/www.unipile.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.unipile.com\/wp-content\/uploads\/2021\/05\/logo-unipile.png","contentUrl":"https:\/\/www.unipile.com\/wp-content\/uploads\/2021\/05\/logo-unipile.png","width":200,"height":49,"caption":"Unipile"},"image":{"@id":"https:\/\/www.unipile.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/unipilefr","https:\/\/x.com\/UnipileAPI","https:\/\/www.linkedin.com\/company\/unipile\/"]},{"@type":"Person","@id":"https:\/\/www.unipile.com\/#\/schema\/person\/a2ac44e22bdc27d497ce8b58716a673e","name":"Damien Girardeau","image":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/secure.gravatar.com\/avatar\/12dd140720736a8db29f540c42a17d2680cd54a04fb26bb7b55423c179b065a9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/12dd140720736a8db29f540c42a17d2680cd54a04fb26bb7b55423c179b065a9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/12dd140720736a8db29f540c42a17d2680cd54a04fb26bb7b55423c179b065a9?s=96&d=mm&r=g","caption":"Damien Girardeau"}}]}},"_links":{"self":[{"href":"https:\/\/www.unipile.com\/es\/wp-json\/wp\/v2\/posts\/278904","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.unipile.com\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.unipile.com\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.unipile.com\/es\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.unipile.com\/es\/wp-json\/wp\/v2\/comments?post=278904"}],"version-history":[{"count":8,"href":"https:\/\/www.unipile.com\/es\/wp-json\/wp\/v2\/posts\/278904\/revisions"}],"predecessor-version":[{"id":278920,"href":"https:\/\/www.unipile.com\/es\/wp-json\/wp\/v2\/posts\/278904\/revisions\/278920"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.unipile.com\/es\/wp-json\/wp\/v2\/media\/278926"}],"wp:attachment":[{"href":"https:\/\/www.unipile.com\/es\/wp-json\/wp\/v2\/media?parent=278904"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.unipile.com\/es\/wp-json\/wp\/v2\/categories?post=278904"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.unipile.com\/es\/wp-json\/wp\/v2\/tags?post=278904"},{"taxonomy":"post_folder","embeddable":true,"href":"https:\/\/www.unipile.com\/es\/wp-json\/wp\/v2\/post_folder?post=278904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}