Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Email Filters in ServiceNow: How to Set Them Up

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

You set up email filters in ServiceNow to control which incoming emails create or update records: an inbound email filter decides whether a message becomes an incident, a case, or another record, and whether it is rejected outright. The shortest working setup is to open the inbound email filter list, create a filter with a name, a target table, a condition that matches the sender or subject, and a matching order, then attach at least one inbound email action so the message does something when it matches. You need the admin role (or a role that includes email filter administration) and an existing inbound email account or mailbox that ServiceNow already polls.

What You'll Need

  • An account with admin rights, or a delegated role that lets you manage inbound email filters and actions.
  • An inbound email account already configured and receiving mail (the filter only decides what happens to messages that arrive).
  • The exact sender addresses, domains, or subject keywords you want to match.
  • At least one inbound email action prepared (for example, create an incident or reply with a template) so matched mail has somewhere to go.
  • A test mailbox you can send from, so you can verify the filter without disturbing real users.

Step-by-Step

  1. Log in to ServiceNow and open the inbound email filter list. The usual path is All > System Policy > Email > Inbound > Filters. Menu labels can differ slightly by version, so if you do not see it, use the application navigator's filter box and type "inbound email filter".
  2. Click New to open a blank filter record.
  3. Give the filter a clear Name that says what it does, such as "Vendor invoices to AP case" or "Block auto-replies". Future you will thank you when the list has twenty entries.
  4. Choose the Target table the filter should act on, for example Incident, Case, or a custom table. The table must be one that supports inbound email processing.
  5. Set the Type (for example, whether the filter is for incoming mail, and whether it is a forwarding or matching rule). If you are unsure which type applies, check the field help text on the form rather than guessing.
  6. Build the Condition that decides which messages match. Typical conditions use fields such as From, To, Subject, or Body. Keep conditions as tight as possible: a filter that matches every message will swallow mail meant for other filters.
  7. Set the Order value. Filters are evaluated in order, and the first matching filter generally wins, so a low number runs earlier. Put specific filters (a single sender) before broad ones (an entire domain).
  8. Choose whether the filter should stop processing further filters when it matches, or let evaluation continue. If you want one message to trigger several actions, allow processing to continue; if you want a hard stop, enable the stop option.
  9. Save the filter. Then open the related Inbound Email Actions list and attach or create the action that should run when this filter matches, such as creating a record or sending an auto-reply.
  10. Test it. Send a message from your test mailbox that satisfies the condition, then check the target table for the new record and check the inbound email log for the processed message. If nothing appears, the filter did not match or the action is missing.
  11. Once the test passes, enable the filter for production use and monitor the log for the first day or two to confirm real mail is landing where you expect.

Common Mistakes

  • Forgetting the action. A filter with no inbound email action matches mail and then does nothing visible, which looks like the filter is broken.
  • Order collisions. A broad catch-all filter with a low order number can intercept messages before your specific filter ever runs. Review the order column whenever a new filter behaves oddly.
  • Overly loose conditions. Matching on a single word in the subject catches replies, newsletters, and out-of-office messages. Combine sender and subject conditions where possible.
  • Testing with a real user mailbox. Always test from a mailbox you control so you do not create stray records or auto-replies to customers.
  • Assuming the filter applies to outbound mail. Inbound filters only affect messages arriving at the instance; outbound notifications are handled elsewhere.

Tips

  • Name filters with the sender or purpose first, so the list sorts sensibly and is easy to scan.
  • Keep a short description on each filter explaining why it exists and who owns it. This saves hours when someone leaves the team.
  • Use the inbound email log to confirm exactly which filter matched a message; it shows the processing trail and is the fastest diagnostic tool.
  • Before deleting an old filter, disable it first and watch the log for a few days to confirm nothing depended on it.
  • If you need to block a sender entirely, use a filter that rejects or ignores the message rather than one that creates a record you then have to close.

Troubleshooting

If a message does not create the record you expected, work through these checks in order. First, confirm the inbound email account is still receiving mail at all: send a test message and look for it in the inbound email log. If the account is not polling, no filter will ever run. Second, open the log entry for your test message and check which filter, if any, matched. If no filter matched, compare the condition fields against the actual message headers; a display name in the From field, for example, can prevent a plain address match. Third, confirm the inbound email action exists and is active, and that its target table matches the filter's target table. Fourth, check the order values: a higher-priority filter may be stopping processing before yours is reached. Fifth, verify your user has the rights to create records in the target table, since a permission failure can silently drop the action. If none of that resolves it, disable your new filter, confirm the original behaviour returns, and re-enable it one setting at a time to isolate the cause. Avoid deleting filters or accounts as a first step; disabling is reversible, deleting is not.

Frequently Asked Questions

Do email filters work on outbound email too?

No. Inbound email filters apply to messages arriving at the instance. Outbound notifications and replies are controlled by separate notification and template settings.

What happens if two filters match the same message?

Filters are evaluated in order. Depending on the stop-processing setting, the first match may end evaluation, or processing may continue to later filters. Check the order values and the stop option on each record.

Can I test a filter without affecting real users?

Yes. Send from a test mailbox you control and check the inbound email log and the target table. Disable the filter until the test passes if you are worried about live mail.

Why did my filter match but no record appear?

The most common cause is a missing or inactive inbound email action, or a permission problem on the target table. Check the log for the processing result.

Do I need admin rights to create a filter?

Usually yes, or a delegated role that includes email filter administration. If the menu is missing, ask your administrator to confirm your roles.

Can I block a sender completely?

Yes. Create a filter that matches the sender and rejects or ignores the message, rather than one that creates a record. Test it first so you do not block a legitimate address.