Overview
After a monitor or trigger runs the Notification: Email a team action, the other members of that team may suddenly appear in the CC field of the conversation's reply box. At the same time, a new message appears inside the conversation shortly after the automation runs. It usually carries the subject of the notification email (for example, SLA Breached - …).
The Email a team action does not add anyone to CC. It only sends an email to every member of the selected team. The CC entries appear because that notification email is delivered back into Kayako and added to the conversation as a new message. This is caused by the email configuration, not by a product defect. You can resolve it by changing your settings.
The loop happens when all of the following are true:
- A member of the notified team is an agent whose email address is also one of your support email addresses in Kayako (often an integration or "api" agent account).
- The mailbox for that address forwards incoming mail to Kayako.
- Your Email safelist includes the support email address Kayako sends the notification from, usually because it contains your whole email domain. The spam filter then does not suspend the returned email.
Solution
Why the team members end up in CC
- The Email a team action sends one email addressed to every enabled member of the team.
- One of those recipients is an agent whose address is also a Kayako support email address. Its mailbox forwards everything it receives to Kayako.
- Kayako receives its own notification back, matches it to the original conversation, and adds it as a new message.
- Whenever an email is added to a conversation, Kayako makes every address the email was sent to a participant of that conversation, except your own support email addresses. The CC field in the reply box is filled from these participants, so the rest of the team now appears in CC.
Normally, the spam filter suspends an email like this. It comes from one of your own support email addresses (suspension reason SOURCE_IS_MAILBOX) and is marked as automatically generated (AUTOMATED_EMAIL). Email from a safelisted sender skips all of the spam filter's checks, including loop detection. The returned notification is sent from your own support email address, so if the safelist contains your whole domain, it is accepted and added to the conversation.
Side effects of the loop
- Requesters can receive internal notifications. If the returned email's sender is the agent account, Kayako treats it as that agent replying by email and sends it on to the conversation's requester. That email contains your internal notification text and the link to the conversation in the agent area.
- Public replies are copied to the team. While the CC field stays filled, public replies on the affected conversations also go to those team members, and your customers can see their addresses.
- Conversations start replying from the looping address. Each returned email makes that address the conversation's latest email address. Kayako then selects it by default in the reply box and uses it as the sender of automated emails on that conversation (see Step 3).
Step 1: Stop the loop
The loop happens whenever Kayako sends an email to the looping address, so the fix is to stop those emails from coming back into Kayako. You need an administrator account. Choose one of these options:
Option A: Turn off the forwarding on that mailbox
- In your email provider (for example, Microsoft 365), turn off the rule that forwards the agent mailbox to Kayako.
- This stops every Kayako email sent to that address from coming back, not only the team notifications.
- Before you do this: any email your customers send to that address will no longer reach Kayako. Use this option only if that address is not used for genuine incoming customer email. Otherwise, use Option B or C. After turning off the forwarding, complete Step 3.
Option B: Remove the agent from the notified teams
- In the admin area, go to Team settings > Teams and open the team that the Email a team action notifies.
- Under Team members, hover over the agent and click Remove.
- Click Save. Repeat for every team your Email a team actions use.
Note: Before removing the agent, confirm that no integration relies on that account being a team member. This option only covers team notifications. Other Kayako emails sent to that agent, such as an Email a user notification to the assignee, still come back the same way.
Option C: Change the agent's email address
- Change the agent's email address to one that is not a Kayako support email address and does not forward to Kayako.
- If an integration signs in with that email address, update it there too.
Optional safeguard: Narrow your Email safelist
- In the admin area, under Security, click User registration.
- In the Email safelist box, replace the entry for your whole domain with only the specific addresses that need to bypass the spam filter.
- Click Save.
The spam filter can then suspend returned notifications like these instead of adding them to conversations. Email from any address at your domain that you leave out of the safelist will go through the normal spam checks.
Step 2: Remove the CC entries that were already added
Stopping the loop prevents new CC entries, but it does not remove the existing ones. Remove them in either of these ways:
- In the conversation: in the reply box, click the × next to each address you want to remove from the CC field, then send your reply. Kayako updates the conversation's CC list to match what you sent, so those addresses are not filled in again on later replies.
-
Through the API, without sending a reply (useful for completed conversations):
DELETE https://your_subdomain.kayako.com/api/v1/cases/<conversation_id>/participants.json?user_ids=<id1>,<id2>Replace
<conversation_id>with the affected conversation and theuser_idsvalues with the user IDs of the people to remove. To keep someone in CC, leave their ID out of the call. Make the call with an agent account; only users who are currently participants of that conversation are removed.
Step 3: Fix conversations that reply from the looping address
Each returned email made the looping address the conversation's latest email address, so the reply box and automated emails on those conversations default to it. This is especially important if you turned off the forwarding (Option A), because any customer reply sent to that address no longer reaches Kayako. Fix it in either of these ways:
Option 1: Disable the address in Kayako (fixes all affected conversations at once)
- In the admin area, under Channels, click Email.
- Hover over the looping address and click Disable.
Kayako no longer offers that address in the reply box, so the affected conversations use your default support email address. Automated emails switch to the address the conversation was originally created through, or another enabled support email address for the conversation's brand. The address stays in Kayako. If you ever turn the forwarding back on, enable the address again at the same time. Before disabling it, check whether any trigger conditions refer to that address.
Option 2: Switch the address when you reply
- At the top of the reply box, next to Notes, click the email address.
- Choose the correct support email address and send your reply.
After one reply from the correct address, the conversation uses it by default for later replies and automated emails.
If you turned off the forwarding, also check the agent's mailbox directly. Any email that arrived there after the forwarding was turned off did not reach Kayako.
Example
An integration agent account uses api@example.com, which is also added as a support email address in Kayako. Its mailbox forwards all mail to support@example.kayako.com, and the Email safelist contains example.com. An SLA monitor uses Email a team to alert the Technical team, which includes the integration agent. Shortly after the monitor runs, a message titled SLA Breached - … appears in the conversation, and the other Technical team members are now listed in the CC field.
Verification
- After you make your change, wait for the automation's next run. Monitors run about once an hour.
- The team members should still receive the notification email, but no new message should appear inside the conversation and no one should be added to CC.
- Confirm that your other support email addresses still receive email normally.
Additional Notes
- The loop is not limited to the Email a team action. Any Kayako email sent to an address that forwards back into Kayako can return the same way, including Email a user notifications and other agent notifications.
- If the conversation is Closed, or the returned email arrives through a support email address that belongs to a different brand, Kayako creates a new conversation from the returned notification instead of adding it to the existing one.
- To check whether you are affected, look for an agent whose email address also appears in Admin > Channels > Email, and check whether that mailbox forwards to Kayako.
- Changing team membership, email channels, and the Email safelist requires an administrator account with the relevant permissions. The API cleanup requires working knowledge of the Kayako API.
Go to Kayako Classic
Syed Haider
Comments