Email Channel Recipient Issue

Infos:

Important:
If you are a Zammad Support or hosted customer and experience a technical issue, please refer to: support@zammad.com using your zammad-hostname / or company contract.

  • Used Zammad version: 2.6.0
  • Used Zammad installation source: (source, package, …) Package
  • Operating system: RHEL 7.5
  • Browser + version: Chrome 69

Expected behavior:

  • When a ticket is received via email from a customer, the agent clicks on reply to send an email back and the “To” field is automatically populated with the customers email address. This presently works as it should on 4 out of 5 email streams that we have coming into Zammad.

Actual behavior:

  • On one of our email channels, when replying to the customers email, it auto populates the “To” field with the email address of the helpdesk. So for example a customer (customer@email.com) raises a ticket via email by sending an email to the helpdesk (helpdesk@email.com). The ticket arrives and an agent clicks reply, the reply section comes up and in the “To” field the address you are replying to is helpdesk@email.com instead of the expected customer@email.com.

This issue only occurs on one of our email channels. This behaviour does not happen on the other four that we are running. The only difference between this email channel and the others is that the address that customers use is an alias within Exchange. But this shouldn’t have any bearing on Zammad as the routing is done before it hits the helpdesk surely?

Steps to reproduce the behavior:

  • Reply to an emailed ticket by clicking reply.

Can you please supply headers (RAW from the article causing the problem) of the E-Mail?
Otherwise it’s hard to reproduce this problem and actually help you. :slight_smile:

Of course you can remove names, servernames, ip and stuff.

Of course, here are the sanitized headers from a ticket downloaded from the helpdesk in raw format

Received: from LCMEXC02.domain.com (xx.xx.xx.xx) by LCMEXC01.domain.com
 (xx.xx.xx.xx) with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1531.3 via Mailbox
 Transport; Thu, 20 Sep 2018 10:51:10 +0100
Received: from LCMEXC01.domain.com (xx.xx.xx.xx) by LCMEXC02.domain.com
 (xx.xx.xx.xx) with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1531.3; Thu, 20
 Sep 2018 10:51:10 +0100
Received: from LCMEXC01.domain.com ([fe80::e583:6e52:facd:b822]) by
 LCMEXC01.domain.com ([fe80::e583:6e52:facd:b822%14]) with mapi id
 15.01.1531.003; Thu, 20 Sep 2018 10:51:10 +0100
From: "Customer, A" <customer@email.com>
To: The Helpdesk <helpdesk@email.com>
Subject: Test Ticket
Thread-Topic: Test Ticket
Thread-Index: AdRQx3JZSkrQfsIwRy6KhFW6jvU9Wg==
Date: Thu, 20 Sep 2018 10:51:10 +0100
Message-ID: <05bacdb970bf49f4883dda17c505767d@domain.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Exchange-Organization-AuthAs: Internal
X-MS-Exchange-Organization-AuthMechanism: 04
X-MS-Exchange-Organization-AuthSource: LCMEXC01.domain.com
X-MS-Exchange-Organization-ComplianceLabelId:
	1c706dee-416f-447d-bef6-c59436bd23bb
X-MS-Has-Attach: yes
X-MS-Exchange-Organization-Network-Message-Id:
	015ecb6e-9c4f-4845-3734-08d61ede9803
X-MS-Exchange-Organization-SCL: -1
X-MS-TNEF-Correlator:
X-MS-Exchange-Organization-RecordReviewCfmType: 0
Content-Type: multipart/related;
	boundary="_002_05bacdb970bf49f4883dda17c505767domaincom_"; type="text/html"
MIME-Version: 1.0

The above is inbound email received to the helpdesk. Below is the headers for the outbound reply from the helpdesk. It didn’t reply to me, it replied to the helpdesk email address as I mentioned. The odd thing about this is is because it does that then it creates an additional update on the ticket as if an existing agent has updated it. But they haven’t. (see illustration)

Date: Thu, 20 Sep 2018 11:24:38 +0100
From: Zammad Admin via LCoM VLE/SPACE Support <helpdesk-email@domain.com>
To: helpdesk@domain.com
Message-ID: <20180920102430.1492.83658@domain.com>
In-Reply-To: <05bacdb970bf49f4883dda17c505767d@domain.com>
References: <05bacdb970bf49f4883dda17c505767d@domain.com>
 <05bacdb970bf49f4883dda17c505767d@domain.com>
Subject: RE: [Ticket#461491] Test Ticket
Mime-Version: 1.0
Content-Type: multipart/mixed;
 boundary="--==_mimepart_5ba37566f7c2_2d672ad1072cf454282441";
 charset=UTF-8
Content-Transfer-Encoding: 7bit
Organization: Our Organization
X-Powered-By: Zammad - Helpdesk/Support (https://zammad.org/)
X-Mailer: Zammad Mail Service


----==_mimepart_5ba37566f7c2_2d672ad1072cf454282441
Content-Type: multipart/alternative;
 boundary="--==_mimepart_5ba37566f201_2d672ad1072cf4542822fe";
 charset=UTF-8
Content-Transfer-Encoding: 7bit


----==_mimepart_5ba37566f201_2d672ad1072cf4542822fe
Content-Type: text/plain;
 charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Above is the reply I sent from ZA (Zammad Admin) and the reply then generated an update to the ticket in the system from SL (one of our agents)

Its very odd…

Very odd - did Zammad recognize the correct customer within the affected tickets?
The headers look totally fine to me :frowning:

Yes the customer information and the “from” email address in the ticket raised look fine. It’s just when you hit reply it changes the recipient from the customer to the helpdesk email address.

Could it be a caching issue perhaps? Is there a way to reset any caches that Zammad has to clear out any potential weirdness?

Yes there is:

rails r 'Cache.clear' "

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.