Rustmail
v1.2.1open source · AGPL-3.0

Every DM to your bot becomes a ticket your whole team can answer

Members write to the bot like they would to a friend. Your staff get a private channel per conversation, answer with one command, and never lose track of who is waiting.

No install needed for the demo: join the server and send the bot a message

What the member sees
RustmailBOT
Today at 14:02
mira
Hi, I was banned from #trading by mistake I think, can someone look at it?
RustmailBOT
Message received. Our staff will get back to you as soon as possible.
mira
My username is mira_k if that helps
RustmailBOT
Theo · Support
Hey Mira, I checked the logs. It was an automod false positive, you can post again.
mira
Oh perfect, thank you
@Rustmail
Rustmail is typing
What your staff sees
・mira・0m
RustmailBOT
Account age 2 years · joined 8 months ago · no previous ticket
RustmailBOT
mira
Hi, I was banned from #trading by mistake I think, can someone look at it?
RustmailBOT
mira
My username is mira_k if that helps
Theo
!r Hey Mira, I checked the logs. It was an automod false positive, you can post again.
RustmailBOT
Theo · Support
Hey Mira, I checked the logs. It was an automod false positive, you can post again.
Message #3
RustmailBOT
mira
Oh perfect, thank you
Theo
!close 2h
RustmailBOT
This ticket will close in 2 hours unless someone writes in it
#・mira
mira is typing

01 · How it works

From a DM to a closed ticket

The ticket channel name tells your team everything at a glance: who wrote last and for how long the member has been waiting.

  1. 01
    Rustmail

    A member sends a DM

    No form, no button to find. If you set up categories, the bot first asks them to pick one with buttons and keeps their messages until they do.

  2. 02
    ・mira・0m

    A private channel opens

    It lands in your inbox category with a summary of the member. They get your welcome message. Red means the member wrote last.

  3. 03
    ・mira・4m

    Staff answer from the channel

    !r sends the reply to their DMs. Typing is relayed both ways, edits and deletions are mirrored. Blue means staff wrote last.

  4. 04
    logs · panel

    Close now or later

    !close, !close 2h, or silently. The member gets your closing message and the full conversation stays readable in the logs and the panel.

red
Waiting on staff
blue
Staff replied last
・4m
age
Time since the last message

02 · In Discord

Everything happens where your staff already are

Every command exists as a slash command and as a text command with a short alias. Pick whichever your team types faster.

Reply as a person or as the team

Reply with your name, or anonymously so the member only sees a staff label while your team still sees who wrote it. Attach files, fix a typo after sending, or delete a message: the copy in the member’s DMs follows.

  • !rReply with your name and role
  • !arReply anonymously
  • !r {{refund}}Send a saved snippet
  • !e 3 …Edit message #3 in both places
  • !delete 3Remove it from the member’s DMs
Rustmail
RustmailBOT14:20
Theo · Support
Here is the refund form. It usually takes 3 to 5 days to process.
Message #12 · edited
RustmailBOT14:26
Staff
Here is the refund form. It usually takes 3 to 5 days to process.

Your team sees: sent anonymously by Theo

Know who owns which ticket

Claim a ticket so the channel carries your name, hand it back when you are done, or add a label like “billing” without hiding the member’s name or status. Bring in a colleague or a whole role when you need a second opinion.

  • !takeClaim the ticket
  • !releaseHand it back
  • !rn billingAdd a label to the channel
  • !am @ModeratorsAdd a person or a role
  • !alertGet pinged on the member’s next message
  1. ・mira・3m
  2. !take
  3. ・mira・theo・3m
  4. !rn billing
  5. ・billing・mira・theo・3m
  6. !r …
  7. ・billing・mira・theo・0m

Route tickets before they land

Give members a choice of categories when they open a ticket. Each category has its own Discord category, can ping the roles that handle it, and falls back to your inbox if the member does not choose in time.

  • !category createAdd a category with a description and an emoji
  • !category timeout 300Change how long members have to choose
  • !mv AppealsMove a ticket to another category
Rustmail
mira09:41
Hi, I was banned from #trading by mistake I think, can someone look at it?
RustmailBOT09:41
What is your message about?
Account helpBan appealReport a memberPartnerships

Defaults to Inbox after 5 minutes

Nothing falls through the cracks

Rustmail keeps time for you. It reminds people, closes what was forgotten and catches up on messages sent while it was offline.

  • Reminders

    Remind yourself or a role at a given time in a ticket. Staff can opt out of a role’s reminders.

    !rem 14:30 @Moderators check the appeal
  • Scheduled closing

    Close in 30 minutes, 2 hours or 1d12h. If the member writes again, the closing is cancelled on its own.

    !close 2h
  • Inactivity timeout

    Optionally close tickets where nobody wrote for a set number of minutes.

    inactivity_timeout = 1440
  • Members who leave

    Close a ticket automatically when its member leaves the server, or force-close an orphaned one.

    close_on_leave = true
  • Message recovery

    After a restart, messages sent while the bot was down are fetched and posted in the right tickets.

    !recover
  • Update notices

    New releases are announced once in your logs channel and shown as a banner in the panel.

    check_interval_hours = 6

Context on every member

Open the history of anyone’s past tickets, even from outside a ticket. When a member is banned, Rustmail keeps their roles, nickname, join date, the reason and who banned them, which helps a lot when restoring a compromised account.

  • !logs 4173…Every past ticket of a member
  • !bi mira_kWhat was recorded at ban time
  • !idThe member’s Discord ID
RustmailBOT21:44
Ban record · mira_k
Banned
12 Nov 2026, 21:40
By
Theo
Reason
Compromised account, posting scam links
Joined
3 Mar 2026
Nickname
Mira
Roles
VerifiedTraderLevel 20

03 · Web panel

A panel for the parts Discord is bad at

Log in with Discord. Read any ticket from start to finish, follow how your team is doing, and change the configuration without opening a text file or restarting anything.

panel.your-server.gg
Overview
7 days30 days90 days
Open tickets14
Closed this week82
First reply, average11m
Resolution, average3h 20m
Tickets per day
OpenedClosed
22 Oct5 Nov20 Nov
Staff this monthMessages · Closed
  • TTheo41296
  • IInes35581
  • MMarcus28164
  • YYuki19647
  • AAda12229
Closed by category
  • Account help46%
  • Ban appeals27%
  • Reports18%
  • Other9%

Fastest responder Ines · 6m

  • Statistics

    Open and closed tickets, average time to the first staff reply and to resolution, a daily activity chart, the split by category and a staff leaderboard over 7, 30 or 90 days.

  • Tickets

    Search open and closed tickets and read every message. Closing and log messages in Discord link straight to the ticket here.

  • Live configuration

    Messages, colors, logs, reminders, languages and more, edited from a form and applied right away.

  • Bot control

    Start, stop or restart the bot and change its presence without restarting the process or the panel.

  • Permissions

    Grant users or whole roles exactly what they need: view the panel, manage tickets, categories, configuration, API keys, permissions, the bot, or view bans.

  • Categories and bans

    Manage ticket categories with a form, and browse the ban records Rustmail kept.

Open the demo panel

04 · REST API

Open tickets from outside Discord

A contact form on your website, a game server, another bot: create an API key in the panel and open a ticket for any member with one request. The member gets your welcome message and your staff see a normal ticket.

  • Keys are shown once, can expire, and can be revoked or deleted
  • They only reach the external endpoints, never the panel
  • The panel itself is built on the same documented API
API reference
contact-form.sh
$ curl -X POST \
    https://panel.your-server.gg/api/externals/tickets/create \
    -H "X-API-Key: rustmail_350e97ec…" \
    -H "Content-Type: application/json" \
    -d '{"discord_id": "417302551608885418"}'
200 OK
{
  "success": true,
  "channel_id": "1441202389114900520",
  "username": "mira",
  "message": "Ticket created successfully"
}

05 · Your server, your rules

Fits the way your community is organised

One server

Tickets live in a private category of your community server. Staff are simply the people who can see that category.

Community

general
help
announcements

Inbox

・mira・2m
・kenji・1h

Two servers

Members stay in the community server, tickets live in a separate staff server. Members never see a single command.

Community

general
help
announcements
DM

Staff

Inbox

・mira・2m
・kenji・1h

11 languages

Every message the bot sends exists in each of these. Pick a default and a fallback.

  • English
  • Français
  • Español
  • Deutsch
  • Italiano
  • Português
  • Nederlands
  • Русский
  • 日本語
  • 한국어
  • 中文

Tune the details

One readable config.toml, also editable from the panel.

  • Welcome and closing messages
  • Embeds or plain text, with your colors
  • Command prefix and disabled commands
  • Typing relay in each direction
  • Logs channel for edits, deletions and renames
  • Timezone for reminders

06 · Self-host

One binary, one SQLite file, your machine

No database server, no external service. The first time you start it without a configuration, Rustmail opens a setup wizard in your browser and writes the file for you.

Linux · macOS
$ curl -LO https://github.com/Rustmail/rustmail/releases/latest/download/rustmail-x86_64-unknown-linux-musl.tar.gz
$ tar xzf rustmail-x86_64-unknown-linux-musl.tar.gz
$ ./rustmail

Builds for Linux (x86_64, ARM64, glibc or musl), macOS (Intel and Apple Silicon) and Windows.

First start
No configuration found.
Setup wizard available at http://localhost:3002/setup?token=8f3c0d…
Open this URL in your browser to configure Rustmail.
This link contains a one-time secret: do not share it.
Runtime
One process: bot, panel and API
Storage
SQLite, migrated on startup
Port
3002 for the panel and the API
License
AGPL-3.0, free forever
Installation guide

07 · Commands

The full list

Text commands use your prefix, ! by default. Slash commands have the same names and show their options as you type.

Open the command reference

Try it

See it working in under a minute

The Rustmail support server runs a public demo bot. Everyone there is staff of the demo, so you can play both sides of a ticket.

  1. 01

    Join the server

    It is the same server where you can ask questions and suggest ideas.

  2. 02

    DM the Rustmail bot

    Your ticket appears in the demo inbox within a second.

  3. 03

    Answer yourself

    Open your ticket channel and type !r hello. The reply lands in your DMs.

  4. 04

    Look at the panel

    Browse the demo panel read-only, with real tickets and statistics.

Demo tickets are visible to every visitor, so do not write anything personal.

Questions

Before you install it

Built in the open

Rustmail is developed on GitHub. Bug reports, translations and pull requests are welcome.

Is it free?

Yes. Rustmail is open source under the AGPL-3.0 license. There is no paid tier and nothing is locked.

Where are my tickets stored?

In a SQLite file next to the binary, on your own machine. Nothing is sent to a third party.

What does it need to run?

A machine that can run a single binary or a Docker container, and a Discord application with the Server Members, Message Content and Presence intents.

Do members need to do anything?

No. They send the bot a direct message. Replies, edits and the closing message arrive in the same DM.

Do I need the web panel?

No, it is optional. Everything ticket related works from Discord. The panel needs a Discord OAuth2 client ID and secret.