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 »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • E-mail addresses on hold
Pages: [1] 2 3 4

Author Topic: E-mail addresses on hold  (Read 26051 times)

LEternity

  • Guest
E-mail addresses on hold
December 02, 2009, 07:10:04 pm
Hi!

I'm incredibly frustrated with Civimail right now. I think I hit about every single bug on my way to send a newsletter to about 400 recipients.

When I thought I was done the following happened:

For some weird reason, Civimail tells me that 94% of the e-mail addresses bounced. Seems highly unlikely... I also got an error message that I'm unable to reproduce.

As a result Civimail put almost all of the contacts in the group on hold. Is there a fast way to remove the on hold status for all contacts in those groups? Otherwise I'd have to edit every single contact...

I've tried deleting the group and uploading the contacts again... Doesn't work. Civimail remembers the on hold status...

I'd be very thankful for any suggestion.

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: E-mail addresses on hold
December 02, 2009, 09:53:08 pm
Quote
     UPDATE   civicrm_email ce
INNER JOIN   civicrm_contact c ON ( c.id = ce.contact_id )
   LEFT JOIN   civicrm_group_contact gc ON ( gc.contact_id = c.id and gc.status = 'Added' )
INNER JOIN   civicrm_group gr ON ( gr.id = gc.group_id )
            SET   ce.on_hold = 0
      WHERE   gr.name = 'give your contact group name';

give your contact group name in WHERE clause.

this query might help you to update all contacts 'on hold' from given contact group.
( Caveat : make sure to take database backup before executing query )

hope this help

kiran
You Are Designed To Choose... Defined By Choice.

yogibear

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 0
    • Byron Yoga
  • CiviCRM version: 4.1
  • CMS version: 6.2
  • MySQL version: 5.0
  • PHP version: 5.2
Re: E-mail addresses on hold
December 06, 2009, 08:44:33 pm
LEternity I had a LOT of trouble with inexplicable bounces in CiviMail, I am pretty sure I have hit on a solution, you might want to try setting the following options, let us know how it goes.

http://www.yourdomain.com/civicrm/admin/mail?reset=1

Under the section "Settings - CiviMail"

Try these options:

Mailer Spool Period 180
Mailer Batch Limit 90
Mailer Spool Limit 90

these figures are by no means from an expert but I surmise they are slowing down the firing of email from CiviMail through your SMTP host and in the event of a hiccup only the mail remaining in the limited run will be affected - that is the process will start again with a new connection.
I was sometimes getting thousands bounced with “Unknown” as the reason.
This change allowed me to finally send to over 5000 recipients with no errors, whew!

As to why you are getting contacts flagged as on hold though I cant help as that wasn’t happening to me.

:)

adshill

  • I post occasionally
  • **
  • Posts: 96
  • Karma: 8
Re: E-mail addresses on hold
February 06, 2010, 07:14:25 pm
I'm having a similar problem on 3.0.1 - All civimail e-mail I try to send just comes back as bounced and contacts put on hold, despite for example the two test e-mail addresses being my own and working fine.

I couldn't find the settings above - did you ever find a solution? Makes civimail completely unusable for me at the moment!

Infact just sending a test mail to myself doesn't work and then marks my contact mail address as on-hold. Very strange.
« Last Edit: February 06, 2010, 07:16:40 pm by adshill »

yogibear

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 0
    • Byron Yoga
  • CiviCRM version: 4.1
  • CMS version: 6.2
  • MySQL version: 5.0
  • PHP version: 5.2
Re: E-mail addresses on hold
February 06, 2010, 10:48:44 pm
Hi adshill, I just checked the sandbox site (http://sandbox.civicrm.org/civicrm/admin/mail?reset=1) and the above settings are still at the same location so they should be in your 3.01 installation - what are you getting returned at that url?

What smtp settings do you have for civimail to send out through? At this admin section - Outbound Email (SMTP/Sendmail) - http://www.YOURDOMAIN.com/civicrm/admin/setting/smtp?reset=1

If you are using sendmail you can check sendmail logs - the location of those logs will vary depending on the system you are running.

Hope that helps.

Matt.

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: E-mail addresses on hold
February 15, 2010, 05:01:47 am
Quote from: adshill on February 06, 2010, 07:14:25 pm
I'm having a similar problem on 3.0.1 - All civimail e-mail I try to send just comes back as bounced and contacts put on hold, despite for example the two test e-mail addresses being my own and working fine.

Is there a chance that you can (first) upgrade to CiviCRM 3.0.4 (and then) overwrite your CRM/Mailing/BAO/Job.php file with the one from http://svn.civicrm.org/civicrm/branches/v3.0/CRM/Mailing/BAO/Job.php? We fixed a couple of CiviMail issues between 3.0.1 and 3.0.4 (but you need to do the overwrite to fix a bug that will be fixed in 3.0.5, and to enable error reporting on test mailings).

In most cases when a bounce happens, the recipient will be put on hold, so you need to find out why the bounces happen.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: E-mail addresses on hold
February 17, 2010, 04:41:41 pm
I ran into this bug with a few sites on 3.0.4.  CiviMail mailings had a bounce rate somewhere around 90%, which is not appropriate for our data at all.   An upgrade to 3.1.2 will hopefully fix the problem for the future.

For problems of the past...the most direct way to remove all "ON HOLD" status is this MySQL query:
Code: [Select]
update civicrm_email set on_hold = 0;Warning: backup your database before running any direct queries.  
Warning: this query will remove all "ON HOLD" status from email addresses, whether the email should be on hold or NOT!



Question: I cannot find documentation for ON HOLD status. Why can I find no documentation in the Wiki on ON HOLD?  I have looked here: http://wiki.civicrm.org/confluence/display/CRMDOC/CiviMail+Report  as well as the Admin and User section of CiviMail in the wiki....can't find it...am I missing something?

  • When working properly, is ON HOLD status created from which circumstances...a hard bounce (mailbox full, not found), an out-of-office reply, or both?
  • When is ON HOLD status is removed?  Is it permanent?
  • How can a user search for contacts ON HOLD?  I can't find a way using Advanced Search.  Is it possible?
  • How can a user that doesn't know how to make a MySQL query remove ON HOLD in any way other than manually on a per-Contact basis?
 

I would be HAPPY to write some documentation in the Wiki if someone can answer the above questions explain how OH HOLD works more thoroughly.

« Last Edit: February 17, 2010, 04:49:20 pm by Stoob »
Try CiviTeacher: the online video tutorial CiviCRM learning library.

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: E-mail addresses on hold
February 17, 2010, 08:55:57 pm

thanx for the offer to write the documentation, here are the answers:

1.  on_hold is set when there is a hard bounce (address / mailbox does not exist) or multiple bounces after a certain threshold (stored in the DB for each bounce type). Check: "select * from civicrm_mailing_bounce_type;" on your DB

2. it is permanent

3. currently not possible. If someone wants to contribute a custom search (or patch for this) that would be great and appreciated

4. same answer as #3 for batch reset of ON HOLD

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

Denver Dave

  • Ask me questions
  • ****
  • Posts: 471
  • Karma: 9
Re: E-mail addresses on hold - CiviMail 3.1.2
February 18, 2010, 12:50:07 am
I had the civimail contact email hold problem with 3.1.1 and here is what I'm finding with 3.1.2

Love the new look over version 1.9

With version 3.1.2, when the civicrm.settings.php file in the drupal/sites/default folder has the setting:
define( 'CIVICRM_SITE_KEY', null );

If I manually run the link:
http://<mydomain>/drupal/civicrm/mailing/queue?reset=1
the mailing goes out fine and contact settings are not changed.

However, when I run the cron job:
wget 'http://<mydomain>/drupal/sites/all/modules/civicrm/bin/civimail.cronjob.php?name=<myuser>&pass=<mypassword>'
I get the following message in the account root directory:
ERROR: You need to send a valid key to execute this file. More info at:http://wiki.civicrm.org/confluence/display/CRMDOC/Command-line+Script+Configuration

... so when I change the civicrm.settings.php to have
define( 'CIVICRM_SITE_KEY', '01234567890123456789' );

Then when I run the cron job with:
wget 'http://<mydomain>/drupal/sites/all/modules/civicrm/bin/civimail.cronjob.php?name=<myuser>&pass=<mypassword>&key=01234567890123456789'
or
manually run the link:
http://<mydomain>/drupal/civicrm/mailing/queue?reset=1

then

in both cases with the Key defined in the civicrm.settings.php file, I observe that all the contacts mailed bounce (fake bounce - I don't think they are really bouncing) and each mailed contact is placed on hold.

It is getting late and maybe I'm being fooled, but I've replicated the observations more than once with consistent results.

Also, with version 1.9 I had trouble with civimail cron because I think there were two civicrm.settings.php files.  With 3.1.2, I'm only changing the civicrm.settings.php file in my drupal/sites/default folder and have not located another.  

Are other CiviMail users experiencing the above behavior with 3.1.2 ??

Do love the new GUI interface for CiviMail.

Thanks.
« Last Edit: February 18, 2010, 12:52:18 am by Denver Dave »

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: E-mail addresses on hold - CiviMail 3.1.2
February 18, 2010, 04:55:08 am
Quote from: Denver Dave on February 18, 2010, 12:50:07 am
With version 3.1.2, when the civicrm.settings.php file in the drupal/sites/default folder has the setting:
define( 'CIVICRM_SITE_KEY', null );

If I manually run the link:
http://<mydomain>/drupal/civicrm/mailing/queue?reset=1
the mailing goes out fine and contact settings are not changed.

[…]

... so when I change the civicrm.settings.php to have
define( 'CIVICRM_SITE_KEY', '01234567890123456789' );

Then when I run the cron job with:
wget 'http://<mydomain>/drupal/sites/all/modules/civicrm/bin/civimail.cronjob.php?name=<myuser>&pass=<mypassword>&key=01234567890123456789'
or
manually run the link:
http://<mydomain>/drupal/civicrm/mailing/queue?reset=1

then

in both cases with the Key defined in the civicrm.settings.php file, I observe that all the contacts mailed bounce (fake bounce - I don't think they are really bouncing) and each mailed contact is placed on hold.

Hm, this is very strange – can you retest that removing the key again makes the bounces not happen?
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Denver Dave

  • Ask me questions
  • ****
  • Posts: 471
  • Karma: 9
Re: E-mail addresses on hold - retesting
February 18, 2010, 12:01:13 pm
It's probably good to retest at a different time and after a nights sleep.

= = = = Test 1 = = = = =
This time i changed the civicrm.settings.php file to comment out the key not just set it to null:
//define( 'CIVICRM_SITE_KEY', null );
//define( 'CIVICRM_SITE_KEY', '01234567890123456789' );

Verified that the Cron job has been removed and is not running

Verified that the email addresses for the two in the mailing are not on hold

Submitting mailing  - it is now scheduled

Manually run the cron job from a link:
http://<mydomain>/drupal/civicrm/mailing/queue?reset=1

CiviMail says emails bounced
No emails received
Email contacts changed to on-hold

Ran above Test 1 three times with same results using link to run cron and after removing the on-hold each time
Civimail reports bounce, emails not received and contacts changed to on hold

= = = = =
took contacts off email on-hold

uncommented first Key definition
define( 'CIVICRM_SITE_KEY', null );
//define( 'CIVICRM_SITE_KEY', '01234567890123456789' );

Re-ran above test

emails went out fine with the define( 'CIVICRM_SITE_KEY', null );
using manual link to run cron
civimail reports emails went out without bouncing
civimail emails received.

= = = = = = = = =
I have not rerun cpanel automatic cron yet, but last nights test, had to have key to run and when run put contacts receiving emails on hold.
= = = = = == = =

I've seen several discussions about 3.x putting contacts on hold and I'm thinking they may be experiencing what I'm observing.  But might be a configuration issue - would be nice to have others confirm same or different results.

Thanks - Dave




Andrew Perry

  • I post occasionally
  • **
  • Posts: 98
  • Karma: 1
  • Building empowering tools that comply with rules
    • Community Builders Australia
  • CiviCRM version: 3.x, 4.x
  • CMS version: Joomla 1.0.x, 1.5.x -> Drupal 6.x, 7.x, WordPress
  • MySQL version: 5.1, 5.5, 5.6
  • PHP version: 5.2, 5.3, 5.4
Re: E-mail addresses on hold
February 18, 2010, 01:48:07 pm
Hi Denver Dave

We've done quite a few upgrades from 1.9 recently, and 3.1.2 seemed to fix this problem for our clients.

With version 1.9, some of our clients had civicrm installed under /<drupal_root>/modules/civicrm/ rather than the preferred /<drupal_root>/sites/all/modules/civicrm/

We tidied this up as part of the upgrade but you might want to check to make sure you don't have an old version in one place and the new version in the other.  I doubt that is your issue, but it was one thing that came to mind that you could check.

Regards

Andrew
Community Builders Australia Pty Ltd
www.communitybuilders.com.au

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: E-mail addresses on hold
February 18, 2010, 09:36:09 pm
I have created some documentation in the Wiki about bounce handling and on hold status here:
http://wiki.civicrm.org/confluence/display/CRMDOC/Bounce+Handling
Along with links to this page from the Admin and Users' section of the Wiki.

If you have any useful additions or important corrections, please edit.
« Last Edit: February 18, 2010, 09:38:58 pm by Stoob »
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Denver Dave

  • Ask me questions
  • ****
  • Posts: 471
  • Karma: 9
Re: E-mail addresses on hold
February 18, 2010, 09:44:43 pm
Thanks - I'll read the documentation.  The on-hold / bounce problem is with our 3.1.2 test system, not with our 1.9 production.

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: E-mail addresses on hold
February 19, 2010, 08:43:57 am
Hm, the dependence mailings bouncing (which puts the contacts on hold) on the site key is really strange – and so far is only experienced on Denver Dave’s test system (unless I missed something).

It would be great if this can be tracked down (with the contacts being taken off the hold between attempts, or, ideally, the test db reset to the same state) in all of the following to make sure there indeed is a relation: undefined CIVICRM_SITE_KEY, CIVICRM_SITE_KEY set to null and CIVICRM_SITE_KEY set to a value.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Pages: [1] 2 3 4
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • E-mail addresses on hold

This forum was archived on 2017-11-26.