Results 1 to 7 of 7

Thread: Bounce Handler reads bounced mail but doesn't process it.

  1. #1
    robertbmirth is offline Sugar Community Member
    Join Date
    Jun 2010
    Location
    Irvine, CA
    Posts
    345

    Default Bounce Handler reads bounced mail but doesn't process it.

    So, I'm running Sugar 6.0 on a Sugar On Demand system, and I've run into the following problem. When my gmail account receives a bounced email, Sugar's Bounce Handling will check the box, read the bounce (the status of the bounce in my inbox goes from unread to read) and then do nothing with it. The bounce email is being sent from a MAILER-DAEMON, and it includes the forwarded message, which includes the removeme.php link. Thus, it should have all the information it needs to flag the campaign that an email bounced, but it doesn't seem to be doing it. I know I'm not providing much information here but that's about as much as I can think of. Anyone have any idea what my problem might be?

  2. #2
    robertbmirth is offline Sugar Community Member
    Join Date
    Jun 2010
    Location
    Irvine, CA
    Posts
    345

    Default Re: Bounce Handler reads bounced mail but doesn't process it.

    Furthermore, there's a peculiar happening that occurs when I manually read the bounce email in my mailbox. When I do that, my "viewed message" count goes up. I'm assuming that this is happening because I am essentially viewing the email even though i'm just viewing a bounced instance of it, but this seems like a bug to me.

  3. #3
    robertbmirth is offline Sugar Community Member
    Join Date
    Jun 2010
    Location
    Irvine, CA
    Posts
    345

    Default Re: Bounce Handler reads bounced mail but doesn't process it.

    So... update on my status:

    Looking through the log, I'm getting a
    [INFO] Warning: skipping bounced email because it does not have the removeme link.
    However, the emails do, in fact, have removeme links. I first attempted this with the default removeme link (The one that is automatically put in the email that says "To remove yourself from this email list click here" where "click here" is the link) and then with a custom tracker removeme link (where the email hardcodes the link, i.e. http://127.0.0.1:80/sugarcrm/index.p...c-4c603c4b7a5f). Therefore, I'm guessing this is a problem with the email parser, but I don't know what or where that is, and I doubt I have access to modify it in Sugar On Demand.

    What I was planning on doing if I can't find the root of the problem is create logic hook functionality to create a new CampaignLog, populate it with the required information, and then save it. I've done this with my custom web to lead form to allow the campaign to know that leads have been created and it works well. However, I'm guessing the bounced email problem will be a little tougher to tackle because I'd need to manually find the removeme link, figure out what contact/lead/whatever the link refers to, and then do the above actions. Any thoughts/solutions?

  4. #4
    robertbmirth is offline Sugar Community Member
    Join Date
    Jun 2010
    Location
    Irvine, CA
    Posts
    345

    Default Re: Bounce Handler reads bounced mail but doesn't process it.

    So... again delving into the mass of PHP code that is SugarCRM. The previous statement that the bounced email doesn't have a "removeme.php" link is "correct" in the fact that the saved version of the email doesn't have a removeme.php link. For some reason (and I'm still delving, but the reason is, I think, somewhere in InboundEmail.php) the forwarded section of the email body gets truncated, and its the forwarded section that contains the removeme link. For example, the email in my gmail mailbox is thus:

    This is the mail system at host <host-node-url>.

    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 include this problem report. You can
    delete your own text from the attached returned message.

    The mail system

    <fake-email-address>>: host mta.am0.yahoodns.net[74.6.140.64] said: 554
    delivery error: dd This user doesn't have a yahoo.com account
    (<fake-email-address.) [0] - mta1102.mail.sk1.yahoo.com (in reply to
    end of DATA command)

    Final-Recipient: rfc822; <fake-email-address>
    Original-Recipient: rfc822;<fake-email-address>
    Action: failed
    Status: 5.0.0
    Remote-MTA: dns; mta.am0.yahoodns.net
    Diagnostic-Code: smtp; 554 delivery error: dd This user doesn't have a
    yahoo.com account (<fake-email-address>) [0] -
    mta1102.mail.sk1.yahoo.com


    ---------- Forwarded message ----------
    From: <my-email-address>
    To: Bounce <fake-email-address>
    Date: Mon, 9 Aug 2010 11:59:17 -0700
    Subject: [Test]: Hi

    This is a test newsletter for Bounce



    http://127.0.0.1:80/sugarcrm/index.p...b-4c6050df8d31
    but the email that pops up in my Sugar mailbox (if I set the Inbound Mailbox type to be group rather than bounce) is the following:

    This is the mail system at host <host-node-url>.

    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 include this problem report. You can
    delete your own text from the attached returned message.

    The mail system

    : host e.mx.mail.yahoo.com[67.195.168.230] said: 554
    delivery error: dd This user doesn't have a yahoo.com account
    (<fake-email-address>) [0] - mta1012.mail.ac4.yahoo.com (in reply to
    end of DATA command)
    This truncation DOES NOT HAPPEN if I forward the same email from myself to myself (but then the bouncer wouldn't recognize it because the sender isn't a MAILER-DAEMON)

    Anyone with any ideas?
    Last edited by robertbmirth; 2010-08-09 at 09:11 PM. Reason: Added more information

  5. #5
    jstolle is offline Member
    Join Date
    Aug 2010
    Posts
    12

    Default Re: Bounce Handler reads bounced mail but doesn't process it.

    Quote Originally Posted by robertbmirth View Post
    Anyone with any ideas?
    See if my fix can help: http://www.sugarcrm.com/forums/showp...1&postcount=86

  6. #6
    robertbmirth is offline Sugar Community Member
    Join Date
    Jun 2010
    Location
    Irvine, CA
    Posts
    345

    Default Re: Bounce Handler reads bounced mail but doesn't process it.

    Yea, I've been developing code that's essentially along the same line as yours. One major problem is that, although such occurrences are rare, emails do bounce for more reasons than just invalid emails, so there's a possibility that when this occurs you're going to invalidate someone who's valid. That's the only thing that I haven't been able to work around.

    Anyway, thanks for the reply.
    Robert Beckman
    Software Engineer
    Mirth Corporation

  7. #7
    jstolle is offline Member
    Join Date
    Aug 2010
    Posts
    12

    Default Re: Bounce Handler reads bounced mail but doesn't process it.

    Quote Originally Posted by robertbmirth View Post
    ...although such occurrences are rare, emails do bounce for more reasons than just invalid emails, so there's a possibility that when this occurs you're going to invalidate someone who's valid.
    I've replied to you here: http://www.sugarcrm.com/forums/showt...008#post226008

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Job to process bounced messages never finish
    By ericchaves in forum Help
    Replies: 2
    Last Post: 2009-12-24, 03:35 PM
  2. Replies: 2
    Last Post: 2009-09-30, 12:03 PM
  3. Replies: 2
    Last Post: 2009-09-18, 10:43 PM
  4. Problems with e-mail bounce handling
    By imn in forum Developer Help
    Replies: 0
    Last Post: 2009-06-17, 06:40 AM
  5. Bounced Mail Handling
    By keats76 in forum Developer Help
    Replies: 6
    Last Post: 2009-03-09, 08:16 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •