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) »
  • Viewing full bounce message?
Pages: [1]

Author Topic: Viewing full bounce message?  (Read 655 times)

freedomlives

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: Drupal 7
Viewing full bounce message?
March 29, 2014, 05:51:10 am
My problem is that many of the bounce messages originate from my email server and start off like this:
Quote
This is the mail system at host mail.freedomlives.net. I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below. For further assistance, please send mail to postmaster. If you do so, please i
Unfortunately, it cuts off before the important part!

I realize that after the fact it isn't possible, because I checked the database and see that the field storing the message is limited to 255 characters. (mailing_event_bounce:bounce_reason varchar(255))

I feel bad posting feature requests without doing any work myself on it, but I still find the whole code structure of Civicrm confusing (I have basic programming experience, mostly in C/C++, but I understand PHP), I need to study it more...

What could be a way to change this to store either all of the error email in the database, or else leave the messages on the IMAP server for a certain amount of time-- i.e. not immediately delete them after civimail has processed bounces, but just mark as read and delete like a week later?

Because often there will be in the bounce message from my server the error code from the remote SMTP server, which possibly could also give more detailed information, like "your domain is on some blacklist" which would be useful to know about.

I'm willing to try to write some patch to do this, but could someone point me in the direction of which files handle the actual mail processing?

slamorte

  • I’m new here
  • *
  • Posts: 27
  • Karma: 1
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7
  • MySQL version: 14.14
  • PHP version: 5.4.4-14+deb7u8
Re: Viewing full bounce message?
April 01, 2014, 03:06:45 pm
    I'm having the exact same issue.

    I am having a really high number of bounces of type Syntax, all to known good email address than I can send individual emails too but which bounce in Mailings. I want to troubleshoot this issue but I cannot view the entire bounce message and CiviMail deletes the messages immediate. The bounce IMAP account is empty.  :(

    Short-term work-arounds for this include writing a filter in the IMAP account that duplicates the bounces to another folder in that IMAP account, or store-and-forwarding the bounces to another IMAP account.

    A better solution might include one or all of the following:
    • ]CiviMail leave the mail on the server for n number of days
    • record more of the bounce message
    • storing the bounce message as an activity attached to the contact (or under a Bounces tab)
    • simply capturing the bounce ID as well (Syntax errors can be 500 or 501 errors)

    But really getting access to the entire message would be best.


freedomlives

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: Drupal 7
Re: Viewing full bounce message?
April 15, 2014, 02:06:50 pm
You know what-- I found the solution--

at least on my 4.4.3 installation, civimail creates subfolders in IMAP under the inbox, and it was just necessary to subscribe to them with my email client.

These folders are:
INBOX.Civimail.ignored  (no messages in mine)
INBOX.Civimail.processed  (this one had all of the full bounce messages!!!)

slamorte

  • I’m new here
  • *
  • Posts: 27
  • Karma: 1
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7
  • MySQL version: 14.14
  • PHP version: 5.4.4-14+deb7u8
Re: Viewing full bounce message?
April 15, 2014, 03:42:15 pm
Freedom, you are a genius. I clicked Show All Email Boxes in my webmail app and the Civi boxes appeared.

No idea why they were hidden by default. I have never heard of hidden email folders in IMAP.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Viewing full bounce message?

This forum was archived on 2017-11-26.