Overview

Control panel for the mail server box.toolbrothers.org.

Start by adding a domain. Then publish its DNS records and create mailboxes on it.
Add a domain

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.

Add a domain
A domain you own, without "www" or "@". Subdomains such as mail.example.com work too.
Domains on this server
Domain Users Aliases Actions
Loading…
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.

Add a user
First add the domain the user's address is on, under Domains.
@
Address: · Add a domain
At least eight characters, no spaces.
e.g. 5G; 0 = unlimited
Administrators can sign in to this control panel. Mailbox addresses can't contain non-ASCII characters (aliases can).
Existing users
Email address Size Used Quota Actions
Loading…
Default clients (main password)

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.

Off: the list only applies to users with "Require app passwords"; everyone else can use the main password in mail apps from anywhere.
On: mail apps (IMAP, POP3, SMTP) accept the main password only from the addresses below. Everywhere else, users need an app password. Removing a client closes its open connections right away. The control panel still takes the main password.
Every mail app outside the default clients that uses a main password stops working and is disconnected now. The list has no addresses, so the main password will work nowhere in mail apps.
No default client addresses: the main password is refused in every mail app. Users need an app password everywhere.
ClientAddressesStatus
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]
VerbActionDescription
GET(none)List users. Add ?format=json for JSON.
POST/addAdd a user. Required: email, password. Optional: privileges=admin, quota.
POST/removeArchive a user. Required: email.
POST/passwordSet a password. Required: email, password.
POST/login/disableBlock all logins of a user (mail is still delivered). Required: email.
POST/login/enableAllow logins again. Required: email.
GET/app-passwordsList a user's app passwords with when and from where each was last used (JSON). Required: email.
POST/app-passwords/addCreate an app password; returns it once (JSON). Required: email, label (device name).
POST/app-passwords/removeRevoke an app password. Required: email, id.
GET/app-passwords/default-clientList the default clients with their resolved addresses (JSON).
POST/app-passwords/default-clientReplace 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/refreshLook up the default clients' domain names again (JSON).
POST/app-passwords/default-client/strictMain password only from default clients, for all users: enabled=1 or 0 (JSON).
POST/app-passwords/onlyRequire app passwords in mail apps. Required: email, enabled=1 or 0.
POST/privileges/addMake a user an administrator. Required: email, privilege=admin.
POST/privileges/removeRemove administrator access. Required: email, privilege=admin.
GET/quotaGet a user's quota (JSON). Required: email.
POST/quotaSet 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.

First add the alias's domain under Domains.

An extra address that delivers to one or more mailboxes.

A catch-all receives all mail to a domain that doesn't match another user or alias.

A domain alias delivers all otherwise unmatched mail for one domain to the same name on another domain (info@a → info@b).

Alias: · Add a domain
*@
Mail to name@ goes to name@; that user must exist.
No recipients yet.
Mail forwarded to other servers is often rejected. To forward elsewhere, prefer a user with a Sieve forwarding rule (ManageSieve, port 4190).
Who can send as
Existing aliases
Alias Forwards to Permitted senders Actions
Loading…
Aliases API (advanced)

Authenticate as an administrator; POST parameters must be URL-encoded.

VerbActionDescription
GET(none)List aliases. Add ?format=json for JSON.
POST/addAdd an alias. Required: address, forwards_to. Optional: permitted_senders, update_if_exists=1.
POST/removeRemove 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.

Service
Limits
Users at 80 % or more
Refused (24 h)
Default limits per user
Loading…
Domains
A domain can have its own per-user defaults, and a cap on the total its users send together. Empty fields use the defaults above.
Users
Recently refused
No mail has been refused.

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.

New migration
The password and the mail travel unencrypted. Only use this for a server on your own network.
Otherwise it is deleted as soon as the migration ends, and a re-run asks for it again.

Folders

Every folder is copied with its name and hierarchy unchanged, including Gmail's All Mail, Important and Starred (which repeat mail from the other folders).

Sent, Drafts, Trash, Junk and Archive go to the folders of the same purpose here, and Gmail's All Mail, Important and Starred are skipped because they only repeat mail from other folders. Test the connection to choose folders and rename them.

Without a test, the default folder choices are used.

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.

Migrations Worker active
No migrations yet.

Mail settings

Use these settings to connect a mail app or webmail. This server doesn't offer automatic configuration, so enter them manually.

Connection settings
Serverbox.toolbrothers.org
Username
PasswordYour 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
Folders

Most apps detect these automatically. If yours asks, choose them for sent, draft, deleted and junk mail:

Sent Drafts Trash Spam
Filters (Sieve)
Server-side rules (sorting, forwarding, vacation replies) can be managed from apps that support ManageSieve, such as Roundcube or Thunderbird with an add-on. Use server box.toolbrothers.org, port 4190, STARTTLS, and your username and password.
Good to know

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.

Choose what to check and click Run checks.
Running the checks. This takes up to a minute…

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.

Certificates can be requested from Let's Encrypt for:
Certificate status
DomainStatusActions
Loading…
Install a certificate from another provider
A multi-domain or wildcard certificate is also used for the other domains it covers.
Some certificate providers require it.

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.

Results over time
Recent messages
Loading…
How mail is handled
Spam scoreAction
below 4Delivered to the inbox.
4 or moreGreylisted: the sending server must try again after a few minutes. Real mail servers do; most spam doesn't.
6 or moreDelivered to the user's Spam folder.
15 or moreRejected 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.

Emails
Reading the logs…

Firewall

fail2ban watches the logs for repeated failed logins and blocks the source IP address for a while.

Loading…

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.

Loading…
DNS blocklists
Loading…
Listings and delistings
TimeAddress or domainBlocklistChange
Receiving mail systems (Gmail, Microsoft, Yahoo…) send daily reports to dmarc-reports@ each of your domains about all mail that claimed to come from it.
Loading…

Mail systems that deliver to this box report how many connections used TLS successfully (SMTP TLS reporting, sent to tls-reports@ each domain).

Loading…
Mail sent from this box to other servers, from the mail log. A message refused temporarily is counted once per day as deferred.
Loading…
Loading…

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.

Long TXT values (such as DKIM keys) may have to be split into several quoted strings of up to 255 characters, depending on your DNS provider.
Zone file

			
Loading…

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.

Add a record
.
Leave the subdomain empty to set the record on the domain itself.
Custom records
No custom records.
NameTypeValueActions
Secondary nameserver

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.

Separate several with spaces or commas. Prefix a hostname, IP address or subnet with 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]]
VerbDescription
GETList matching records as JSON (qname, rtype, value).
PUTSet a record, replacing existing records with the same name and type.
POSTAdd a record, keeping existing ones (e.g. several TXT records).
DELETEDelete 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.

This doesn't protect your mailbox
Two-factor authentication only protects this control panel; mail apps can't ask for a code. Since most services let you reset passwords by email, anyone with access to your mail can take over other accounts. To protect mail logins, give each device its own app password and turn on "Require app passwords in mail apps" (Users → Manage → App passwords): the main password then only works here, together with the code.
Loading…
Two-factor authentication is on.
Disabling it logs you out.