Installation
This guide covers downloading and setting up Rustmail on your system.
Prerequisites
Discord Bot Application
Before installing Rustmail, create a Discord application:
- Go to the Discord Developer Portal
- Click New Application and give it a name
- Navigate to Bot in the sidebar
- Click Add Bot
- Under Privileged Gateway Intents, enable:
- Presence Intent
- Server Members Intent
- Message Content Intent
- Copy the bot token (you will need it for configuration)
Bot Invitation
Invite the bot to your server(s) with the required permissions:
- Go to OAuth2 > URL Generator
- Select scopes:
bot,applications.commands - Select permissions:
- Manage Channels
- Read Messages/View Channels
- Send Messages
- Manage Messages
- Embed Links
- Attach Files
- Read Message History
- Add Reactions
- Use Slash Commands
- Copy the generated URL and open it in your browser
- Select your server and authorize
For dual-server mode, invite the bot to both servers.
Download
Pre-built Binaries
Download the latest release from GitHub Releases.
Available platforms:
- Linux (x86_64)
- Windows (x86_64)
- macOS (x86_64, ARM64)
Extract the archive to your desired installation directory.
Docker
Pull the official image:
docker pull ghcr.io/rustmail/rustmail:latest
See Docker Deployment for complete container setup.
Build from Source
See Building for compilation instructions.
Directory Structure
After extraction, your installation directory should contain:
rustmail/
├── rustmail # Main executable (rustmail.exe on Windows)
└── config.toml # Configuration file (create this)
On first run, the bot creates:
rustmail/
├── rustmail
├── config.toml
└── db
└── db.sqlite # SQLite database (auto-created)
Next Steps
Proceed to Configuration to set up your config.toml file.