How Zammad email filters route incoming mail
Zammad email filters decide where an incoming message goes before an agent sees it. They match mail on sender, recipient, subject and headers, then apply actions such as setting the group, owner, priority and state of the resulting ticket. A shared support inbox that sends every message to one queue forces agents to sort mail by hand, and filters move that sorting into the channel itself. The first decision is which categories of mail should be routed automatically and which should still reach a person for triage.
Teams that need filters are usually those whose mail reaches several departments through different addresses, such as billing, technical support and sales, or those that receive automated mail from monitoring tools, vendors and billing systems. Filters are also the place to suppress auto-replies from robots: matching the sender address or the relevant headers of automated mail keeps it from creating tickets or triggering replies that loop back into the helpdesk. Use triggers instead when the rule depends on ticket changes, such as a status update, an elapsed time or a customer action, because triggers run on ticket events while filters run when mail arrives.
Treat every configuration point in this section as something to confirm against the Zammad version you run. Check the menu path in the admin interface, the exact header names and match operators offered, the set of available actions, the order in which multiple filters run, and whether a filter change applies to mail already waiting in a queue. Test with sample messages from each sender and recipient before go-live, record which filter fired for each one, and keep a test group so that trial tickets do not reach agents' working queues.
Which email fields a filter can match
A Zammad email filter is only as reliable as the fields it reads. Each field below answers a different question about who sent a message, who it was addressed to, and how it was delivered, and each one fails in its own way. Confirm the exact field list and operators in the admin documentation for your Zammad version before you build rules on them.
From address for sender matching
The From field identifies the sender and is the most common condition for routing a mailbox's traffic, such as sending all mail from a billing vendor to a finance group. Match on the full address or on a domain when the whole sender domain is trusted. Be careful with display names: a person can set any name, so a rule that matches a name in the From line can be spoofed. Check which part of the header your version compares and test with a real sample from each sender.
To and Cc for mailbox routing
The To and Cc fields show which addresses the message was sent to, which is useful when one mailbox receives several support aliases, such as billing@ and technical@. Mail that reaches the helpdesk through a forwarding rule or a distribution list may carry the list address in To rather than the original alias, so a rule that depends on the alias can silently stop matching after a mail-flow change. Test each alias after any change to DNS, forwarding or the mail gateway.
Subject text for topic hints
Subject matching works for predictable prefixes such as an order number format or a product code that customers include in their messages. Subjects are written by customers, so they vary in language, casing and reply prefixes such as Re: and Fwd:. Strip or ignore those prefixes in your test cases, and avoid rules on common words that appear in unrelated tickets. Subject rules are a weak basis for priority, so use them to suggest a group rather than to make a security or legal decision.
Custom headers for automated mail
Header-based conditions read fields such as Auto-Submitted, Precedence or a sending system's own identifier header. These are the most reliable way to recognize robot traffic, such as out-of-office replies, bounce notices and monitoring alerts, because well-behaved systems set them. They are also set by the sender, so a rule that trusts a header should not be used to grant access or skip human review. Capture real headers from each source system with the raw message view before you write the condition.
Forwarded and relayed mail
Forwarded messages change the visible From and To values, because the forwarder or a mailing list often becomes the sender of record. A rule written for the original customer may match the forwarder instead, or the reverse. Mail from Google Workspace or Microsoft 365 groups can also rewrite headers. Decide whether a forwarded message should be routed by its original sender, by the forwarder, or by subject, and document that decision for agents.
Filters, triggers and other routing options compared
This table compares the places where incoming email can be routed in Zammad: channel filters, triggers, auto-assignment and the group destination of the channel. Read each row for what the option can match, when it runs and who keeps it up to date, then pick the earliest point that can make the decision reliably.
| Option | What it matches or does | When it runs | Trade-off |
|---|---|---|---|
| Email channel group destination | Sends every incoming email on a channel to one group | When the email is created as a ticket | Simple and easy to audit, but cannot separate requests within one mailbox |
| Channel filter | Matches sender, recipient, subject and email headers, then sets or drops values | On the incoming email, before the ticket is handled by other logic | Fast and close to the mail, but rules live in channel settings and need care when edited |
| Auto-reply suppression filter | Detects robot or automatic senders from headers such as auto-submitted markers | On the incoming email, before ticket creation | Stops loops with automated mail, but only as reliable as the headers the sender sends |
| Trigger | Matches ticket attributes and article content after the ticket exists | On ticket creation and updates | Flexible for ticket logic, but cannot read every raw mail header and runs later than a filter |
| Auto-assignment | Assigns tickets to agents by workload or group rules | After the ticket is created and matched to a group | Spreads work evenly, but depends on agent availability settings and group membership |
| Scheduler job | Runs checks on a timed basis against tickets | On a schedule, not on arrival | Catches tickets that match later, but delays action and adds load |
| Macro | Applies a set of changes when an agent chooses it | Only when an agent runs it | Keeps a human in control, but does nothing for unattended mail |
Suppressing auto-replies from robots and no-reply senders
Automated mail is the main source of noise and loops in a shared support inbox. Out-of-office replies, monitoring alerts, bounce messages and no-reply notifications all arrive as ordinary email, and if Zammad treats each one as a customer message, it can open tickets that no person will ever answer or send an acknowledgement back to a sender that is itself automated. Two automated systems replying to each other can fill the queue within minutes. The practical goal is to identify these messages from their headers, then decide per mailbox whether Zammad should skip ticket creation, skip outgoing replies, or both. In Zammad, this is handled through email filters on the channel, which inspect headers such as Auto-Submitted, X-Auto-Response-Suppress and Precedence and can be combined with sender address patterns like noreply@ addresses from your monitoring tools. Confirm the exact header names and filter behaviour in your Zammad version's admin documentation before you rely on them, since the available matching options and the order in which filters run are the details teams most often misread.
The risk is over-suppression. A header rule that looks safe can also catch a genuine customer whose mail client sets an auto-reply header on a forwarded message, or a support address that sits behind an automated notification service. A filter written as "drop anything from no-reply" can therefore discard the one customer message that matters. Before you switch a filter to active, send a controlled test set from a test mailbox: an out-of-office message, a bounce, a monitoring-style alert, a no-reply notification, and a normal message from a person who writes in plain language. Confirm that the automated samples are suppressed and that the human message creates a ticket in the right group. Record which filter matched each sample, because a rule that matches more than you intended will show up in that log, not in the ticket view.
Plan for the cases that suppression cannot solve. Monitoring systems that should open tickets need the opposite treatment, so route them to a dedicated group with a clear owner rather than suppressing them. Decide whether automated senders should get any reply at all, and document that decision with the support lead, because a suppressed sender will not know their message was ignored. Review suppression rules after each change to the sending systems, since a vendor that changes its notification headers can silently move mail from ignored to ticketed, or the reverse. Keep the test set and its expected results with your configuration, so the next person who edits a filter can repeat the same checks.
When a filter is the right tool and when a trigger is
Email filters act on incoming messages before a ticket is fully set up. They inspect sender, recipient, subject and selected headers, then set attributes such as group, owner, priority or state, or drop the message. Use them when the decision depends only on what the incoming message contains and should be fixed the moment the ticket is created.
- Mailbox separation: route mail sent to a billing or security alias into the matching group before any agent sees it.
- Sender matching: send mail from a known monitoring or partner domain to a dedicated group with a higher priority.
- Subject patterns: tag ticket types from standard subject prefixes that your forms or systems generate.
- Header conditions: use header-based actions where the sending system marks its messages reliably.
- Single point of definition: keep intake rules in one place, so the first-touch routing is easy to review.
Check that each filter's conditions match real messages from each channel, and test with messages that resemble the actual sending systems before relying on them.
Triggers act when a ticket is created or updated, and they can react to later events that filters never see, such as a customer reply, a state change, or a priority that passes a threshold. Use them when the logic depends on what has happened to the ticket since it was opened, or when the action should run on every update regardless of the channel.
- Customer replies: reopen a closed ticket, reset its state to open and notify the owner when a customer answers.
- Escalations: raise priority or notify a manager when a ticket remains in one state too long, using scheduled jobs alongside triggers where needed.
- Reminders: send internal notifications to the owner after a set period without a reply.
- Channel-independent behavior: apply the same rule to tickets from email, web forms, chat and phone, because triggers do not depend on the inbound channel.
- Update history: trigger actions appear in the ticket history, which helps when reviewing why a state changed.
Confirm in your Zammad version how triggers, scheduler jobs and macros interact, because overlapping rules are the most common source of unexpected behavior.
The choice between filters and triggers affects how many places an administrator must review after a change and how clearly an auditor can see the cause of a routing decision. Both mechanisms are configured in the administration interface, but the way they fire produces different evidence. Decide the split before you build, and document which mechanism owns which decision.
- Fewer overlapping rules: avoid placing the same routing decision in both a filter and a trigger, because a later edit to one can silently change the outcome.
- Traceable intake: a filter sets the initial attributes, so the ticket's first state reflects the original rule.
- Traceable changes: triggers leave entries in ticket history, which supports reviews of later actions.
- Change control: record each rule's owner, purpose and the date it was last tested, so changes go through review.
- Testing after upgrades: re-test both kinds of rules after each Zammad upgrade, since behavior around routing can change between releases.
Ask your compliance or service owners which routing decisions they must be able to explain, then confirm the audit evidence available for each mechanism in your environment.
A practical test helps teams choose quickly. Ask whether the rule needs information from the incoming message alone, and whether it must run once or on every later change. If the answer is the message alone and once, a filter is usually the better fit. If it depends on the ticket's history, time, or later customer activity, a trigger is usually required. Many real rule sets use both, with a clear boundary between them.
- Illustrative case: a message from a monitoring system should go to the operations group at intake, so it is a filter.
- Illustrative case: a ticket that has been waiting for a reply for several days should notify its owner, so it is a trigger or scheduled job.
- Illustrative case: a customer reply should reopen a pending ticket, so it is a trigger that reacts to the update.
- Boundary rule: write down one sentence for each rule that states whether it is intake or change handling.
- Limits to confirm: check which conditions each mechanism supports in your version, rather than assuming they match.
Before you finalize a design, walk through a sample of real ticket histories and confirm each rule fires where you expect.
Setting up and testing a routing filter
This sequence moves a Zammad email filter from design to production without surprises. It confirms the mailbox works first, then proves each routing rule in a test environment before any live customer mail reaches it.
Confirm the email channel works
Before touching any filter, the admin confirms that the email channel for the target mailbox is connected, that inbound mail creates tickets in the expected group, and that outbound replies reach the sender. Run this check on the channel as it is today, using a plain message from an internal test account. Done means a test email arrives, becomes a ticket, and a reply leaves the system with the correct sender address. If the channel fails here, fix the connection before continuing, because a filter cannot route mail that never arrives.
List the routing rules and their order
Write down every existing filter and trigger that touches the same mailbox, then record the order in which Zammad evaluates them. The admin should also note which rules set the group, owner, priority or state, because two rules that set the same field will conflict. Confirm the evaluation order in the admin interface and in your own documentation, since the order determines the outcome. Done means you have a single table showing each rule, the condition it matches, the action it takes, and the rules that might overlap with it.
Create filters in a test environment
Build the new filters on a non-production Zammad instance that is connected to a test mailbox, never to the live support address. Use one filter per routing decision, with a clear name that states the match and the destination, for example a sender domain mapped to a billing group. Save each filter and export or record its settings so that the production change can be repeated exactly. Done means every planned filter exists in the test system, is enabled, and matches the rule table from the previous step.
Send test messages from each sender type
Send a message from each category the filters are meant to handle: a known customer, an unknown address, a partner domain, a monitoring robot, and a message with a specific recipient alias or subject keyword. Include at least one message that should match no filter, so you can see the fallback behavior. Send them through the real mail path, not by creating tickets in the interface, so that header parsing is tested. Done means every test message has been sent and you have a list of which sender type was sent, when, and to which address.
Check group, owner, priority and state
Open each ticket created by the test messages and compare its group, owner, priority and state against the expected result from your rule table. Confirm that auto-replies from robot senders were suppressed and did not create extra tickets or outbound mail. Check that the sender and recipient fields on the ticket are what you expected, since a mismatch usually means a condition matched the wrong header. Done means each test case has a recorded pass or fail, and every failure has a documented fix that you retest before moving on.
Roll out the filters to production
Apply the tested filters to the production mailbox in the same order used in the test environment, during a period when the team can watch incoming mail. Send one controlled message from a known sender immediately after the change and confirm the ticket lands in the right place. Keep the previous settings available so the change can be reversed if routing goes wrong. Done means the production system shows the filters in the agreed order and the controlled test message produced the expected ticket.
Review the first week of tickets
For the first week after the rollout, review tickets created by the new filters on a fixed schedule with the team leads of the affected groups. Look for misrouted tickets, legitimate customer mail that was suppressed, and robot mail that still reached agents. Record each exception, adjust the filter conditions, and retest those cases in the test environment before changing production again. Done means the team agrees that routing matches the rule table, the exception log is closed or assigned, and any change to the filters has been written down.
Security and operational considerations for routing rules
Routing rules decide which group, owner and priority a ticket receives, so a wrong match can misroute sensitive requests or hide them from the right team. The cards below cover the controls that keep filters trustworthy: how headers can be forged, what appears in subjects, how filters interact, who owns changes, and how actions are recorded.
Spoofed headers used to bypass routing
Filters that match on sender address, recipient or custom headers trust values the sender controls to a large degree. A forged From header or a spoofed address can push a message into a high-priority or restricted group, or keep a genuine complaint out of an escalation path. Check how your mail provider sets authentication results, decide whether filters should match only on trusted headers, and test a spoofed message against each rule before go-live.
Zammad admin docsSensitive customer data in subjects
Subject lines are often matched by filters and are frequently copied into notifications, search indexes and logs. Customers may put account numbers, health details or personal identifiers in a subject, and a rule that routes on subject text stores that data in places the team did not plan for. Agree a rule that subject-based matching uses only fixed keywords, and tell customers which details belong in the body of the message.
Filter order and conflicts
When several filters match one message, the result depends on their order and on which actions overwrite others. A later filter can silently change the group or priority set by an earlier one, and two rules that look correct alone can cause a ticket to land in the wrong place. Document the intended order, keep the rule count small, and test representative messages that match more than one rule.
Rule ownership and change records
Routing logic changes as teams, products and mailboxes change, and an unowned filter tends to outlive the reason it was written. Assign a named owner to each filter, record why it exists and which mailbox and group it serves, and require a review before edits to rules that affect priority or access. Ask your team to confirm how the change record will be kept outside Zammad.
Logging filter actions for audit
Auditors and incident responders need to know which rule moved a ticket, when it ran and what it changed. Confirm in your Zammad version whether filter actions appear in the ticket history or the system logs, and whether those entries show the rule that fired. Where the record is incomplete, plan an export or a test that demonstrates the trail before you rely on it for an investigation.
Behavior changes between releases
Email handling and filter behavior can change between Zammad releases, including fixes that alter how headers or auto-replies are treated. Read the release notes for each version you plan to run, and repeat your filter test set after every upgrade or security release before you return the mailbox to normal routing. Treat this as a standing step in your change process, not a one-off check.
Zammad releasesQuestions buyers ask about Zammad email filter routing
Can our own team configure Zammad email filters without outside help?
Yes, a team with Zammad administration experience can usually build basic filters itself, since filters match on sender, recipient, subject and headers and set group, owner or priority actions. The harder part is knowing which rules must exist and proving they behave correctly under real mail. Ask whether an administrator has already run a production Zammad helpdesk, has access to a test mailbox, and can review changes with someone who knows your queue design. If any of those are missing, the gap is usually in testing and governance rather than in the filter screens themselves.
What makes Zammad email routing work take longer?
Effort grows with the number of queues, the volume of inbound mail, the variety of senders and the depth of test coverage. Each additional group or priority level adds rules that can conflict with existing ones. High sender variety means more header and domain patterns to match, and mail from monitoring tools, forwarding services or partner systems often needs its own handling. Test coverage is the largest variable: a rule set checked against a few samples takes far less time to validate than one checked against a representative mailbox export. Ask any provider to list the queues, sender categories and sample volume they assumed before quoting.
How long does it take to validate a basic Zammad routing set?
Validation time depends on how many rules exist and how much representative mail the team can test against, so no fixed duration applies across deployments. A small set covering a few groups can often be checked in a short test cycle, while a larger set needs several rounds of sample mail, review and correction. Plan for validation to run alongside the channel setup, not after go-live, and ask your provider to state the test cycles, sample sources and sign-off steps in the written scope. Treat any duration quoted without those details as unverified.
What must our team provide before routing rules are designed?
Three inputs carry most of the work. First, anonymized or redacted mail samples from each inbound address, including auto-replies, monitoring alerts and forwarded messages, so rules are built from real traffic. Second, the group structure, with each queue's purpose, who staffs it and which languages or products it covers. Third, named SLA owners who confirm priority rules and escalation expectations. Also confirm who approves rule changes after go-live. Without these, rules tend to be written from assumptions and need rework once real mail arrives.
Should we use email filters or triggers for routing?
Use filters for decisions made when mail first arrives, such as matching a sender domain, a recipient address or a header and then setting the group, owner or priority before the ticket is created or updated. Triggers run on ticket events after creation, so they suit follow-up actions such as notifications, state changes or escalation tied to ticket attributes. Suppressing auto-replies from robot senders is usually handled in the filter layer so that no ticket or notification is created. Confirm the exact behavior for your Zammad version in the admin documentation before relying on it, since rule ordering and matching options can differ across releases.
When should we bring in a partner for Zammad email routing?
Bring in a partner when the routing set is large, mixes several mailboxes and channels, must satisfy documented service level or segregation requirements, or when your team cannot staff a test cycle before go-live. DeployOpen plans, implements and tests self-hosted open-source platforms in your own infrastructure under a fixed-scope written agreement, so you know the queues, test coverage and deliverables before work starts. Ongoing rule changes can move to a retainer. Ask for a written scope that lists the mailboxes, queues, sample sources and acceptance tests, and compare it with what your team could deliver internally.
What goes wrong when Zammad routing rules are untested?
The usual failures are tickets landing in the wrong group, auto-replies from robot senders creating tickets that agents then close manually, and priority rules matching too broadly or not at all. Rules can also conflict, so an earlier match prevents a later, more specific rule from running. These problems often appear only after volume rises. Prevent them by testing with representative mail, reviewing rule order after every change and monitoring the first weeks of traffic against the expected queue distribution.
How an incoming email is routed in Zammad
The path starts when Zammad's email channel fetches a message from the mailbox. Filters then run in their configured order, and the first matching filter can set the group, owner, priority or state on the new ticket. The check worth making is the order of the filters and whether an auto-reply guard catches robot mail before any ticket is created. Triggers run afterward on the created ticket, so they should not be relied on to fix routing that a filter should have handled.
Inbound email moves through filters to the ticket, then triggers run on the new ticket.
How DeployOpen scopes and delivers Zammad routing work
DeployOpen plans Zammad email filters and routing rules as part of a written, fixed-scope engagement covering the mailboxes, groups and priorities your helpdesk depends on. The work is built and tested in the Zammad instance you run in your own infrastructure, then documented so your team can maintain it.
How we scope
- We list every inbound mailbox, the groups that should receive each stream, and the sender and subject patterns that need routing.
- We define which robot, notification and auto-reply senders must be suppressed, and which ones must stay visible to agents.
- We agree in writing whether triggers, filters or both will handle each rule, so the boundaries are clear before any build starts.
How we build
- We configure email filters and header-based actions in a staging Zammad instance that mirrors your production channels.
- We test each rule with sample messages covering matching senders, recipients, subjects and auto-reply headers.
- We record each rule's purpose, owner and order of evaluation so later changes do not break earlier routing decisions.
How we hand over
- We deliver a rule inventory with the configured conditions, target group, owner and priority for every routing decision.
- We walk your administrators through the test results, the known gaps and the steps to add or retire a rule safely.
- We document which routing needs should move to triggers later, so your team knows when a filter is the wrong tool.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer, so routing rules can be re-tested after Zammad upgrades.
- We can retest routing after mailbox, group or provider changes, such as a move to OAuth-based email channels.
- Confirm with DeployOpen during scoping which support hours, response expectations and retest cycles are included in your retainer.

