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) »
  • Premature Bounces
Pages: [1]

Author Topic: Premature Bounces  (Read 3614 times)

Denver Dave

  • Ask me questions
  • ****
  • Posts: 471
  • Karma: 9
Premature Bounces
October 18, 2008, 12:01:02 pm
Drupal - CiviCRM 1.9 - IMAP2Soap not operating
Premature Bounces

In our last mailing to 2,401 advocates

386 were flagged as bounces (premature bounces) without being mailed (this is the area of my question)

244 came back as bounces, this looks like it is correct

= = = =

Each month, we seem to have a steadily increasing number of emails being flagged as bounces without going out.  A couple were in fact bad addresses, but it looks like many should have been fine.

I'm not sure what order the mailings go out, but if they are alphabetical by last name, the premature bounces seem to be evenly distributed across the alphabet and across various hosts. 

With only a couple of exceptions, the bounce type is unknown and the reason is blank.

None of the "premature bounces" on the bounce list are in the pop3 returned bounces.  So far, the people that I have contacted with the "premature bounces" confirmed that they did not receive the last email and one indicated that sometimes others have complained about their email address bouncing.

I'm tempted to collect the premature bounces as a file, use email address to match the contact record, update a separate field to identify the uploads and send out a mailing to just the premature bounces and see what happens.

Anyone else experiencing similar issues?

Denver Dave

  • Ask me questions
  • ****
  • Posts: 471
  • Karma: 9
Re: Premature Bounces
October 19, 2008, 10:14:37 pm
I'm running the 386 initial bounces through again separately and while it is still running, out of the first 150, they all bounced.   I'm now going to send a regular email from my local email client to a few as a test.

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Premature Bounces
October 20, 2008, 08:19:35 am
If I get this correctly, these are all SMTP-level bounces; i.e., the target mailserver either can’t be routed to, can’t handle email or says it won’t accept given email.

Please do try with your regular email client; this should point you to the actual error.
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: Premature Bounces
October 20, 2008, 10:25:39 am
Resending all initial bounces (before going out), resulted in all 386 again being rejected.  A couple of addresses I noticed were bad, but several looked fine from people I know.  I sent out a test message for 4 from my email client last night and 2 of the 4 have replied back that they received my test message.

My test message was not the same message as my newsletter, but they did go through to addresses that bounced (quick bounce) with our newsletter mailing.  I think, I'll now go back and send the exact same bulk email that quick bounced, with my email client. 

It does look like CiviMail may be a little quick in declaring a bounce instead of sending. 

I thought I'd also take the bulk email addresses and try sending it from Vertical Response and see if it goes through from there.

Looking back to when this issue started, it did not start gradually(as I indicated), but it is increasing from a burst start, perhaps because of new records being added:
August 6th - 0 initial bounces
August 13th - 343 initial bounces

My new theory is that perhaps I was trying to hookup IMAP2Soap and broke something and didn't notice it since 87% of the emails go out just fine.  Will retrace what I did with IMAP2Soap

Are any others having this issue with initial bounces.
= = = = = =

Well isn't this interesting:

I renamed the imap2soap.pl and .conf files so that they would not be found by Civimail and I'm rerunning the 384 bouncing contacts for the 3rd time.  While I've yet to confirm by phone the newsletter receipt, I'm fairly certain that many of them are now going through because of the tracked opens and click throughs that are now showing up already with the mailing in process.

While we can assume that I hooked up the imap2soap incorrectly, for me it was worse than non-functional - for about 13 % of our mailing, it stopped mailings from going to many good addresses.  This does not mean that some of the email addresses that "initially bounced" are not bad, but perhaps we can deal with them with the rest of our returned bounces.

Renewed interest in the bounce processing with PHP project.

Hope the above helps someone else.
Dave

« Last Edit: October 20, 2008, 12:00:58 pm by Denver Dave »

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Premature Bounces
October 20, 2008, 11:50:15 am
Quote from: Denver Dave on October 20, 2008, 10:25:39 am
Resending all initial bounces (before going out), resulted in all 386 again being rejected.  A couple of addresses I noticed were bad, but several looked fine from people I know.  I sent out a test message for 4 from my email client last night and 2 of the 4 have replied back that they received my test message.

My test message was not the same message as my newsletter, but they did go through to addresses that bounced (quick bounce) with our newsletter mailing.  I think, I'll now go back and send the exact same bulk email that quick bounced, with my email client. 

That would be a good test. Keep in mind that most probably your personal mail client uses a different routing (different SMTP server) than your CiviMail install, and this might be the crux of the issue.

In general, checking the CiviMail’s mailserver logs should tell you the reasons why these hard bounces happened.

Quote from: Denver Dave on October 20, 2008, 10:25:39 am
It does look like CiviMail may be a little quick in declaring a bounce in stead of sending.

Well, if the SMTP-level does not accept the message for some reason, there’s not much CiviMail can do (other than mark it as a hard bounce).

Quote from: Denver Dave on October 20, 2008, 10:25:39 am
My new theory is that perhaps I was trying to hookup IMAP2Soap and broke something and didn't notice it since 87% of the emails go out just fine.  Will retrace what I did with IMAP2Soap

I don’t think return channel handling should have any impact on the sending side.
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.

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Premature Bounces
October 20, 2008, 11:51:00 am
In general, what you need to check is the reason behind these bounces (maybe the target servers are treating CiviMail as a spam source for some reason?), and this info is in the mailserver’s logs.
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: Premature Bounces
October 20, 2008, 11:59:04 am
Hi Piotr

Thank you for your encouragement.  Our posts may have crossed.  By renaming the imap2soap.pl and .conf the "quick bounce" emails are now going out and at least some are being opened (I'm sure some are also bad addresses) (see previous entry). 

I'm on a shared hosting account and while I have access to the server logs and ftp logs, I'm not sure about the mail logs.

Denver Dave

  • Ask me questions
  • ****
  • Posts: 471
  • Karma: 9
Re: Premature Bounces
November 08, 2008, 09:50:10 am
OK, new theory.  Previous examples and assumed resolution did happen as described above.  However, today while doing a mailing, back to premature bounces for one group of 48.

Looks like emails are sent out in order of internal contact ID.

We send out in batches of 50 every 10 minutes.

2 batches went fine + 2 apparently extras 102 went out fine.

Then 48 consecutive emails "bounced prematurely"

Then the next 4 batches of 50 have gone out fine and run of 2,427 is still running (50 every 10 minutes).

If an entire batch of 50 had bounced, I might suspect something like the next batch ran before the first completed.  However, the first 2 of the offending batch seemed to go out then the remaining 48 all failed. 

Wonder if there could be something wrong with a particular record and then when it is sent, if it kills off the entire batch.  Or, still might be a timing thing..... watching the run.

Dave

= = = = = = =

First record that "premature bounced" had a Bounce Type of Host and Bounce Reason of refused. In the current run with 48 bounces so far, no other bounce record has a known bounce type or a bounce reason.  First bounce record was #293

Looking back to run from a while back with 2399 including bounces of 385.  There were 6 records in the bounces with bounce type of host and Bounce Reason of Connection refused.  6 records x 50 per batch only gives 300 rather than 385, but in the ballpark.   

Last run had a connection refused at records 289, 770, 1114, 1548, 2325 and 3183  .... interesting to see if the current run bounces records at approximately the same locations.  If so, might be some bad records.

Another batch of 50 just bounced so now have 98 bounces.

Record numbers for connection refused - previous run vs current run which seems to bounce all remaining emails in the batch:

289  vs.  293
770  vs   770

3rd set of 48 did not have a Connection Refused so maybe this was not it.  I'm changing the 50 every 10 minutes to 15 every 10 minutes.  This might help or might just give more smaller batches to have issues.  We'll see.  Hope it is OK to change the number in the middle of a run.

Thinking back - the "premature bounces" might have started about the time I increased the batch size from 20 every 10 minutes to 50 every 10 minutes, so it will be interesting to see wwith the change to 25 every 10 minutes, if this effects the "premature bounces".

= = = = = =
Changing to smaller batches during the run, did not seem to solve the problem.  When an email bounces in a batch, all later emails in the batch seem to bounce.  Smaller batches mean smaller numbers of bounces from the batch, but still getting bounces.

= = = = =
My latest thinking is that my IMAP2Soap rename didn't do anything and it was just a coincidence that when I tried to rerun batch of bounces before the rename and they 100% bounced, but after the rename all went through.   I'll try this again with the latest set of bounces, still running, but should be about the same.
= = = = =
Results:
Original mailing: 2,427 attempted, 392 premature bounces
Reran group of 390 (not sure why I did not have 392) and they all processed accept for 14 premature bounces
Reran group of 14 that previously premature bounced, all went out.

I'm not sure how I explain to users why it takes 3 tries to get all the mail out the door.

Any suggestions for areas that we should investigate?
« Last Edit: November 09, 2008, 12:49:45 am by Denver Dave »

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Premature Bounces
November 12, 2008, 04:44:14 am
I’m not sure I follow everything above in 100%, but my guess is that the bounce reasons of connection refused mean that you’re sending too fast for either your end (i.e., your hosting provider) or the other end (i.e., there’s a server that takes your mailing as a flooding attempt).

It’s hard to say anything definitive without access to the actual bounces, but I’d guess the above. Keep in mind that either end can also have some kind of memory, i.e., remember that it considered you a spammer at some point in time for some time.
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: Premature Bounces
November 16, 2008, 05:41:10 pm
I'm also thinking it might be some environmental issue, especially if others are not running into the same situation. 

Interesting, my last run with a much smaller group of 384 had exactly 50 bounces.  We do batches of 50 and the very first bounce had the bounce type = host , reason = connection refused.     In past runs, over half of the bounced batches have the first bounced email (usually not the first email in the batch) as type=host, reason = connection refused, but not all.  Once any email in a batch bounces, all later emails in the same batch bounce, then we are fine with the next batch. 

Perhaps a later version of CiviCRM / CiviMail may solve this or moving to a different server.  We ran just fine with no "premature bounces" for 6 months and now we always get premature bounces with mailings over a few hundred.

Fortunately it is not hard to copy the bounce records to a spreadsheet, import them updating a bounce date custom field, create a new group, flag the group for mailings and have a go with the premature bounces and then repeat the process until there are no bounces left (so far 3 times for the largest run)

« Last Edit: November 16, 2008, 05:45:08 pm by Denver Dave »

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Premature Bounces
November 17, 2008, 07:44:51 am
Could your problems be a symptom of the other side using greylisting? This is a known anti-spam technique that consists of softly bouncing the first email from an unknown source; the reasoning is that spammers wouldn’t waste resources to re-send the spam, while legitimate servers should simply cache the email and then try to re-deliver it some time later.

I’m not sure how CiviMail handles situation when it’s directly talking to a mail server with greylisting; our idea was that there’s always some mailserver that trusts CiviMail and actually handles all of such soft bounces by itself (usually it’s CiviMail’s localhost).
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: Premature Bounces
November 17, 2008, 08:08:16 am
If the initial bounced email would always bounce, then some sort of greylist or verification would seem to be suspect.  What gets me is when we turn right around and resend, most of the first round bounces get through and when we did a third time, all the remaining got through.

When it says Bounce Type = Host and Reason = Connection refused, I wonder whose host is refusing the connection - mine?

= = = = =
see also similar reports at:
http://forum.civicrm.org/index.php/topic,5810.0.html
« Last Edit: January 01, 2009, 12:08:48 am by Denver Dave »

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Premature Bounces
November 18, 2008, 03:46:07 am
Quote from: Denver Dave on November 17, 2008, 08:08:16 am
If the initial bounced email would always bounce, then some sort of greylist or verification would seem to be suspect.  What gets me is when we turn right around and resend, most of the first round bounces get through and when we did a third time, all the remaining got through.

Isn’t that what greylisting is about? ‘Block on first try, let in if there’s a retry’? (Also, greylisting is usually done based on the Return-Path header, which in our case differs from recipient to recipient and from mailing to mailing, but should stay the same for a given recipient through a mailing.)

Quote from: Denver Dave on November 17, 2008, 08:08:16 am
When it says Bounce Type = Host and Reason = Connection refused, I wonder whose host is refusing the connection - mine?

Either yours or the recipient’s, but to know which one you either need to see the actual bounce or check the mail logs.
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: Premature Bounces
February 16, 2009, 09:54:29 pm
I thought I'd report back with new information.  We had a system problem with emails (unrelated) and I reduced the 50 emails per 10 minutes back to 1 email per 10 minutes and then increased to 10 emails per 10 minutes.

With 10 emails per 10 minutes we had 0 bounces.

I believe that I that I had tested with 20 emails per 10 minutes and still had bounces, so I concluded that the number of emails in the batch was not a factor, but this may be incorrect.  I'll repeat the 20 emails per 10 minute test.

We have had 15% bounces or so consistently for the last 8 months on mailings over 500 at 50 per 10 minutes.  Now on the last run of 3,000 at 10 per 10 minutes, no bounces.  Could be a coincidence and I'll repeat the tests at 20 and 50 per 10 minutes, but I thought I'd provide the information.

Dave

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Premature Bounces

This forum was archived on 2017-11-26.