
Support tools get pricey in the ways that hurt most: per-agent fees, paid add-ons, and “enterprise” locks on basics like SSO or audit logs. If you want to self-host Zammad, you’re usually trying to control spend, data residency, and email reputation. You also want a real ticket workflow, not a downgrade.
Zammad is a mature open-source helpdesk you can run on a VPS or dedicated server. You can connect it to the mailboxes and domains you already use.
This is an operator’s guide. It covers where Zammad shines, where it’s a poor fit, and how to deploy it cleanly with Docker Compose. It also covers HTTPS, inbound email, backups, and an update routine you can repeat.
Why teams self-host Zammad instead of Zendesk or Freshdesk
Hosted desks like Zendesk and Freshdesk feel effortless at first. Friction shows up when you add agents, increase ticket volume, or need features locked behind higher tiers.
The monthly bill climbs, and the plan starts dictating your workflow.
Self-hosting flips that model. You pay for infrastructure you control. You put effort into a repeatable ops playbook (monitoring, backups, updates) instead of a growing per-seat line item.
Zammad fits well when support runs through email (support@), web forms, or chat integrations. It gives you one place for SLAs, tags, macros, and internal notes. It’s also a strong option when customer data must stay in a specific region.
- Best for: SMB to mid-market support teams, SaaS support, agencies, internal IT helpdesks.
- Less ideal for: teams that need native omnichannel contact center features (voice, WFM) without integrations.
Self-host Zammad: what you actually get (and what you manage)
Zammad is open-source helpdesk software (AGPL-3.0). The license is practical: you can run it internally and modify it.
If you offer it as a network service to third parties, you must comply with AGPL’s source-availability requirements.
Feature-wise, it covers the core helpdesk loop. That includes queues/groups, ticket states, tagging, templates, triggers, SLA rules, full-text search, and email intake/sending.
The tradeoff is straightforward: you own uptime, storage, backups, and mail routing. If you don’t want that responsibility, pay for it.
If you want the “keep the box stable while we do support” route, managed VPS hosting is the straightforward choice. If you prefer full control and handle ops yourself, a standard HostMyCode VPS is the usual baseline.
A quick comparison: Zammad vs Zendesk/Freshdesk
You’re not switching because “open source is neat.” You switch because support is a cost center. You want predictable spend, clearer data control, and fewer plan limitations.
| Area | Zammad (self-hosted) | Zendesk/Freshdesk (hosted) |
|---|---|---|
| Cost model | Infrastructure + your ops time | Per-agent + feature tiers |
| Data location | You choose region/provider | Vendor-controlled (region options vary) |
| Email deliverability | You manage DNS + outbound relay | Vendor-managed; less control |
| Customization | High (themes, integrations, code changes) | Medium (plan-dependent) |
| Maintenance | You patch, monitor, and back up | Vendor handles most ops |
VPS sizing for Zammad (realistic resource requirements)
Zammad isn’t huge, but it’s not lightweight. You run a database, a search index, and background workers.
In practice, RAM is the first limiter. Disk I/O is usually next.
- Small team (1–10 agents): 2 vCPU, 4 GB RAM, 60+ GB SSD/NVMe.
- Medium team (10–50 agents): 4 vCPU, 8–16 GB RAM, NVMe strongly preferred.
- Large/high volume: consider a larger VPS or dedicated servers to keep search and database latency consistent.
Storage planning matters more than most teams expect. Tickets grow steadily, but attachments can explode.
If your team trades screenshots, PDFs, and logs all day, size disk early. Also set attachment limits before it becomes a fire drill.
Quick diagnostic: if searches feel slow, check memory pressure and disk latency first. Do that before you tweak application settings.
free -h
vmstat 1 5
iostat -xz 1 3
Deploying Zammad with Docker Compose (clean, repeatable layout)
Treat this like a service you may need to rebuild under pressure. Use a layout you can reproduce on a new VPS without “where did we put that file?” moments.
Use a dedicated directory. Keep secrets out of Git. Name volumes explicitly.
On Ubuntu or Debian (common VPS choices), install Docker Engine and the Compose plugin. Then create your working directory:
sudo mkdir -p /opt/zammad
cd /opt/zammad
At a high level, your Compose stack will include:
- Zammad (web + scheduler/background jobs)
- PostgreSQL (primary database)
- Elasticsearch/OpenSearch (search index, depending on your chosen Zammad stack)
- Reverse proxy (Nginx or Traefik) for HTTPS termination
Zammad provides Docker-based deployment options. Resist the urge to improvise the container set unless you have a clear reason.
Re-migrating helpdesk data is rarely quick or pleasant. Keep your changes focused on what you actually need to own:
- volumes and backup paths
- environment variables for hostname, email, and secrets
- reverse-proxy routing and headers
If you want a ready-made HTTPS pattern for Compose stacks, HostMyCode’s Traefik walkthrough pairs well here: Traefik with Docker Compose for HTTPS on a VPS. It’s a good match for Zammad because certificates stay automatic and config stays centralized.
Reverse proxy + HTTPS: Nginx vs Traefik
Both work. Choose the one you can troubleshoot quickly, with logs you understand.
- Nginx is predictable and fast, with familiar configuration in
/etc/nginx/sites-available/. - Traefik fits Docker-native routing and automated Let’s Encrypt, especially if you host multiple apps on one VPS.
A basic Nginx TLS setup looks like this:
- DNS A/AAAA record for
support.yourdomain.com→ your VPS IP - Let’s Encrypt certificate via Certbot
- Nginx site that proxies to the Zammad web container
If you already host several apps and don’t want to babysit certificates per vhost, Traefik is usually the lower-friction choice.
If you stick with Nginx, watch upload limits and proxy timeouts. Large attachments can fail halfway through without those tuned.
Related reading if you’ve run into timeouts on a busy Nginx host: Fix WordPress 504 Gateway Timeout on Nginx VPS. Different app, same proxy behavior.
Inbound email: the make-or-break part of a helpdesk migration
Most migrations away from Zendesk/Freshdesk go sideways for one of two reasons: email deliverability or messy identity mapping. Treat inbound mail like a core requirement, not a post-launch chore.
You have three common inbound patterns for Zammad:
- IMAP polling: Zammad logs into your mailbox and pulls messages. Easiest to start with.
- POP3 polling: workable, but IMAP is usually better for modern mailboxes.
- Direct delivery (MTA/pipe/webhook): more “server-admin correct,” but more moving parts.
For many teams, IMAP is the practical starting point. Keep your provider (Google Workspace, Microsoft 365, or hosted mailboxes) and let Zammad fetch mail.
Don’t treat outbound mail as an afterthought. If ticket replies land in spam, agents lose trust fast.
Two practical outbound options:
- Send via your mailbox provider’s SMTP (good for low/medium volume).
- Use a Postfix relay on your VPS and authenticate upstream (more control, stable logs).
If you want the Postfix relay route, this guide maps well to helpdesk notifications too: Set Up Postfix Relay on a VPS for WordPress Mail.
Don’t skip DNS hygiene. At minimum, set these for your sending domain:
- SPF record that includes your SMTP provider/relay
- DKIM signing (from your provider or your relay)
- DMARC policy (start with
p=none, then tighten)
Backups: what to capture (and what people forget)
A Zammad backup is not just a database dump. Plan for three buckets:
- Database (PostgreSQL dumps)
- Attachments/uploads (file volumes)
- Configuration/secrets (Compose files, env files, any custom Nginx/Traefik config)
On Docker deployments, write backups to a clear location such as /var/backups/zammad. Keep retention boring and predictable (for example, 7 daily + 4 weekly).
If the VPS has the disk, keep short-term local copies. Then push a second copy offsite.
A simple approach that holds up operationally:
- Nightly PostgreSQL dump with
pg_dump(inside container or viadocker exec) - Nightly
tarorresticbackup of the attachments volume - Weekly restore test to a staging directory or a small spare VPS
Restore tests are what turn “we have backups” into “we can recover.” Put them on the calendar.
Treat them as routine maintenance, not a heroic last resort.
Updates: a routine that won’t surprise your agents
The safest update strategy is intentionally dull:
- Pick a maintenance window (even if it’s 10 minutes).
- Snapshot/backup first.
- Pull images, restart stack, run any required migrations.
- Verify login, ticket creation, and email send/receive.
On a Compose-based deployment, the usual flow is:
cd /opt/zammad
docker compose pull
docker compose up -d
docker image prune -f
If you want automatic container updates, be cautious. Auto-updaters love to restart services at the wrong time.
Helpdesks are also most visible during business hours. If you still automate, constrain it with maintenance windows and health checks.
This guide lays out the pattern and tradeoffs: Docker Compose Auto-Updates With Watchtower on a VPS.
One practical habit: keep a simple changelog. Record the Zammad image tag you’re running and the date you updated.
If mail intake changes behavior, you’ll want that timeline immediately.
Migration notes: moving off Zendesk/Freshdesk without downtime
You don’t need a big-bang cutover. Most teams get better results with a staged rollout:
- Stand up Zammad and validate HTTPS + auth.
- Connect a test mailbox and confirm inbound parsing.
- Configure outbound mail with proper SPF/DKIM/DMARC alignment.
- Run parallel for a week with a subset of agents.
- Flip support@ routing and turn off the old desk intake.
If your old tool supports export, do it early. Store it offsite.
Even if you never import everything, historical records help with billing disputes. They also help with the inevitable “what did we promise?” thread.
Operational checklist: what to monitor after go-live
Once you self-host Zammad, focus on the boring signals. They warn you long before agents complain that “the system is slow.”
- Disk usage: attachments and logs grow. Alert at 70% and 85%.
- RAM pressure: swapping will make search and UI feel slow.
- Queue latency: background jobs delayed can affect mail processing.
- Email bounce/spam rate: check logs and DMARC reports.
If you hit the classic “disk full” surprise, clean up carefully to avoid damaging container volumes. This walkthrough is a solid reference for safe cleanup: Disk Full on VPS: Find Large Files and Free Space Safely.
Summary: a predictable helpdesk you can own
If Zendesk/Freshdesk pricing is creeping up—or you need tighter control over data and mail flow—Zammad is a practical alternative. The win comes from running it like a real service.
That means stable VPS resources, HTTPS at the edge, reliable inbound email, tested backups, and updates you schedule.
For production, size your VPS for ticket volume and attachment growth. Then adjust once you see real usage.
If you want infrastructure designed for long-running services like helpdesks, run it on a HostMyCode VPS or step up to dedicated servers once search latency and storage become your consistent bottlenecks.
If you’re planning to self-host Zammad and you want consistent performance during business hours, run it on a VPS with predictable CPU and NVMe storage. HostMyCode offers both self-managed and managed VPS hosting, so you can decide how much day-to-day ops you want to take on.
Need help with DNS, mail routing, or moving an existing helpdesk subdomain? Use HostMyCode migrations to reduce cutover risk.
FAQ
Do I need a dedicated server to self-host Zammad?
No. Most teams run comfortably on a 2–4 vCPU VPS with 4–8 GB RAM. Move to a dedicated server when disk I/O, RAM, or search indexing becomes consistently constrained.
What’s the simplest inbound email setup for Zammad?
IMAP polling is typically the fastest path to stable intake. It keeps your mailbox provider unchanged while Zammad pulls messages on a schedule.
What should I back up for Zammad?
Back up the PostgreSQL database, the attachments/uploads volume, and your configuration (Compose files, env files, proxy configs). Then run restore tests on a schedule.
Can I run Zammad behind Nginx with Let’s Encrypt?
Yes. Point a subdomain (for example, support.yourdomain.com) to your VPS, issue a Let’s Encrypt certificate, and proxy to the Zammad web container. Set sensible upload limits and proxy timeouts for attachments.
How often should I update Zammad?
Monthly is a reasonable default for most support teams, with faster updates if you’re addressing a security advisory. Always take a backup (or snapshot) first and verify mail send/receive after the update.