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) »
  • CiviMail Bounces Emails for Some Contacts with Valid Emails
Pages: [1] 2

Author Topic: CiviMail Bounces Emails for Some Contacts with Valid Emails  (Read 3585 times)

CMLA

  • I’m new here
  • *
  • Posts: 20
  • Karma: 0
  • CiviCRM version: 4.3.7
  • CMS version: Drupal 6.22
  • MySQL version: 5.5.33
  • PHP version: 5.3.27
CiviMail Bounces Emails for Some Contacts with Valid Emails
July 23, 2011, 11:39:49 pm
We encountered an issue with CiviMail that impacts a small, but high-profile set of contacts in our CiviCRM database (CiviCRM Version 3.3.5). We have approximately 350 contacts that CiviMail ignores when processing emails. The users have valid email addresses and no privacy or bulk email restrictions in their profile. We can use the "Send an email" option to successfully send emails to these users, so the contacts are only ignored by CiviMail.

CiviMail adds the contact's email address to its "Intended Recipient" list, but CiviMail bounces the email using the bounce type of "Unknown bounce type: Could not parse bounce email". I checked our mail logs and CiviMail never creates emails for the impacted contacts (using SMTP), but successfully relays emails for more than 3,700 other contacts.

I am able to create a new contact record for the impacted contacts (with same email address) and successfully relay through CiviMail, but once I merge the new record with the existing record CiviMail will no longer process emails for the impacted contact. I used the "new contact ID" as the "base contact" during the merge process, so the contact is now associated with the new contact ID.

I tried removing all of the groups associated with the contact and added a single test group back to the user, assuming there could be an issue with an existing group associated with the contact.

The contacts impacted by this issue are the same for each mailing, so the contact's profiles must have an associated record that is causing this issue.

Is it possible for a contact's activity, event or contribution history to impact CiviMail's ability to process emails for a contact? Has anyone else experienced this issue and found a resolution? Thanks.

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: CiviMail Bounces Emails for Some Contacts with Valid Emails
July 24, 2011, 05:54:28 am

Since its the set of same contacts, can you do the foll:

1. create a civimail with only one of the contacts (prefeably a known one!)

2. send the mailing and see if you get the issue (hopefully yes)

3. reuse the mailing, and add debug code to the deliver part and trace whats happening and why. If you need help with the right files etc, ping us on IRC

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

CMLA

  • I’m new here
  • *
  • Posts: 20
  • Karma: 0
  • CiviCRM version: 4.3.7
  • CMS version: Drupal 6.22
  • MySQL version: 5.5.33
  • PHP version: 5.3.27
Re: CiviMail Bounces Emails for Some Contacts with Valid Emails
July 24, 2011, 09:13:32 am
Thanks for the suggestion. I give that a try and let you know what I find out.

Thanks,

Wes

CMLA

  • I’m new here
  • *
  • Posts: 20
  • Karma: 0
  • CiviCRM version: 4.3.7
  • CMS version: Drupal 6.22
  • MySQL version: 5.5.33
  • PHP version: 5.3.27
Re: CiviMail Bounces Emails for Some Contacts with Valid Emails
July 25, 2011, 06:05:25 pm
Hi Lobo,

I am having trouble tracing the delivery. I was able to locate the general CiviCRM backtrace log, but I don't see anything specific to CiviMail delivery in the log. The log shows the civimail.cronjob executing, but it does not display the the CiviMail php files executed for delivery. I posted the question on IRC a few times, but I haven't been able to catch anyone who knows the process for tracing CiviMail delivery.

Any suggestions of ways to trace the delivery are greatly appreciated!

Thanks,

Wes

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: CiviMail Bounces Emails for Some Contacts with Valid Emails
July 26, 2011, 02:57:12 am

sorry am travelling and on the road, hence not logged on :(

the files to debug are;

CRM/Mailing/BAO/Job.php, search for: mailer->send

and

packages/Mail/smtp.php, function send (assuming u r using smtp)

i suspect those email addresses are failing validation for some strange reason in the mail libray

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

CMLA

  • I’m new here
  • *
  • Posts: 20
  • Karma: 0
  • CiviCRM version: 4.3.7
  • CMS version: Drupal 6.22
  • MySQL version: 5.5.33
  • PHP version: 5.3.27
Re: CiviMail Bounces Emails for Some Contacts with Valid Emails
July 26, 2011, 07:21:54 am
That helps! Thanks for responding on the road  :)


CMLA

  • I’m new here
  • *
  • Posts: 20
  • Karma: 0
  • CiviCRM version: 4.3.7
  • CMS version: Drupal 6.22
  • MySQL version: 5.5.33
  • PHP version: 5.3.27
Re: CiviMail Bounces Emails for Some Contacts with Valid Emails
July 26, 2011, 09:44:53 pm
The issue is definitely not with the validation of the email address. CiviMail skips the record even when I use a different valid email address with the record. I can create a brand new contact record for the affected person and CiviMail successfully sends bulk emails, but if I merge the old and new records CiviMail not longer sends emails to the merged contact.

I can manually recreate each of the 350 records, but I will lose the contact history since merging the old record's history recreates the issue.

There appears to be something in the contact profile's history that is causing CiviMail to bounce without attempting to send the email.

Does CiviMail validate anything else in the contact's record before sending mail via SMTP?

Thanks for your help troubleshooting this issue.

Wes

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: CiviMail Bounces Emails for Some Contacts with Valid Emails
July 27, 2011, 12:23:28 am

earlier u mentioned they are in the recipients list for civimail. At this point, civicrm is done with its checks/logic and basically hands the email off to the mail code

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

CMLA

  • I’m new here
  • *
  • Posts: 20
  • Karma: 0
  • CiviCRM version: 4.3.7
  • CMS version: Drupal 6.22
  • MySQL version: 5.5.33
  • PHP version: 5.3.27
Re: CiviMail Bounces Emails for Some Contacts with Valid Emails
July 27, 2011, 10:33:16 am
Good to know. I will take a closer look at the smtp.php and email processor file to see if I missed a validation point in the bounce process. Thanks.

BusinessMediaCenter

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 2
  • CiviCRM version: 4.1.x
  • CMS version: Drupal 6 & 7
  • MySQL version: 5
  • PHP version: 5
Re: CiviMail Bounces Emails for Some Contacts with Valid Emails
August 03, 2011, 09:41:57 pm
Hello

I have a similar problem, with a twist.  I get about 50% bounces each time a run is made.  However, here is the twist: after I unhold all bounced addresses and resend the mail to the addresses that I manually unholded, some of the addresses that bounced in the previous run (appx 50%) do not bounce.  Strange.  Here is exactly what I have done- each time a run is made, I put all of the bounced contacts into a new group, unhold all emails in this group, then resend the mail to this group and repeat.  Here is a matrix of the results:

Run 1 - 350 in group, 71 bounces
Run 2 - 71 in group, 37 bounces
Run 3 - 37 in group, 29 bounces
Run 4 - 29 in group, 18 bounces
Run 5 - 18 in group, 0 bounces

I also see 11 instances of this error in Drupal logs, however  this number doesn't match up with the total number of bounces. 

mail() [<a href='function.mail'>function.mail</a>]: Could not execute mail delivery program '/usr/sbin/sendmail -t -i' in /var/www/vhosts/<mydomain>/httpdocs/sites/all/modules/civicrm/packages/Mail/mail.php on line 168.

Any suggestions?

BusinessMediaCenter

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 2
  • CiviCRM version: 4.1.x
  • CMS version: Drupal 6 & 7
  • MySQL version: 5
  • PHP version: 5
Re: CiviMail Bounces Emails for Some Contacts with Valid Emails
August 17, 2011, 01:31:12 pm
We did anopther mailing, and the same thing happened.  SI there anyone that can point me to a resource?  Everything is seemingly configured properly

thanks!

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: CiviMail Bounces Emails for Some Contacts with Valid Emails
August 17, 2011, 03:24:06 pm
are you using mail() or sendmail as the option to send emails?

-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

BusinessMediaCenter

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 2
  • CiviCRM version: 4.1.x
  • CMS version: Drupal 6 & 7
  • MySQL version: 5
  • PHP version: 5
Re: CiviMail Bounces Emails for Some Contacts with Valid Emails
August 17, 2011, 03:30:36 pm
Thanks xavier, I was using mail() whgen having the problems, I have since switched (today) to try smtp based on recommendations from this post as I am using plesk http://forum.civicrm.org/index.php/topic,9615.msg41500.html#msg41500.  The test email worked.

I now have another problem, I cancelled two running mailings, and the new mailing is now stuck on "running" (made a new post about that)  http://forum.civicrm.org/index.php/topic,21209.0.html

thanks for your help, client is trying to send a tome sensitive email right now and I am stuck!!

BusinessMediaCenter

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 2
  • CiviCRM version: 4.1.x
  • CMS version: Drupal 6 & 7
  • MySQL version: 5
  • PHP version: 5
Re: CiviMail Bounces Emails for Some Contacts with Valid Emails
August 17, 2011, 03:38:11 pm
EDIT

I del;ted one of the cancelled mails and ran the cron form browser, this has initiated the new mail, and no bounces (yet)...I will report back if more issues
Drupal is reporting this error tho:

   file_exists() [<a href='function.file-exists'>function.file-exists</a>]: open_basedir restriction in effect. File(/dev/random) is not within the allowed path(s): (/var/www/vhosts/<domain>/httpdocs:/tmp) in /var/www/vhosts/<domian>/httpdocs/sites/all/modules/civicrm/packages/Auth/SASL/DigestMD5.php on line 184.

What does this mean?

thanks

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: CiviMail Bounces Emails for Some Contacts with Valid Emails
August 17, 2011, 10:51:26 pm
That your host is probably with a lot of limitations and unsuited for hosting something as complex as civi. I would strongly suggest you to switch to something more advanced (and more expensive)

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • CiviMail Bounces Emails for Some Contacts with Valid Emails

This forum was archived on 2017-11-26.