0

I am trying to setup Gsuite as bounce processing for CiviCRM using this guide https://civicrm.org/blog/dahndy/leveraging-civicrm-email-to-activity-processing-in-gmail

But keep getting the following message when schedule job is ran. Any idea how to fix it please?

One thing in the log, it says "webadmin@imap.gmail.com" but it should have said "webadmin@our.domain" as per my sessings below, is that right?

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: Could not connect to MailStore for webadmin@imap.gmail.com
Error message: 

An error occured while sending or receiving mail. Failed to connect to the server: imap.gmail.com:993.

enter image description here

3
  • For username put the full email, webadmin@ourdomain.com
    – Demerit
    May 12 '20 at 18:07
  • @Demerit Still no luck. This time it appears like webadmin@ourdomain.com@imap.gmail.com
    – Tapash
    May 12 '20 at 18:38
  • I think that's ok. That message is just outputting a concatenated string, not the actual username it uses to connect (github.com/civicrm/civicrm-core/blob/5.25.0/CRM/Utils/Mail/…). It seems more like it can't reach gmail, so a network issue. If you try telnet from the server can you telnet imap.gmail.com 993?
    – Demerit
    May 12 '20 at 18:44
5

So I just ran into a similar issue. Our bounce handling stopped a few months ago and nobody noticed. We also use GSuite, and our email address appears in a similar fashion in the log. I thought it looked strange at first too, but since we changed nothing and it went from working to not working, I knew that wasn't the issue. I also tried changing the email account password to see if that would fix the problem.

It turned out that Google turned off access for less secure apps automatically, effectively blocking access to the return email account from CiviCRM. As soon as I toggled that switch, bounce handling started working again. This is the link that worked to turn it back on: https://myaccount.google.com/u/5/lesssecureapps?hl=en

2
  • Would you mind sharing your bounced processing settings from civi and gmail please? I have app specific password instead of less secure apps.
    – Tapash
    Dec 19 '20 at 18:08
  • It's been a really long time since we set this up, but I followed the instructions in the CiviMail documentation found here: docs.civicrm.org/sysadmin/en/latest/setup/civimail/…
    – LMK Web
    Dec 30 '20 at 17:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.