Sign in
StashMail Server control panel for box.toolbrothers.org
Overview
Control panel for the mail server box.toolbrothers.org.
Domains
The domains this server receives and sends mail for. Add a domain first, publish its DNS records, then create users and aliases on it.
Domains API (advanced)
# List domains as JSON
curl --user {email}:{password} https://box.toolbrothers.org/admin/mail/domains?format=json
# Add a domain
curl -X POST -d "domain=example.com" --user {email}:{password} https://box.toolbrothers.org/admin/mail/domains/add
# Remove a domain (only when it has no users or aliases)
curl -X POST -d "domain=example.com" --user {email}:{password} https://box.toolbrothers.org/admin/mail/domains/remove
Users
Each user is a mailbox with its own login. Use aliases for extra addresses that forward to existing users.
| Email address | Size | Used | Quota | Actions |
|---|---|---|---|---|
| Loading… | ||||
|
Administrator
Archived
Login disabled
App passwords only
You
To restore, add a user with this address. To delete the mail for good, remove
on the server.
|
|
|||
Logins from these clients (e.g. your webmail) always accept the user's main password ("Set password"), even for users who must use app passwords in their mail apps. Domain names are looked up when you save and every 5 minutes; if a lookup fails, the last known addresses stay in use. Only list domains you control: whoever controls a name's DNS decides which addresses get this exception.
| Client | Addresses | Status |
|---|---|---|
| none | IP address |
Users API (advanced)
Manage users from the command line or your own tools. Authenticate as an administrator; POST parameters must be URL-encoded.
curl -X VERB [-d "parameters"] --user {email}:{password} https://box.toolbrothers.org/admin/mail/users[action]
| Verb | Action | Description |
|---|---|---|
| GET | (none) | List users. Add ?format=json for JSON. |
| POST | /add | Add a user. Required: email, password. Optional: privileges=admin, quota. |
| POST | /remove | Archive a user. Required: email. |
| POST | /password | Set a password. Required: email, password. |
| POST | /login/disable | Block all logins of a user (mail is still delivered). Required: email. |
| POST | /login/enable | Allow logins again. Required: email. |
| GET | /app-passwords | List a user's app passwords with when and from where each was last used (JSON). Required: email. |
| POST | /app-passwords/add | Create an app password; returns it once (JSON). Required: email, label (device name). |
| POST | /app-passwords/remove | Revoke an app password. Required: email, id. |
| GET | /app-passwords/default-client | List the default clients with their resolved addresses (JSON). |
| POST | /app-passwords/default-client | Replace the default clients: logins from them always accept the main password. Required: entries (domain names or IP addresses, one per line; empty removes all). |
| POST | /app-passwords/default-client/refresh | Look up the default clients' domain names again (JSON). |
| POST | /app-passwords/default-client/strict | Main password only from default clients, for all users: enabled=1 or 0 (JSON). |
| POST | /app-passwords/only | Require app passwords in mail apps. Required: email, enabled=1 or 0. |
| POST | /privileges/add | Make a user an administrator. Required: email, privilege=admin. |
| POST | /privileges/remove | Remove administrator access. Required: email, privilege=admin. |
| GET | /quota | Get a user's quota (JSON). Required: email. |
| POST | /quota | Set a user's quota. Required: email, quota. |
# List users as JSON curl https://box.toolbrothers.org/admin/mail/users?format=json # Add a user curl -X POST -d "email=new_user@yourdomain.com" -d "password=s3curE_pa5Sw0rD" https://box.toolbrothers.org/admin/mail/users/add # Archive a user curl -X POST -d "email=new_user@yourdomain.com" https://box.toolbrothers.org/admin/mail/users/remove # Make a user an administrator curl -X POST -d "email=new_user@yourdomain.com" -d "privilege=admin" https://box.toolbrothers.org/admin/mail/users/privileges/add
Aliases
Aliases are addresses that forward mail to one or more users. To send as an alias, the sender must be one of its permitted senders.
| Alias | Forwards to | Permitted senders | Actions |
|---|---|---|---|
| Loading… | |||
| automatic |
|
||
Aliases API (advanced)
Authenticate as an administrator; POST parameters must be URL-encoded.
| Verb | Action | Description |
|---|---|---|
| GET | (none) | List aliases. Add ?format=json for JSON. |
| POST | /add | Add an alias. Required: address, forwards_to. Optional: permitted_senders, update_if_exists=1. |
| POST | /remove | Remove an alias. Required: address. |
# List aliases as JSON curl https://box.toolbrothers.org/admin/mail/aliases?format=json # Add an alias curl -X POST -d "address=new_alias@yourdomain.com" -d "forwards_to=me@yourdomain.com" https://box.toolbrothers.org/admin/mail/aliases/add # Remove an alias curl -X POST -d "address=new_alias@yourdomain.com" https://box.toolbrothers.org/admin/mail/aliases/remove
Sending limits
Caps how much mail each user can send, so that a hacked or abusive account can't send spam in bulk and get the server blocklisted. Mail beyond a limit is refused with a bounce, and the sender and the administrator get an email.
| Domain | Users | Sent (1 h / 24 h) | Domain total cap | Per-user default | Actions |
|---|---|---|---|---|---|
| No domains with users. | |||||
| User | Actions | ||||
|---|---|---|---|---|---|
| No users match. | |||||
|
|
|||||
| Time | User | Limit | Recipient | Client IP |
|---|---|---|---|---|
| domain total |
Migrate mail
Copies the mail of an account on another server (Gmail, Yahoo, iCloud, your previous host…) into a mailbox here, with its folders, read/flagged status and dates. Mail that is already here is never changed or deleted, so you can re-run a migration after switching the MX records to pick up the last messages.
One account per line: source_host,source_user,source_password,target_email[,port,tls,folders,verify_cert]. tls is ssl (default), starttls or none. folders is empty (default choices), exact, or rules separated by ; such as Old/Projects=>Archive/Projects;!Junk. verify_cert is yes (default) or no for a server with a self-signed certificate. The target users must already exist. The migrations run one after another.
| Row | Source | Into | Folders | Check |
|---|---|---|---|---|
| Source | Into | Status | Progress | Updated | Actions |
|---|---|---|---|---|---|
|
|
Mail settings
Use these settings to connect a mail app or webmail. This server doesn't offer automatic configuration, so enter them manually.
| Server | box.toolbrothers.org |
|---|---|
| Username | (your full email address)Your full email address |
| Password | Your mail password |
| Incoming (IMAP) | Port 993, SSL/TLS |
| Outgoing (SMTP) | Port 465, SSL/TLS, or port 587 with STARTTLS; authentication with the same username and password |
| POP3 (instead of IMAP) | Port 995, SSL/TLS (IMAP is recommended) |
| Filters (ManageSieve) | Port 4190, STARTTLS |
Most apps detect these automatically. If yours asks, choose them for sent, draft, deleted and junk mail:
box.toolbrothers.org, port 4190, STARTTLS, and your username and password.
Spam
Mail detected as spam is delivered to your Spam folder. Move spam that got through into Spam, and move good mail out of it: the filter learns from both.
Greylisting
Mail that looks suspicious is delayed by a few minutes, because the server asks the sender to try again. Real mail servers do; most spam never retries. Mail from well-behaved senders arrives right away.
+tag addresses
Every address also receives mail for +tag variants: mail to you+anything@yourdomain.com arrives at you@yourdomain.com. Handy for filtering without creating aliases.
Send only through this server
Your domains only allow this server to send their mail. Mail sent as you through another service will probably be marked as spam.
Status checks
Services, DNS, certificates, blocklists and system health.
TLS certificates
Certificates for box.toolbrothers.org (mail services and this control panel) and for the mta-sts subdomain of each mail domain. Let's Encrypt certificates renew automatically 14 days before they expire.
Log
| Domain | Status | Actions |
|---|---|---|
| Loading… | ||
Install a certificate from another provider
Give the provider this certificate signing request (CSR). It's safe to share: it only works with a private key that stays on this server.
Spam filter
Incoming mail is checked by Rspamd, which also signs outgoing mail with DKIM and ARC.
Since Rspamd started ago.
| Time | From → To | Subject | Score | Result | Details | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| No messages match. | |||||||||||
| outgoing | |||||||||||
|
Why it got this score
Marking a message trains the Bayes filter. The message is looked up in the mailboxes by its Message-ID, so it must not have been deleted.
|
|||||||||||
| Spam score | Action |
|---|---|
| below 4 | Delivered to the inbox. |
| 4 or more | Greylisted: the sending server must try again after a few minutes. Real mail servers do; most spam doesn't. |
| 6 or more | Delivered to the user's Spam folder. |
| 15 or more | Rejected while the sender is still connected, so the sender gets an error. |
Mail activity
How many emails were sent, received and rejected, from the mail log. Daily totals are saved every night, so the history outlives the log rotation.
| Total |
Firewall
fail2ban watches the logs for repeated failed logins and blocks the source IP address for a while.
systemctl status fail2ban on the server.. You can't ban it or this server's own addresses.IP addresses or networks (e.g. 192.0.2.0/24), one per line. Add your webmail server and office here: many users log in through them, so a few wrong passwords would otherwise block everyone.
IP addresses or networks (e.g. 203.0.113.0/24), one per line, blocked on all ports (mail, web, DNS). Add until 2026-12-31 (or until 2026-12-31 18:00) after an entry to remove it automatically then; without it, an entry stays until you remove it.
A webmail logs all its users in from its own address. Then this server can't tell an attacker from a user: fail2ban must not ban the webmail, and Dovecot's delays after wrong passwords slow down every webmail user. List your webmail servers here and let the webmail pass each user's own IP address on: bans and delays then hit only the attacker, and logins from banned addresses are refused even through the webmail. Login proxies are never banned.
What the webmail has to send
IMAP (port 993): before LOGIN or AUTHENTICATE, send the user's address with the ID command:
a1 ID ("x-originating-ip" "203.0.113.7")
SMTP (port 465/587): after EHLO (and STARTTLS), send XCLIENT ADDR=203.0.113.7, then EHLO again, then AUTH.
Without these commands nothing changes: the logins keep coming from the webmail's own address, which is never banned.
30s, 10m, 1h, 1d, 1w; a ban time of -1 is permanent. Leave a field empty for the default.
-
off customfailures · bans · banned nowManaged with the blacklist above.
Read-only: these files are re-generated from the settings on this page and on updates, so edits on the server would be lost.
Monitoring
How the server is doing: system resources, mail traffic, logins, the spam filter and the firewall. Collected every 30 seconds by Prometheus and kept for 90 days.
Updated . Hover over a chart to see the values at that time.
Reputation
How other mail systems see mail from this box: blocklists, DMARC and TLS reports, delivery results, and Google's and Microsoft's own data. Checked every hour; you get an email when something gets worse.
| Time | Address or domain | Blocklist | Change |
|---|---|---|---|
| Domain | Reports | Messages | DMARC pass | DKIM pass | SPF pass |
|---|---|---|---|---|---|
| Server | As domain | Messages | Pass | DKIM / SPF results | Applied | Reported by |
|---|---|---|---|---|---|---|
| this box |
| Organization | Reports | Messages | Last report |
|---|---|---|---|
- · ·
Mail systems that deliver to this box report how many connections used TLS successfully (SMTP TLS reporting, sent to tls-reports@ each domain).
| Problem | Sending server | This box's MX | Sessions | Reported by |
|---|---|---|---|---|
| Period | From | Domain | Policy | Successful | Failed |
|---|---|---|---|---|---|
| Provider | Delivered | Deferred | Bounced | Deferred or bounced |
|---|---|---|---|---|
| Nothing sent to other servers in this period. | ||||
| Time | Recipient | Status | Reply |
|---|---|---|---|
- Add and verify your mail domains at postmaster.google.com (a TXT record at your DNS host, or in Custom DNS).
- In Google Cloud Console, create a project, enable the Gmail Postmaster Tools API, set up the OAuth consent screen (internal or with yourself as a test user), and create an OAuth client of type Web application with this authorized redirect URI:
- Enter the client ID and secret, then sign in with the Google account that owns the domains in Postmaster Tools.
| Domain | Verification | Compliance (Gmail sender requirements) |
|---|---|---|
| Day | Domain | Spam rate | SPF | DKIM | DMARC | TLS | Errors | Rejected for |
|---|---|---|---|---|---|---|---|---|
- Sign in at SNDS with a Microsoft account and request access for this box's IP address (the authorization mail goes to the abuse or postmaster contact of the address).
- Open Automated access, enable it and copy the data URL and the IP status URL here.
| Day | IP | Filter result | Recipients | Complaint rate | Trap hits | Comments |
|---|---|---|---|---|---|---|
External DNS
If your domains' DNS is hosted elsewhere (for example at your registrar), publish these records there and keep them up to date. The status checks compare them with what is published.
| Name | Type | Value |
|---|---|---|
| required |
|
Custom DNS
Extra records for the zones this server generates, e.g. for a website on another server, ownership checks, or DKIM keys of other mail providers. Only relevant when this server's own nameserver hosts your DNS, or when you copy its zone file.
| Name | Type | Value | Actions | ||||
|---|---|---|---|---|---|---|---|
|
|||||||
Only needed when this server's own nameserver hosts your DNS and your registrar requires a second nameserver on another network. Enter the hostname (not the IP address) of the secondary nameserver your provider gives you.
xfr: to allow zone transfers without listing it as a nameserver, e.g. xfr:10.20.30.40. Clear the field and save to go back to using this server as its own secondary.Custom DNS API (advanced)
Set records from scripts, e.g. for dynamic DNS. Authenticate as an administrator.
curl -X VERB [-d "value"] --user {email}:{password} https://box.toolbrothers.org/admin/dns/custom[/qname[/rtype]]
| Verb | Description |
|---|---|
| GET | List matching records as JSON (qname, rtype, value). |
| PUT | Set a record, replacing existing records with the same name and type. |
| POST | Add a record, keeping existing ones (e.g. several TXT records). |
| DELETE | Delete records. With a value, only that record; without, all records with that name and type. |
rtype defaults to A. For A/AAAA, an empty value means the IP address the request comes from. Strict SPF and DMARC records are added to custom names unless you override them.
# Point laptop.yourdomain.com at the machine running curl curl -X PUT https://box.toolbrothers.org/admin/dns/custom/laptop.yourdomain.com # Set a CNAME curl -X PUT -d "bar.yourdomain.com." https://box.toolbrothers.org/admin/dns/custom/foo.yourdomain.com/cname # Add a TXT record, keeping existing ones curl -X POST -d "some text here" https://box.toolbrothers.org/admin/dns/custom/foo.yourdomain.com/txt # Delete just that TXT record curl -X DELETE -d "some text here" https://box.toolbrothers.org/admin/dns/custom/foo.yourdomain.com/txt
Two-factor authentication
Require a six-digit code from an authenticator app when you sign in to this control panel.