Kayako logo
Technical Chat From server configurations to local area networking - the technical discussion forum.

Kayako develops robust helpdesk software, live chat and real-time visitor monitoring software.
Kayako is trusted by more than 30,000 organizations, including a number of Fortune 500 companies and government institutions.
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#1) Old
escire Offline
New Member
 
Posts: 15
Join Date: Apr 2008
Strange email routing problem - 08-12-2008, 05:44 PM

We are running into an issue with the helpdesk and are stumped, and Kayako support appears to be stumped, and I'm hoping this might ring bells with someone...

We have an email that generated by some code internally, using a standard solaris 9 email server and commands. The help desk sees this email, but does not know how to route it ('No recipients found' in the email parser log). All other emails to the same email address are routed correctly, it just these ones we generate that are not correctly routed. The email queue name matches the email address in the To: field and I have tried many many regular expressions in the catch-all rules (I have verified that preg_match on the machine works, and that the regular expressions do correctly match with our helpdesk email address, and tried all the regular expressions that kayako suggested to no avail). I have verified that the catch all rules are working.

This is a sample of the email that is not correctly routed (the names have been changed to protect the innocent...)

Code:
From help@blah.com  Mon Dec  8 08:38:56 2008
Return-Path: <help@blah.com>
Received: from rain.blah.com (mail0.blah.com [XXX.XXX.XXX.XXX])
    by localhost.localdomain (8.13.8/8.13.8) with ESMTP id mB8Gcu8N028363
    for <sohelp@sohelp2.blah.com>; Mon, 8 Dec 2008 08:38:56 -0800
Received: from rain.blah.com (localhost [XXX.XXX.XXX.XXX])
    by rain.blah.com (8.13.4/8.13.4) with ESMTP id mB8Gcs3G001318
    for <help@blah.com>; Mon, 8 Dec 2008 08:38:54 -0800 (PST)
Received: (from defang@localhost)
    by rain.blah.com (8.13.4/8.13.4) id mB8Gcr7D001314
    for <help@blah.com>; Mon, 8 Dec 2008 08:38:53 -0800 (PST)
Received: from somailsrv.blah.com ([XXX.XXX.XXX.XXX])
    by rain (envelope-sender <help@blah.com>) (MIMEDefang) with ESMTP id mB8GcqeC001311; Mon, 08 Dec 2008 08:38:53 -0800 (PST)
Received: from stargate-smtp (localhost [XXX.XXX.XXX.XXX])
    by stargate-relay (8.12.10/8.12.5) with ESMTP id mB8GcVTG025663;
    Mon, 8 Dec 2008 08:38:31 -0800 (PST)
Received: from stargate-smtp (localhost [XXX.XXX.XXX.XXX])
    by stargate-client (8.13.7+Sun/8.12.5) with ESMTP id mB8GcV4B029182;
    Mon, 8 Dec 2008 08:38:31 -0800 (PST)
Date: Mon, 8 Dec 2008 08:38:31 -0800 (PST)
Message-ID: <18016780.1228754311392.JavaMail.root@localhost>
From: Our Help Desk <help@blah.com>
To: XXX XXX <blah@blah.com>
To: XXX XXX <help@blah.com>
Subject: Subject 
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Text of email
Any ideas?

Thanks in advance,
Elena
   
Reply With Quote
  (#2) Old
escire Offline
New Member
 
Posts: 15
Join Date: Apr 2008
15-12-2008, 09:24 PM

In case anyone else ever runs into this, it turns out the Kayako helpdesk is very unhappy with two To: fields, as this is not a normal email header configuration. Changing our software to generate emails with To: blah@blah.com, help@blah.com fixed the issue.
   
Reply With Quote
  (#3) Old
John Haugeland Offline
Member
 
Posts: 1,223
Join Date: Dec 2007
Location: Boise, Idaho
15-12-2008, 09:31 PM

Two to: fields are illegal under the email RFC. Do you happen to know what application sent this mail?


John used to be a Kayako developer
   
Reply With Quote
  (#4) Old
escire Offline
New Member
 
Posts: 15
Join Date: Apr 2008
16-12-2008, 05:51 PM

To quote one of our developers:

Quote:
We are using java mail API to create email. MimeMessage allows to either add a single recipient with TO, CC, or BCC designator or multiple recipients with the same designators.

Initially, we called addRecipient method for each email in the "To" list, which created "To" header for each call. (Which is by the way allowed by RFC 822 - email standard.)

Since the new helpdesk does not support multiple To fields, we replaced multiple addRecipient methods with a single addRecipients, which accepts multiple addresses. This method creates single "To" header with comma separated addresses.
   
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Email Routing? ca99uk How do I? 1 30-10-2008 02:42 PM
Strange problems with email parser "cron" task billiton SupportSuite, eSupport and LiveResponse 2 30-10-2008 01:06 PM
Outgoing Email Parser Problem - takes 1 hour or more to fetch email forax SupportSuite, eSupport and LiveResponse 5 13-02-2007 09:29 AM
Solving problem: eSupport sends emails to staff addres instead of Email Queue address tonila Developers & Code 0 16-05-2006 12:03 PM



Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78