Answers.Body: <p>First step would be to use Server: imap.gmail.com. smtp.gmail.com is for outgoing mail and Bounce Processing is for checking incoming mail.</p>
  <p>Second step would be to verify that <a href="https://support.google.com/accounts/answer/6010255?hl=en#zippy=%2Cif-less-secure-app-access-is-on-for-your-account" rel="nofollow noreferrer">Less secure app access</a> is enabled in Gmail.</p>
  <p>If that doesn't solve the problem, here are the settings that work for me with Google Apps for bounce processing, same as what you have but using POP instead of IMAP:</p>
  <p><code>Server: pop.gmail.com Protocol: POP3</code></p>
  <p>Optionally, add Local part: myemail+ if you want VERP processing.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-05-26T23:17:58.580Z
Answers.LastActivityDate: 2021-05-26T23:24:02.697Z
Answers.LastEditDate: 2021-05-26T23:24:02.697Z
Answers.UserDisplayName: Lars SG
Body: <p>I am trying to configure the email address to send messages. I am trying to use a Google Workspace user with custom domain.</p>
  <p>Some values that I have are the following:</p>
  <pre><code>Server: smtp.gmail.com
  Username: myemail@apapacheautismo.org
  Local part: (empty)
  Email domain: apapacheautismo.org
  Email return path: (empty)
  Protocol: IMAP
  Origin: (empty)
  Use SSL ?: Yes
  Used for: &quot;Bounce Processing&quot;
  </code></pre>
  <p><strong>An error occured while sending or receiving mail. The IMAP server did not accept the username and/or password: A0001 NO [AUTHENTICATIONFAILED] Invalid credentials (Failure). (See log for more details.)</strong></p>
  <p>I have already verified username and password and they are correct.</p>
  
Tags: <civimail><email><evaluating-civicrm><smtp><mailserver>
Title: Some problems to add email account in CiviMail CiviCRM
ThreadText: # Some problems to add email account in CiviMail CiviCRM
  
  (Asked by: username_0 on 2021-05-24)
  
  I am trying to configure the email address to send messages. I am trying to use a Google Workspace user with custom domain.
  
  Some values that I have are the following:
  
  ```
  Server: smtp.gmail.com
  Username: myemail@apapacheautismo.org
  Local part: (empty)
  Email domain: apapacheautismo.org
  Email return path: (empty)
  Protocol: IMAP
  Origin: (empty)
  Use SSL ?: Yes
  Used for: "Bounce Processing"
  
  ```
  
  **An error occured while sending or receiving mail. The IMAP server did not accept the username and/or password: A0001 NO [AUTHENTICATIONFAILED] Invalid credentials (Failure). (See log for more details.)**
  
  I have already verified username and password and they are correct.
  
  **Tags:** civimail, email, evaluating-civicrm, smtp, mailserver
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-05-26. Score: 3
  
  First step would be to use Server: imap.gmail.com. smtp.gmail.com is for outgoing mail and Bounce Processing is for checking incoming mail.
  
  Second step would be to verify that [Less secure app access](https://support.google.com/accounts/answer/6010255?hl=en#zippy=%2Cif-less-secure-app-access-is-on-for-your-account) is enabled in Gmail.
  
  If that doesn't solve the problem, here are the settings that work for me with Google Apps for bounce processing, same as what you have but using POP instead of IMAP:
  
  `Server: pop.gmail.com Protocol: POP3`
  
  Optionally, add Local part: myemail+ if you want VERP processing.
  
  
  ---
  
  