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) »
  • a few emails failing validation
Pages: [1]

Author Topic: a few emails failing validation  (Read 1671 times)

pkeogan

  • I post frequently
  • ***
  • Posts: 130
  • Karma: 4
    • BackOffice Thinking
a few emails failing validation
November 02, 2010, 02:52:11 pm
We have a problem with a few emails failing validation.  The emails are valid and have been tested.  There are thousands of emails being sent successfully.  The failure is instantaneous once the bulk mail cron job runs, so these are not making it out of civi.

When viewing the bounce report, each emails fail because of the following reasons...

Bounce Type: Invalid 
Bounce Reason: Validation failed for:

Any ideas?

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: a few emails failing validation
November 03, 2010, 05:21:10 am
You will need to access the bounce emails to be able to know more about it. (works in imap, you'll find it in the processed folder, I think it would be destroyed if POP)

Incidentally, it's been discussed to add the bounce emails directly in the activity of the contact, to make it easier to see things like that directly from civicrm. Would you want to sponsor it ?

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

dschafer

  • I post occasionally
  • **
  • Posts: 93
  • Karma: 3
    • Backoffice Thinking
  • CiviCRM version: 3.2.3 - 4.4.4
  • CMS version: Drupal 6.x, 7.x, Wordpress
  • MySQL version: 5.1.x - 5.5.x
  • PHP version: 5.2.x - 5.4.x
Re: a few emails failing validation
November 03, 2010, 01:30:08 pm
Hi Xavier,
The problem is the bounce is not occuring from a bounce message.

The bounce is occuring within Civi - the no message is ever sent for delivery.

I know this because we setup a bulk email to some of the effected addresses.  The mailing completed. All addresses were bounced (this is after we took them off "on hold"), but there is no record in the maillog indicating that a message was generated for those addresses.

If seems like an issue with RFC validation but the emails are completely valid and can be sent to from multiple providers. (google apps etc.)

what could be causing these few emails to be invalid.

Could they be in some kind of unsubscribe state?

Thanks

pkeogan

  • I post frequently
  • ***
  • Posts: 130
  • Karma: 4
    • BackOffice Thinking
Re: a few emails failing validation
November 03, 2010, 02:22:29 pm
and to be clear... the user has not opted out of bulk mailing and the administrative hold is removed prior to send a bulk email.

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: a few emails failing validation
November 03, 2010, 08:19:16 pm

that error message is coming via this issue:

http://issues.civicrm.org/jira/browse/CRM-6410

(it was introduced in 3.2.beta3)

looking at the code: CRM/Mailing/BAO/Mailing.php, line 383 the bounce is most likely set there. so does the same email address bounce every time? if so, can you instrument the code and get more details

ping us on irc and we can assist

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

dschafer

  • I post occasionally
  • **
  • Posts: 93
  • Karma: 3
    • Backoffice Thinking
  • CiviCRM version: 3.2.3 - 4.4.4
  • CMS version: Drupal 6.x, 7.x, Wordpress
  • MySQL version: 5.1.x - 5.5.x
  • PHP version: 5.2.x - 5.4.x
Re: a few emails failing validation
November 04, 2010, 03:07:19 pm
Hi Lobo

Look like the issue is within packages/Mail/RFC822.php (this is the only file that contains the specific text)
starting at line 501...
Code: [Select]
        // ... or any other format valid by RFC 822.
        for ($i = 0; $i < count($addresses); $i++) {
            if (!$this->validateMailbox($addresses[$i])) {
                if (empty($this->error)) {
                    $this->error = 'Validation failed for: ' . $addresses[$i];
                }
                return false;
            }
        }

Is appears that the error should include the address that failed. However in our case it does not.

Is it possible there could be a mis match between the master mailing list and the address validation list?
(I haven't had the time to trace through the code further)

Thanks,
     Dave

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: a few emails failing validation
November 04, 2010, 05:36:47 pm

dave:

i did not find that message in my initial grep :) so good find :)

the same string is also present in the table: civicrm_mailing_bounce_pattern, so i'm not sure which one triggers it. if it happens repeatedly on the same email address should be fairly easy to figure out whats happening and why

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

dschafer

  • I post occasionally
  • **
  • Posts: 93
  • Karma: 3
    • Backoffice Thinking
  • CiviCRM version: 3.2.3 - 4.4.4
  • CMS version: Drupal 6.x, 7.x, Wordpress
  • MySQL version: 5.1.x - 5.5.x
  • PHP version: 5.2.x - 5.4.x
URGENT Re: a few emails failing validation
February 01, 2011, 05:27:44 pm
We are still experiencing this problem with valid emails failing the check in RFC822.php.

At this point I want to by pass this function completely to restore user confidence in the system. Better to try and send to a few bad emails that continually flag good emails as bad.

I'm planning to just comment out the following block starting at line 503
Code: [Select]
            if (!$this->validateMailbox($addresses[$i])) {
                if (empty($this->error)) {
                    $this->error = 'Validation failed for: ' . $addresses[$i];
                }
                return false;
            }

Since it appears to be validateMailbox that is generating the invalid result.

Anyone see any issues with this approach. Were planning to upgrade in the near future but this issue has been going on for months with no resolution.

I have no confidence that the upgrade will resolve the problem.


xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: a few emails failing validation
February 02, 2011, 12:11:43 am
Quote from: pkeogan on November 02, 2010, 02:52:11 pm
Bounce Type: Invalid 
Bounce Reason: Validation failed for:

Was this really the bounce msg ? It would send indicate that the email was empty, and the problem elsewhere (or that validateMailbox empties it)

$this->error = 'Validation failed for: ' . $addresses[$i];

I am not sure what is the benefit of this test as the email addresses are supposed to be correct because tested at the import/data entry.

Might want to simply replace that line and return an error only if  there is a non empty this->error
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

davej

  • Ask me questions
  • ****
  • Posts: 404
  • Karma: 21
Re: a few emails failing validation
August 22, 2011, 08:00:04 am
Hi,

One thing that can cause this problem (up to version 3.3.5): commas in contact names: see http://issues.civicrm.org/jira/browse/CRM-7818

Regards,

Dave J

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • a few emails failing validation

This forum was archived on 2017-11-26.