Answers.Body: <p>Gmail likes you to go in and turn on the "Allow less secure apps" setting, if you haven't done that yet. They aren't so clear about what exactly makes the app less secure according to Google, but they are an attractive option because of the price and because gmail supports address+ processing. If you choose to do it, sign into the Google account you are trying to use, choose My Account, select Sign in and Security, scroll to the bottom, and turn on "Allow less secure apps."</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-06-20T18:40:12.220Z
Answers.LastActivityDate: 2017-06-20T18:40:12.220Z
Answers.UserDisplayName: guyiac
Answers.Body: <p>The issue is likely at the server networking level.  If you have access to that server (via SSH or similar), I would try installing the <a href="http://www.jetmore.org/john/code/swaks/" rel="nofollow noreferrer">swaks</a> utility to troubleshoot.</p>
  
  <p>swaks might even be premature though.  I would start by ensuring that your server's firewall isn't blocking outgoing access on port 993 and that imap.gmail.com is resolving in DNS.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-31T14:44:08.260Z
Answers.Text: And the server it was.  We were trying to get everything set up on GoDaddy hosting which inhibited ports.  After switching to Linode, without any other changes, all our issues resolved.  Hopefully this helps anyone in a similar situation.  As guyiac mentions below, Google apps accounts need to allow less secure apps as well.
Answers.UserDisplayName: mzier
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-06-14T03:46:58.287Z
Answers.LastActivityDate: 2017-06-14T03:46:58.287Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>I'm getting the following error when running the "Fetch Bounces" scheduled job:</p>
  
  <pre><code>Details
  
  Parameters parsed (and passed to API method): 
  a:1:{s:7:"version";i:3;}
  
  Full message: 
  Finished execution of Fetch Bounces with result: Failure, Error message: A fatal error was triggered: Could not connect to MailStore for ebounce@domain.com@imap.gmail.com
  Error message: 
  
  An error occured while sending or receiving mail. Failed to connect to the server: imap.gmail.com:993.
  </code></pre>
  
  <p>The mailbox is a G Suite account, IMAP is configured, and I can connect to the mailbox via IMAP from an Outlook email client. The error appears in the job log immediately after running the job (there's no 30 second or longer delay that I would expect if it were timing out trying to connect to the mailbox).</p>
  
  <p>Where can I look (or how can I get) some more detailed information on why this job might be failing so quickly?</p>
  
  <p>As per the recommendation, we're running Wordpress 4.8 and CiviCRM 4.7.19</p>
  
  <p>Thanks!</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-06-14T05:29:04.367Z
Comments.Text: assuming you anonymised this "Could not connect to MailStore for ebounce@domain.com@imap.gmail.com"
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-06-14T17:10:23.143Z
Comments.Text: Welcome to StackExchange! It would be helpful if you could edit the question to show the version of CiviCRM and WordPress that you are using as this may affect the answers.
Comments.UserDisplayName: William Mortada
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-06-14T19:54:50.690Z
Comments.Text: Version numbers added and yes, @domain I just a place-holder.  Thanks for the suggestions; first time poster and new to the software.
Comments.UserDisplayName: mzier
Tags: <wordpress><email><bounce>
Title: Issue getting Email for Bounce Processing
ThreadText: # Issue getting Email for Bounce Processing
  
  (Asked by: username_0 on 2017-06-14)
  
  I'm getting the following error when running the "Fetch Bounces" scheduled job:
  Details
  
  Parameters parsed (and passed to API method): 
  a:1:{s:7:"version";i:3;}
  
  Full message: 
  Finished execution of Fetch Bounces with result: Failure, Error message: A fatal error was triggered: Could not connect to MailStore for ebounce@domain.com@imap.gmail.com
  Error message: 
  
  An error occured while sending or receiving mail. Failed to connect to the server: imap.gmail.com:993.
  
  The mailbox is a G Suite account, IMAP is configured, and I can connect to the mailbox via IMAP from an Outlook email client. The error appears in the job log immediately after running the job (there's no 30 second or longer delay that I would expect if it were timing out trying to connect to the mailbox).
  Where can I look (or how can I get) some more detailed information on why this job might be failing so quickly?
  As per the recommendation, we're running Wordpress 4.8 and CiviCRM 4.7.19
  Thanks!
  
  **Tags:** wordpress, email, bounce
  
  > **Comments:**
  > **username_1**: assuming you anonymised this "Could not connect to MailStore for ebounce@domain.com@imap.gmail.com"  
  > **username_2**: Welcome to StackExchange! It would be helpful if you could edit the question to show the version of CiviCRM and WordPress that you are using as this may affect the answers.  
  > **username_0**: Version numbers added and yes, @domain I just a place-holder.  Thanks for the suggestions; first time poster and new to the software.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_4 on 2017-06-14. Score: 3 | Accepted answer
  
  The issue is likely at the server networking level. If you have access to that server (via SSH or similar), I would try installing the [swaks](http://www.jetmore.org/john/code/swaks/) utility to troubleshoot.
  
  swaks might even be premature though. I would start by ensuring that your server's firewall isn't blocking outgoing access on port 993 and that imap.gmail.com is resolving in DNS.
  
  > **Comments:**
  > **username_0**: And the server it was.  We were trying to get everything set up on GoDaddy hosting which inhibited ports.  After switching to Linode, without any other changes, all our issues resolved.  Hopefully this helps anyone in a similar situation.  As username_3 mentions below, Google apps accounts need to allow less secure apps as well.  
  
  ---
  
  ### Answer by username_3 on 2017-06-20. Score: 2
  
  Gmail likes you to go in and turn on the "Allow less secure apps" setting, if you haven't done that yet. They aren't so clear about what exactly makes the app less secure according to Google, but they are an attractive option because of the price and because gmail supports address+ processing. If you choose to do it, sign into the Google account you are trying to use, choose My Account, select Sign in and Security, scroll to the bottom, and turn on "Allow less secure apps."
  
  
  ---
  
  