CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • Configuring Gmail bounce mailbox
Pages: [1]

Author Topic: Configuring Gmail bounce mailbox  (Read 9829 times)

civicrmsav

  • I post frequently
  • ***
  • Posts: 121
  • Karma: 5
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.x
Configuring Gmail bounce mailbox
July 21, 2010, 10:01:24 am
Hi -

I'm having trouble configuring the settings to poll for bounces that are in a gmail mailbox.  (Using Civicrm 3.1.5)

The gmail account is receiving bounces properly.  I created a test contact in civicrm with a bogus email address and used civimail to send a mailing to that person.  It bounced as expected and I can see the bounce in the gmail account's inbox.  (Actually it went to spam first and I manually moved it to the inbox, not sure if that matters, I know I need to set up filters, but I haven't tackled that yet.)

When I run EmailProcessor.php, I get "connecting to mail.mydomain.org and authenticating as myuser@mydomain.org got to the end of the mailbox"

So it seems like it's connecting to the gmail account but not finding the message?  I wasn't sure how to set up the mail accounts, and wonder if I've got something wrong there.

Here's what I have

Name -- Default
Server -- mail.mydomain.org
Username -- myuser@mydomain.org (a functioning email address at mydomain)
Localpart -- mygmailbounceaccountname+
Domain -- gmail.com
Return-Path -- blank
Protocol -- POP3
Source -- blank
Use SSL -- No
Default?  -- Checked

Any suggestions would be very much appreciated.

civicrmsav

  • I post frequently
  • ***
  • Posts: 121
  • Karma: 5
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.x
Re: Configuring Gmail bounce mailbox
July 22, 2010, 08:36:59 am
Well I've made some progress.  It turns out that the messages weren't being grabbed because I had previously read them.   Even setting them back to "unread" didn't work.

But ... if I set up a filter so the unread message went directly to the inbox, then it worked.   

However, now I get "connecting to mail.ny-best.org and authenticating as info@ny-best.org fetching 50 messages retrieving message 1 fetching message 1 and putting it in the ignored mailbox got to the end of the mailbox "

I'm not sure why it's being ignored.  But it clearly does seem to be ignored, as the email address is not being marked on hold.

Any suggestions would be most welcome.

xcf33

  • I post frequently
  • ***
  • Posts: 181
  • Karma: 7
  • CiviCRM version: 3.3.2
  • CMS version: Drupal 6.19/6.20
  • MySQL version: 5.x
  • PHP version: 5.2.6
Re: Configuring Gmail bounce mailbox
July 22, 2010, 09:03:26 am
Hi

The email bounce catcher works the following way:


1. It looks for message being sent to the inbox with the unique long string in the address, that information contains the mailing id, contact id, etc etc.

So it should look like youremailaddress+r.302.927771.160361339b02a2a0@gmail.com

given that you are using the local part

If you only send an email to youremailaddress@gmail.com, the bounce catcher will ignore that message because it identifies it as not being bounced from CiviCRM.

2. In addition, the bounce process works in the following way:

CiviCRM will look for some specific text in the bounce message such as unknown host, etc etc and make a determination that is a bounced email and sent that information back. Different email addresses and provider gives a slightly different message so CiviCRM can't recognize it as a bounced email. Other times there might be auto response like an away from office or vacation message which might be ignored as well.


Cheers

civicrmsav

  • I post frequently
  • ***
  • Posts: 121
  • Karma: 5
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.x
Re: Configuring Gmail bounce mailbox
July 22, 2010, 09:27:52 am
Thanks so much xcf33.

The bounce email is indeed to mybouncemail+b.264.6923.f9f5921bf01cd457@gmail.com

The contents of the email look pretty typical to me.  Would you expect a bounce like this to be ignored?  Do you have a sample of one that is NOT ignored so I could try it?  I'd like to see this work once first before I schedule the cron to run :)

Hi. This is the qmail-send program at 5.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<mybadtest@gmail.com>:
74.125.127.27 does not like recipient.
Remote host said: 550-5.1.1 The email account that you tried to reach does not exist. Please try
550-5.1.1 double-checking the recipient's email address for typos or
550-5.1.1 unnecessary spaces. Learn more at
550 5.1.1 http://mail.google.com/support/bin/answer.py?answer=6596 l1si16428263ybj.66
Giving up on 74.125.127.27.

--- Enclosed are the original headers of the message.

xcf33

  • I post frequently
  • ***
  • Posts: 181
  • Karma: 7
  • CiviCRM version: 3.3.2
  • CMS version: Drupal 6.19/6.20
  • MySQL version: 5.x
  • PHP version: 5.2.6
Re: Configuring Gmail bounce mailbox
July 22, 2010, 10:43:17 am
Please take a look at your

civicrm_mailing_bounce_pattern

in your database and you can see which message it is looking for.


You can always contribute more patterns.


Cheers!

civicrmsav

  • I post frequently
  • ***
  • Posts: 121
  • Karma: 5
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.x
Re: Configuring Gmail bounce mailbox
July 22, 2010, 10:52:35 am
Thanks again for your time xcf33

"does not exist" is a bounce pattern, type 6, so it seems like this should be being treated as a bounce. 

Any other ideas?

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Configuring Gmail bounce mailbox
October 18, 2010, 07:53:43 am
I'm running into a similar problem using gmail for bounce processing.
This is IMAP using the local part option.

Emails are getting bounced to the mailbox correctly, and CiviCRM is processing and moving them. However, the corresponding action is not taking place --i.e. the email is not being placed on hold and in the CiviMail report it's not displaying a bounced email.

In my test emails, I'm definitely getting valid messages that are covered by existing bounce patters. The message when EmailProcessor.php is run is:

Code: [Select]
[Gmail]/Trash fetching 50 messages retrieving message 5 Processed: Mail delivery failed: returning message to sender setting 5 as seen and moving it to the processed mailbox got to the end of the mailbox
So it's clearly seeing and processing it... but not actually taking the anticipated action.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

mbrown555

  • I’m new here
  • *
  • Posts: 21
  • Karma: 1
  • CiviCRM version: 3.3
  • CMS version: Drupal
  • MySQL version: 5
  • PHP version: not sure
Re: Configuring Gmail bounce mailbox
March 17, 2011, 09:40:05 pm
Did anyone get an answer to this? I'm getting the same!! tried everything but still no joy.
1. using Gmail,
2. using Imap,
3. bounce coming back into a dedicated email account,
4. EmailProcessor.php runs correctly and moves the emails to ignored folder.
5. NO bounce within civicrm mail or put the email on hold!

Please say someone has fixed this?

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Configuring Gmail bounce mailbox
September 14, 2011, 08:22:40 pm
Perhaps this has been answered elsewhere but also getting problems with GMail as my return/bounce inbox - not sure if it is just a missing Pattern

Status: 5.1.1
Diagnostic-Code: smtp;550 5.1.1 RESOLVER.ADR.RecipNotFound; not found

Looking in the bounce patterns I don't see this.

But I gather that 550 is a code for 'unable to relay' which is bounce_pattern ID = 104 which is a Bounce Type ID 9

But not sure if the 550 is being picked up and therefore recognised as a 'unable to relay' or if it has to be the string.

I am not seeing any Bounce Type ID = 9 in civicrm_mailing_event_bounce - only 4, 6 and 8 ID Types.

So I don't think these are coming through in to civicrm and being processed at all.

Do we need to add a new Bounce Pattern for this, and if so is the string RecipNotFound all that is required?

To add to my possible confusion 'unable to relay' has a threshold of x 3

When something has a threshold does that mean that there should be 3 x CiviMail report showing this person as 'bounced' at which point they get put On Hold

Or does it mean that it only gets reported on the Mailing Report on the third occasion and at that point gets put On Hold.

Thanks for any clarification.

If it is a case of a new Pattern needing to be added do I follow instructions here http://forum.civicrm.org/index.php?topic=13045.0
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

conductorchris

  • I post frequently
  • ***
  • Posts: 167
  • Karma: 9
    • Vermont Rail Action Network
  • CiviCRM version: 4.5.0
  • CMS version: Joomla 3.2.7
  • MySQL version: 5.5.32
  • PHP version: 5.3.26
Re: Configuring Gmail bounce mailbox
October 02, 2011, 07:00:31 pm
I too am having trouble with civiCRM not processing gmail bounces.
Thanks to those who help create and enhance civiCRM!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • Configuring Gmail bounce mailbox

This forum was archived on 2017-11-26.