Ready to schedule a demo or start your free trial?Get Started Today

Salesforce Email-to-Case: How to Set It Up and Route Cases

Back to articles

Salesforce Ops

Connect your support inbox to Salesforce, keep replies on the same case, and assign incoming work to the right agent.

Kubaru TeamMax 13 min read
Businessperson operating a railway switch to route a cart carrying an envelope marked with the Salesforce Case icon.
Contents

Quick Summary

Salesforce Email-to-Case turns emails sent to your support address into cases. To set it up, turn on On-Demand Email-to-Case in Setup and add a routing address for each inbox.

Verify each routing address, then forward the inbox to the email services address. Turn on Lightning threading so replies attach to the original case.

Check the Send Email quick action is on the case page so agents can reply from the case. Send a test email, then set up case assignment so every new case gets an owner.

The daily cap is 1,000 emails per user license, up to 1,000,000, shared across all email services. Each email must stay under 25 MB.

Creating the Case Is the Easy Part

Email-to-Case can turn up to 1,000 emails per user license into Salesforce cases every day. But who works those cases once they exist? That comes down to one field you’ll fill in during setup without a second thought.

If your routing address names a Case Owner, Salesforce skips your case assignment rules. A case sent to a queue waits there until someone claims it.

So how do you set up the inbox properly, and who should get each case once it’s there?

Why Listen to Us?

Kubaru is a native Salesforce routing app, rated 5.0/5 from 153 reviews on the AppExchange. Exclaimer, for example, routes its cases, opportunities and tasks with Kubaru and automatically reassigns unworked cases.

We added SLA management after watching customers hit the limits of Salesforce’s native escalation tools. That experience shapes the case routing half of this guide.

Kubaru customer results panel featuring Ooma, Conga, Exclaimer and The Loan Store with response and assignment outcomes.

What Is Salesforce Email-to-Case?

Salesforce Email-to-Case creates a case for each new customer email and saves the email on that case as an email record. Replies attach to the same case through threading.

It comes in two versions, On-Demand Email-to-Case and the Email-to-Case Agent. Email-to-Case is available in Essentials, Starter, Professional, Enterprise, Performance, Unlimited, and Developer editions.

On-Demand Email-to-Case

Salesforce hosts it. Your mail system forwards each support email to an address Salesforce generates, and Salesforce creates the case from there. You install nothing on your own servers.

The Email-to-Case Agent

The Email-to-Case Agent was software you installed on your own server. Salesforce has ended support for it and no longer offers it for new installations.

If you still run it, plan your move to On-Demand. Every step below sets up On-Demand.

How to Set Up Salesforce Email-to-Case

1. Turn on Email-to-Case and On-Demand Service

If you set up Email-to-Case in Salesforce Go, some of these settings may already be configured.

  • Start in Support Settings, because Email-to-Case needs two settings in place first. You’ll need the Customize Application permission to change them.
  • Set a Default Case Owner, the user or queue that receives cases no assignment rule matches. Then set an Automated Case User, the user whose name appears in Case History for automated actions.
  • Next, go to Setup, open Email-to-Case, and click Edit. Select Enable Email-to-Case and save, then select Enable On-Demand Service and save again.
  • You can’t turn Email-to-Case off once it’s on.

2. Create a Routing Address for Each Support Inbox

A routing address tells Salesforce what to do with email sent to a support address. Create one per inbox, like support@ and billing@, so each inbox’s cases start with the right details.

  • From the Email-to-Case page, add a new routing address and fill in these fields:
    • Email Address is the support address customers write to, and each must be unique.
    • Accept Email From limits who can email this address. Leave it blank to accept email from anyone.
    • Case Owner overrides the Default Case Owner. Leave it blank if you want assignment rules to run. Fill it in and they’re skipped.
    • Case Priority, Case Origin, and Case Record Type set the defaults for every case from this inbox. The Automated Case User needs access to the record type, or cases may get unexpected values.
    • Create Task from Email creates a task when an email becomes a case. Salesforce assigns it to the Automated Case User.
  • Save it, and Salesforce sends a verification email to that address. Click the link inside, or click Verify in Setup.
  • Only the person who saved the routing address can finish verification, so on a shared inbox that person has to open the email. Until it’s verified, the address can’t send email, and its settings won’t apply to new cases.

3. Forward Your Inbox to Salesforce

Salesforce now shows a long email services address next to your routing address. Your mail system needs to send a copy of every support email there.

  • In Gmail, open Settings, then Forwarding and POP/IMAP, and add the services address as a forwarding address. Gmail’s confirmation email to that address arrives in Salesforce as a new case.
  • Copy the code from that case’s Description and paste it into Gmail, then click Verify. Then set Gmail to forward a copy of incoming mail and keep Gmail’s copy in the inbox. Under IMAP Access, make sure Enable IMAP is selected, then save. Outlook and Microsoft 365 setups are in the FAQs below.

4. Turn on Lightning Threading so Replies Stay on One Case

Threading is what attaches a customer’s reply to the case it belongs to. Without it, each reply opens a new case, and your agents end up piecing one conversation together across several records.

Lightning threading adds a short token to your outgoing emails. When a reply comes back, Salesforce looks for that token first. If it’s missing, Salesforce checks the In-Reply-To and References headers, then Outlook’s Thread-Index header.

Lightning threading is on by default in orgs created in Spring ’23 or later. Orgs created from Winter ’21 through Winter ’23 got header-based threading automatically.

Ref ID, the oldest format, is now in maintenance-only mode. To see which one your org uses, open the Email-to-Case page in Setup.

To switch, enable the Disable Ref ID and Switch to Lightning Threading release update.

Then, in Email-to-Case settings, turn on Use email headers for threading and at least one threading token setting, Insert email threading token in email subject or Insert email threading token in email body.

Then update your templates by removing {{{Case.Thread_Id}}}, which doesn’t work with Lightning threading. If you leave the token settings off, replace it with {{{Case.Thread_Token}}}.

5. Check the Send Email Quick Action Is on the Case Page

Enabling Email-to-Case creates a Send Email quick action, which agents use to reply. Check that it’s on your case page layout, next to the email related list, so agents can see the whole thread.

If agents should always reply from one support address, set it as the predefined From value on the Send Email quick action, under Predefined Field Values. That value applies to every case that uses the action.

To reply from billing@ on billing cases, a developer can set that with a QuickActionDefaultsHandler Apex class.

6. Send a Test Email and Check the Case

Send an email from an outside account to your support address. You should see a new case with the email on it, carrying the priority and origin you set on the routing address.

If no case appears, send an email straight to the email services address. A case there points to the forwarding rule.

No case there means checking that the routing address is verified and the Automated Case User has access to the record type.

Once a case appears, check two things. The case should link to the sender’s contact, as long as their address is on only one contact.

The owner should be the routing address’s Case Owner if you set one. If you left it blank, the owner shows whether an assignment rule matched, and the Default Case Owner means none did.

Then reply from the case and answer from the outside account. The answer should join the same case.

Email-to-Case Limits to Know Before You Go Live

Test volumes rarely hit Salesforce’s Email-to-Case limits. Launch volumes can.

LimitWhat Salesforce Enforces
Emails processed per day1,000 per user license, up to 1,000,000, shared across all email services
Emails per case250 per case per day, on a rolling 24 hours
Inbound email sizeUnder 25 MB for the whole email, attachments included
Email bodyTruncated in the email record after 131,072 characters
Email headersTruncated in the email record after 32,000 characters

For example, an org with 40 user licenses can process 40,000 emails a day. Go over it, and the Over Email Rate Limit Action setting decides what happens to the extra email.

Each case has its own limit too. Emails past 250 on one case in 24 hours fail, with an exception notification to the Automated Case User, and Salesforce Customer Support can raise the limit on request.

Attachments

Attachments count toward the 25 MB limit. Encoding can inflate the total email size by up to 33%, so at the full 33% a 20 MB file becomes about 26.6 MB and pushes the email over.

Salesforce’s email server rejects anything above 35 MB with a bounce, sent to the sender or the routing address depending on how you forward the email.

No case is created from an email that exceeds the size limit. Salesforce doesn’t say what happens between 25 and 35 MB, so treat 25 MB as your working limit.

Contact Matching

Salesforce links a case to a contact by matching the sender’s From address against the email fields on your contacts. If no contact matches, Salesforce fills in Web Email and Web Name.

If the sender’s address is on more than one contact, Contact and Account stay blank, so keep each address on one contact.

Duplicate Cases

The same email reaching Salesforce more than once creates duplicate cases. A customer who copies two of your routing addresses creates two cases, and replies thread only to the one with the most recent activity.

Aliases that map to the same service address create duplicates too.

When a customer writes to the alias and the main address, your email system forwards multiple copies, and each becomes a case. Point customers to one routing address and avoid those aliases.

Then there are loops, where automated email keeps landing on a routing address and each message creates a case.

A loop tends to start with an out-of-office reply to a routing address, or an auto-response rule that uses a routing address as its Reply To or Sender’s Email address.

A case owner whose email is also a routing address can start one too. So can workflow rules or email alerts that send mail to a routing address.

Don’t reuse a routing address in any of those setups, and you avoid the triggers Salesforce lists.

As a backstop, Salesforce’s loop protection temporarily stops case creation when more than 15 emails with the same subject, sender, and body arrive within 60 seconds. Slightly more than 15 cases can still slip through.

What Happens Once the Case Lands in the Queue

Email-to-Case ends when the case exists. Salesforce gives you three native tools to route it, and each one hits a different limit.

Case Assignment Rules

Assignment rules send each new case to a user or queue based on criteria you set, like priority or origin.

Salesforce checks the entries in order and uses the first match. Our guide to Salesforce assignment rules walks through the setup.

Each entry sends matching cases to a single user or queue, and the rule has no availability check. You also get one active case assignment rule, with up to 3,000 entries.

Queues

A queue is a shared holding area where records wait until a member, or someone above them in the role hierarchy, takes ownership.

Without Omni-Channel, agents pick their own work, so nobody gets handed a case and agents can cherry-pick the easy ones. Our post on Salesforce queues covers that in more detail.

Case escalation rules are the native backstop for cases that sit too long. They reassign a case or send an email after a time limit you set, and you get only one active escalation rule at a time.

Omni-Channel

Omni-Channel pushes work from queues to the most available and qualified agent, based on capacity and, if you set it up, skills.

It has limits too. It needs an Agentforce Service (formerly Service Cloud) license or an eligible add-on. Queue-based routing picks the agent by capacity.

Most Available favors the agent with the most open capacity, and Least Active the one with the least open work. Matching on skills takes a separate skills-based routing setup.

Once a case is routed, changing its fields doesn’t trigger routing again. Our Omni-Channel guide covers the setup and the gaps in more depth.

How Kubaru Assigns Email Cases

Kubaru is a native Salesforce app that assigns cases and other records by skills and availability. Business users manage the assignment logic themselves, so changes don’t wait on an admin.

Kubaru starts where Email-to-Case leaves off, with the queue. Set your routing address’s Case Owner to a queue, like Support Inbox, and connect that queue to a Kubaru router. The router then assigns each new email case using four settings.

  • Skills: Match cases to agents by language or product knowledge, and mark each skill required or optional. When several agents qualify, round robin or load balancing breaks the tie.
  • Availability: Pause assignments outside working hours and while an agent is out of office, using schedules.
  • Workload: Cap how many open cases each agent can hold, based on the case statuses you count as active.
  • SLA: Reassign any case nobody has worked within a set time. The clock pauses outside business hours and on holidays. A reassigned case skips the person who just had it.

Our skill-based routing guide explains how skills work in Kubaru. Every assignment is logged in our assignment logs, and a Decision Path shows why each router did or didn’t assign the case.

For strict response targets, SLA management also runs timers on any record, including leads and opportunities, and can update fields or send alerts as a deadline nears.

Kubaru Pricing

Kubaru costs $20 per user per month, with every feature included. Licenses cover only users who administer Kubaru or receive assignments, and the 30-day trial needs no credit card.

FAQs

What is the architecture of Email-to-Case in Salesforce?

Your mail system forwards each email to a Salesforce email services address. The routing address applies its defaults, and Salesforce creates the case and saves the email on it.

Threading attaches replies to that case. An Omni-Channel flow can pick the owner, and Salesforce says to avoid other case assignment rules alongside it. Our Omni-Channel guide covers the flow.

How do I populate fields on an Email-to-Case case?

Set Case Priority, Case Origin and Case Record Type on the routing address. Those apply to every case that inbox creates.

To update a field after the email arrives, Salesforce’s example is a record-triggered flow on EmailMessage that updates Case Status through ParentId.

How do I set up Email-to-Case with Outlook?

For Microsoft 365, have your admin create a contact for the services address in the Exchange Admin Center. Then set up full inbox forwarding or a mail flow rule that redirects to it.

If Microsoft’s outbound spam policy blocks external forwarding, your admin may need to allow it. The last answer covers the error.

Can you increase the Email-to-Case daily limit?

The limit is 1,000 emails a day per user license, up to 1,000,000, shared across all email services, so adding licenses raises it.

For overflow, set the Over Email Rate Limit Action to Requeue. Salesforce holds the email for up to 24 hours, then returns it to the sender if it’s still unprocessed.

Why isn’t Email-to-Case working in Salesforce?

Start with verification, since an unverified routing address won’t apply its settings or send email. Then check that forwarding isn’t blocked, which Microsoft 365 reports as a 5.7.520 error.

A test email straight to the services address, as in Step 6, shows whether forwarding is the problem.

Then check the Accept Email From list and loop protection. If cases skip your assignment rules, check the routing address’s Case Owner field, which turns the rules off. Our case assignment page covers routing from there.