Answers.Body: <p>email-smtp.ap-southeast-2.amazonaws.com sounds like an OUTBOUND mail server, so probably doesn't have IMAP open. You'll need to look up the right imap server for your account. Maybe it's one of these: <a href="https://docs.aws.amazon.com/workmail/latest/userguide/using_IMAP.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/workmail/latest/userguide/using_IMAP.html</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-08-13T15:09:58.073Z
Answers.LastActivityDate: 2024-08-13T15:09:58.073Z
Answers.UserDisplayName: Demerit
Body: <p>This  issue has been popping out now and then. It is Drupal 7 and CiviCRM 5.76.1.
  Same SMTP Credentials works for <strong>civicrm/admin/setting/smtp?reset=1</strong> but the &quot;Save &amp; test&quot; at <strong>civicrm/admin/mailSettings?reset=1</strong> (IMAP + Use SSL) returns</p>
  <blockquote>
  <p>&quot;[exception] =&gt; ezcMailTransportException: &quot;An error occured while
  sending or receiving mail. Failed to connect to the server:
  email-smtp.ap-southeast-2.amazonaws.com:993.&quot;</p>
  </blockquote>
  <p>Both commands below return time-outs ( see  <a href="https://%20https://docs.aws.amazon.com/ses/latest/dg/troubleshoot-smtp.html" rel="nofollow noreferrer">the docs</a> )</p>
  <ul>
  <li>openssl s_client -connect email-smtp.ap-southeast-2.amazonaws.com:993</li>
  <li>telnet email-smtp.ap-southeast-2.amazonaws.com 993</li>
  </ul>
  <p>Messing with ports (587/465) at www/drupal/sites/all/modules/civicrm/vendor/zetacomponents/mail/src/transports/imap/imap_transport.php:401  doesn't help much: the <strong>465</strong> responded with &quot;An error occured while sending or receiving mail. The connection to the IMAP server is ok, but a negative response from server was received. Try again later.&quot;</p>
  <p>The issue has been happening for a while, the server is set to be checked once in a 3 months so it is not because of the most recent CiviCRM 5.76.1 upgrade. Summer IMAP changes at Amazon perhaps?
  Please advise, thanks!</p>
  
Tags: <bounce><bounce-processing><amazon-ses><aws>
Title: Mail Accounts, bounce processing: Failed to connect to the server: email-smtp.ap-southeast-2.amazonaws.com:993
ThreadText: # Mail Accounts, bounce processing: Failed to connect to the server: email-smtp.ap-southeast-2.amazonaws.com:993
  
  (Asked by: username_0 on 2024-08-13)
  
  This issue has been popping out now and then. It is Drupal 7 and CiviCRM 5.76.1.
  Same SMTP Credentials works for **civicrm/admin/setting/smtp?reset=1** but the "Save & test" at **civicrm/admin/mailSettings?reset=1** (IMAP + Use SSL) returns
  
  > "[exception] => ezcMailTransportException: "An error occured while
  > sending or receiving mail. Failed to connect to the server:
  > email-smtp.ap-southeast-2.amazonaws.com:993."
  
  Both commands below return time-outs ( see [the docs](https://%20https://docs.aws.amazon.com/ses/latest/dg/troubleshoot-smtp.html) )
  
  * openssl s\_client -connect email-smtp.ap-southeast-2.amazonaws.com:993
  * telnet email-smtp.ap-southeast-2.amazonaws.com 993
  
  Messing with ports (587/465) at www/drupal/sites/all/modules/civicrm/vendor/zetacomponents/mail/src/transports/imap/imap\_transport.php:401 doesn't help much: the **465** responded with "An error occured while sending or receiving mail. The connection to the IMAP server is ok, but a negative response from server was received. Try again later."
  
  The issue has been happening for a while, the server is set to be checked once in a 3 months so it is not because of the most recent CiviCRM 5.76.1 upgrade. Summer IMAP changes at Amazon perhaps?
  Please advise, thanks!
  
  **Tags:** bounce, bounce-processing, amazon-ses, aws
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2024-08-13. Score: 1 | Accepted answer
  
  email-smtp.ap-southeast-2.amazonaws.com sounds like an OUTBOUND mail server, so probably doesn't have IMAP open. You'll need to look up the right imap server for your account. Maybe it's one of these: <https://docs.aws.amazon.com/workmail/latest/userguide/using_IMAP.html>
  
  
  ---
  
  