Answers.Body: <p>Are you using POP or IMAP? It sounds like you have a mix of settings. If you're using POP in the protocol field, then the server would be pop.gmail.com. Or if you really want IMAP then you need to change the protocol field to IMAP.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-08-07T08:26:19.180Z
Answers.Text: Ah, sorry! I made a mistake when typing the question here. I am using IMAP in the protocol field too.
Answers.UserDisplayName: Luna Mafo
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-08-07T13:50:08.257Z
Answers.Text: Ok no problem. But then I'm still a bit confused because nobody uses 995 for IMAP, it's always 993 (or 143). It sounds like you're saying your hosting provider is blocking outbound port 993, but that would be very unusual.
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-08-05T18:15:45.093Z
Answers.LastActivityDate: 2024-08-05T18:15:45.093Z
Answers.UserDisplayName: Demerit
Body: <p>When trying to add a mail account to Civi I get the error message below. Does anyone know how to solve this issue? I am trying to connect Civi to my gmail account (which is linked to Civi via 0AUTH).</p>
  <p>The port used for the IMAP connection by my server provider is 995, so I won't be able to access it from port 933, as they don't open other ports. Any idea as to how to work around this?</p>
  <p>The error message:</p>
  <p>&quot;An error occured while sending or receiving mail. Failed to connect to the server: imap.gmail.com:993.&quot;</p>
  <p>Thank you already in advance!</p>
  
Tags: <civimail><email><error><mailserver><g-suite>
Title: Civi Mail - issue adding gmail account: Failed to connect to the server: imap.gmail.com:993
ThreadText: # Civi Mail - issue adding gmail account: Failed to connect to the server: imap.gmail.com:993
  
  (Asked by: username_0 on 2024-08-05)
  
  When trying to add a mail account to Civi I get the error message below. Does anyone know how to solve this issue? I am trying to connect Civi to my gmail account (which is linked to Civi via 0AUTH).
  
  The port used for the IMAP connection by my server provider is 995, so I won't be able to access it from port 933, as they don't open other ports. Any idea as to how to work around this?
  
  The error message:
  
  "An error occured while sending or receiving mail. Failed to connect to the server: imap.gmail.com:993."
  
  Thank you already in advance!
  
  **Tags:** civimail, email, error, mailserver, g-suite
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2024-08-05. Score: 0
  
  Are you using POP or IMAP? It sounds like you have a mix of settings. If you're using POP in the protocol field, then the server would be pop.gmail.com. Or if you really want IMAP then you need to change the protocol field to IMAP.
  
  > **Comments:**
  > **username_0**: Ah, sorry! I made a mistake when typing the question here. I am using IMAP in the protocol field too.  
  > **username_1**: Ok no problem. But then I'm still a bit confused because nobody uses 995 for IMAP, it's always 993 (or 143). It sounds like you're saying your hosting provider is blocking outbound port 993, but that would be very unusual.  
  
  ---
  
  