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) »
  • Bounce Processing Not working
Pages: [1]

Author Topic: Bounce Processing Not working  (Read 5104 times)

nelslynn

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 3.3
  • CMS version: Drupal 6.20
  • MySQL version: 5
  • PHP version: 5
Bounce Processing Not working
September 13, 2012, 02:14:19 pm
Hi,

Using CiviCRM 4.1.5 with Drupal 6

My Scheduled email Newsletter works great, and my bounced email goes to my return@mydomain.com great. I have this set up in Gmail similar to this (http://wiki.civicrm.org/confluence/display/CRMDOC41/Step-by-step+Return+Channel+on+Drupal+-+Google+Apps+-+CentOS), except I'm using a regular Gmail account vs a Google Apps account (I don't want all domain email account to go to Gmail). I run this mailing via a cron job set up from Administer > System Settings > Scheduled Jobs: Mailing Schedule. Works Fantastic.

Now I want to process the bounces and make the bounced email contact automatically put "on hold". When I try to run Bounces fetcher, manually via Execute Now, from: Administer > System Settings > Scheduled Jobs: 'Bounces fetcher', I get the following error when I 'View Job Log'. No contacts with bad email addresses are put on hold. What am I missing?

FROM THE ERROR LOG:
Summary
Finished execution of Bounces fetcher with result: Failure, Error message: Could not connect to MailStore
Error message:

Could not create //CiviMail.ignored/2012/09/13/cur
:

Details

Parameters parsed (and passed to API method):
a:1:{s:7:"version";i:3;}

Full message:
Finished execution of Bounces fetcher with result: Failure, Error message: Could not connect to MailStore
Error message:

Could not create //CiviMail.ignored/2012/09/13/cur

sacramentorob

  • I’m new here
  • *
  • Posts: 18
  • Karma: 0
  • CiviCRM version: 4.2.1
  • CMS version: Joomla 2.5.6
  • MySQL version: 5.1.63 ubuntu
  • PHP version: 5.3.2 ubuntu
Re: Bounce Processing Not working
September 20, 2012, 12:58:22 am
I am having a similar problem using Joomla 2.5.6 and CiviCRM 4.2.0.

The mailing goes out fine.  The bounces are waiting in the pop3 account.  When I manually execute the fetch_bounces process, i get this apache error and no bounces get processed.

[Thu Sep 20 00:38:29 2012] [error] [client IPAddress] PHP Warning:  mkdir() [<a href='function.mkdir'>function.mkdir</a>]: Permission denied in /var/www/joomla/administrator/components/com_civicrm/civicrm/CRM/Mailing/MailStore.php on line 151, referer: http://www.MyDomain.info/administrator/?option=com_civicrm&task=civicrm/admin/job&reset=1

It seems like it is trying to create a directory to hold the bounces locally but can't.

Can anyone steer me in the right direction to setting the permissions I need?

Thanks,

/Rob

sacramentorob

  • I’m new here
  • *
  • Posts: 18
  • Karma: 0
  • CiviCRM version: 4.2.1
  • CMS version: Joomla 2.5.6
  • MySQL version: 5.1.63 ubuntu
  • PHP version: 5.3.2 ubuntu
Re: Bounce Processing Not working
September 20, 2012, 12:37:14 pm
Just an update.

If I create the directories manually and give them root:root ownership, everything works fine until the next day when new directories need to be created.

I'm thinking there is an easy fix here, I just can't find it.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Bounce Processing Not working
September 20, 2012, 12:56:20 pm

make sure the user of the cron job that is running EmailProcessor and your apache / httpd user has read/write access on those directories

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

sacramentorob

  • I’m new here
  • *
  • Posts: 18
  • Karma: 0
  • CiviCRM version: 4.2.1
  • CMS version: Joomla 2.5.6
  • MySQL version: 5.1.63 ubuntu
  • PHP version: 5.3.2 ubuntu
Re: Bounce Processing Not working
September 23, 2012, 10:41:27 pm
Thanks Lobo.  It is working for now.  Here is what I did for joomla running on a ubuntu server:

user@Server: cd /var/www/joomla/media/civicrm/custom
user@Server:/var/www/joomla/media/civicrm/custom$ sudo chmod -R 775 ./CiviMail.processed
user@Server:/var/www/joomla/media/civicrm/custom$ sudo chown -R www-data:www-data ./CiviMail.processed

The directories/files under the earlier CivicRM version were created with root:root owners.  After the upgrade, www-data doesn't have permission to create files and directories.  This, I'm afraid inelegant, fix gets everything moving again.

I'll let folks know if it still works when the calendar rolls forward.

Thanks again for the pointer,

/Rob


sacramentorob

  • I’m new here
  • *
  • Posts: 18
  • Karma: 0
  • CiviCRM version: 4.2.1
  • CMS version: Joomla 2.5.6
  • MySQL version: 5.1.63 ubuntu
  • PHP version: 5.3.2 ubuntu
Re: Bounce Processing Not working
October 02, 2012, 12:49:20 pm
yup, all fixed now. the changes I posted earlier got it all working.

Thanks again

nelslynn

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 3.3
  • CMS version: Drupal 6.20
  • MySQL version: 5
  • PHP version: 5
Re: Bounce Processing Not working
December 17, 2012, 01:18:15 pm
Can someone please help. I've search hours for a solution. I have my bounced email in a gmail account. I now want to process these put these account on "HOLD" within CiviCRM. I'm using Drupal 6 with CiviCRM 4.1.5, I browse to Admin > System Settings >Scheduled Jobs and Execute "Bounce fetcher". Nothing happens. I get the following error (see screenshot).

Thanks for any direction.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Bounce Processing Not working
December 17, 2012, 02:26:17 pm

the error message says it cannot connect to the mailstore

check your gmail credentials and the protocol (imap) and try again

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

nelslynn

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 3.3
  • CMS version: Drupal 6.20
  • MySQL version: 5
  • PHP version: 5
Re: Bounce Processing Not working
December 17, 2012, 02:34:21 pm
I double checked and triple checked. The credentials are correct. I'm getting the email in Gmail fine.

What is a "Mailstore"?

What does it mean it "cannot create //CiviMail.ignored/2012/09/13/cur"??  Is this a folder in the CiviCRM module, or a folder within my Gmail account?

Sorry, I'm not a programmer or server expert. I might need some extra tips if you would?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • Bounce Processing Not working

This forum was archived on 2017-11-26.