Wombat-Email v0.9.17

How it's configured

What Wombat-Email puts on your server, how each part is set, and where to find it. It uses mail.example.com as the server and example.com as a domain:fill in the install helper and these become your own.

The parts

JobProgramNotes
Receiving and sendingPostfixReads domains, mailboxes and aliases from the database
MailboxesDovecot 2.4Maildir under /var/mail/vmail, IMAP, logins, quotas
Spam, DKIM, ARCRspamd with RedisFrom rspamd.com, with its signing key checked
VirusesClamAVCalled by Rspamd
DatabasePostgreSQLLocal only
DNS lookupsUnboundIts own validating resolver; asks the root servers itself
CertificatesCertbotLet's Encrypt, proved with a DNS record Wombat-Email publishes
WebApache with PHP-FPMPanel and webmail each in their own PHP pool and user
WebmailRoundcubeIts own signed releases, updated each morning
Mail rulesDovecot's Sieve (Pigeonhole), Roundcube's managesieve pluginManageSieve on the server itself only
Contacts and calendarsRadicaleUbuntu's package; only when switched on in the panel
Webmail's calendar and contactsKolab's calendar plugin, RCMCardDAVFixed versions; only when contacts and calendars are on
BackupsresticEncrypted, nightly
Statscollectd with RRDtoolMeasured every minute, kept five years in files that never grow; drawn by the panel
Bans and firewallfail2ban, ufwOnly the ports below are open

Ports

PortForRules
25Mail from other serversOnly for domains hosted here. No login, so no sending out
587Sending from mail appsSTARTTLS and a login
465Sending from mail appsTLS from the start and a login
993Reading mail (IMAP)TLS required
80WebOnly redirects to https
443WebPanel, webmail, automatic mail app setup
22SSHKey only; passwords are off

POP3 isn't offered. It's built for one device downloading mail, and it can't see folders, so the Spam folder wouldn't work. IPv6 is off for mail: the server uses one IPv4 address, which keeps reputation and reverse DNS simple.

DNS records

Your DNS must be on Cloudflare. It's free to use and works with any registrar: you point your domain's name servers at Cloudflare, and the domain stays where you bought it. A mail server depends on critically accurate DNS: Wombat-Email works out every record, checks it, and publishes it to Cloudflare through Cloudflare's API, saving a copy of the zone first and leaving records it didn't make alone. For each mail domain:

NameTypeValue
mail.example.comAYour server, never proxied (the server's own domain only)
example.comMX10 mail.example.com
example.comTXTv=spf1 mx -all; an existing SPF record keeps its senders and gains this server
wombat._domainkey.example.comTXTThe domain's DKIM key
_dmarc.example.comTXTv=DMARC1; p=reject;, or p=quarantine; while something else may send as the domain; one already there is kept (DMARC)
_mta-sts.example.comTXTThe MTA-STS policy's id
_25._tcp.mail.example.comTLSADANE, in a DNSSEC-signed zone (the server's own domain)
mta-sts, autoconfig, autodiscover, openpgpkey, webmailAYour server, never proxied

Names that never handle mail. Each of those four small sites also says so, so nobody can send mail pretending to be them, and other servers don't try to deliver there:

NameTypeValue
webmail.example.comMX0 . (null MX: accepts no mail)
webmail.example.comTXTv=spf1 -all (sends no mail)
_dmarc.webmail.example.comTXTv=DMARC1; p=reject;

DNSSEC is turned on for every zone. With Cloudflare as the registrar, it finishes by itself. With any other registrar, the panel's DNS page shows the DS record to add there, once. Reverse DNS is set with your VPS host and only checked here.

Mail coming in

  1. Another server connects on port 25. Postfix refuses addresses that don't exist here, so nothing is accepted and then bounced later.
  2. Rspamd scores the message and ClamAV checks it. There's no greylisting: new senders are scored, not made to wait.
  3. A full mailbox gets 452, "try again later", never a bounce.
  4. Dovecot stores it through LMTP, in Spam if Rspamd says so.

If Rspamd is down, mail waits and is retried. It never slips through unchecked.

Mail going out

  • Every sender logs in, and a login may send only as its own addresses. That's checked by Postfix.
  • Rspamd signs with DKIM and ARC, using one 2048-bit key per domain with the selector wombat.
  • Relay accounts are for websites and devices: they can log in to send, never to read mail.
  • Outgoing mail uses DANE where the other side publishes it, and TLS 1.2 or newer.

Spam and viruses

Score 6 or moreGoes to the Spam folder
Score 15 or moreRefused
Moved into SpamRspamd learns it as spam
Moved out of SpamRspamd learns it as good mail (not when moved to Trash)

Rspamd's own interface is at /rspamd/ on the hostname, behind the panel's sign-in, for whole-server admins.

Web addresses

mail.example.com/panel/The panel
mail.example.com/rspamd/Rspamd's interface
mail.example.com/Yours: a plain page until you put something else there, in /var/www/wombat-email/www/ (plain files; the installer never touches them once changed)
webmail.example.comWebmail
mail.example.com/dav/Contacts and calendars, when switched on
mta-sts.example.comThe MTA-STS policy
autoconfig.example.comAutomatic setup for Thunderbird and others
autodiscover.example.comAutomatic setup for Outlook

Apache runs in its event mode, with HTTP/2. PHP doesn't run inside Apache (there's no mod_php): it runs in PHP-FPM, and Apache hands it each .php request over a local socket. Every PHP application has a pool of its own, running as its own user: the panel as wombat-panel, webmail as wombat-webmail, so neither can reach the other. Ubuntu's shared default pool (www) is switched off.

The panel

  • The owner sees everything. Domain admins see only their own domain's mailboxes and aliases, and use a panel password that's separate from their mailbox password.
  • A new device needs a code mailed to you; trusted devices skip it for 30 days.
  • The panel can't do root work itself. It leaves a request, systemd notices, and the installer applies it. Nothing polls.
  • Stats draws what the server has been doing, from an hour to five years, your server and the mail server apart, as on Status: CPU, memory, disk, network, how long each service was up and fail2ban's bans; then mail in and out, refused and bounced mail, spam and viruses, and logins. collectd measures it every minute as its own user, which can read the logs and nothing more; the panel only reads its files. The newest few minutes arrive in batches, to save disk writes. Stats aren't backed up: a restored server starts them afresh.
  • Updates installs new versions of Wombat-Email and Ubuntu's waiting updates, each with one button (see Updating).
  • Migrate copies each mailbox's old mail from the server it lived on before (see Migrate).
  • Report a bug, in the menu, opens a new bug report in the forum with your version and the page you were on filled in. Nothing is sent until you press Post there.
  • Change your password in Account. If you've lost it, run wombat-email-admin password as root.
  • Logging in over SSH shows a short summary instead of Ubuntu's adverts: disk, memory, the mail queue, anything that needs attention, waiting updates and the last backup, the same as the panel says. Your hosting company's welcome banner is removed once; after that /etc/motd is yours for any note of your own.

Webmail

Roundcube, logging in with the mailbox's address and password. It's at webmail.example.com, not under the panel's address, so a script hidden in a mail can't reach a signed-in panel. It has its own user, PHP pool and database. Eight failed logins in 15 minutes ban the address for an hour.

It comes from Roundcube's own signed releases, because Ubuntu's package is older. Each morning the server takes the newest release in the 1.7 series. If that fails, the running version stays and the daily report says so. A new series is reported, not installed.

Mail rules: each mailbox sets its own under Settings › Filters, Forwarding and Out of Office. Dovecot runs them as mail arrives, after the spam check, so they work with webmail closed, and mail filed into Spam is never forwarded or answered. Forwarded mail goes out with the mailbox's own address as its sender, so the receiving server's SPF check passes; an out-of-office reply comes from the address that was written to. The rules are kept in the mailbox's folder, so they're in the backups. Webmail saves them through Dovecot's ManageSieve, which listens only on the server itself: no port is open for it.

With contacts and calendars switched on, webmail also has a Calendar, and its Contacts show the mailbox's address book on the server.

Contacts and calendars

Off until you switch it on, in the panel under Settings › Contacts and calendars. Each mailbox then keeps its contacts and calendars on your server, and every device that signs in gets the same ones.

  • Signing in: the mailbox address and its mail password, checked by Dovecot as for mail. Relay accounts and turned-off mailboxes can't sign in.
  • Who sees what: each mailbox sees only its own. Each gets an address book called Contacts on its first sign-in, because iPhones and Macs don't make one themselves.
  • Devices: iPhone, iPad, Mac and Thunderbird have it built in; Android uses the DAVx⁵ app. The settings for each are in the panel.
  • Webmail: a Calendar, and Contacts that show the same address book as the phone. Both sign in with the webmail login, so there's nothing to set up.
  • Nothing new is open: Radicale listens only inside the server, and Apache passes mail.example.com/dav/ to it. Eight failed sign-ins in 15 minutes ban the address for an hour.
  • Backups: the calendars and contacts are plain files in /var/lib/radicale/collections, in the nightly backup.
  • Switched off again: Radicale stops, /dav/ goes, and so does webmail's Calendar. What's there is kept, and comes back when you switch it on.

Add-ons

Wombat-Email is a mail server and nothing else. Add-ons are separate pieces installed beside it, each from its own repository with its own version. The mail panel lists the ones that are on, and each has a panel of its own with the same look and sign-in. Switching one off removes its pages and deletes nothing.

They aren't available to download yet. They run on our own server while they settle.

A wombat in a blue bow tie, standing on extra legs

Websites

  • Your web server and its sites: if each answers, its certificate, its size.
  • Add a site: empty, or WordPress with WP Cerber. Each gets its own user, PHP and files login.
  • Connect mail gives a site's www@ relay account a new password on both servers, so its contact forms send logged in.
  • It talks to a small agent on the web server, and every request is signed.
A wombat in glasses with a calculator and a stack of bills

Billing

  • Clients, their domains and hosting, bills and payments, and what each domain costs you at the registrar.
  • Bills are made ahead of each renewal, with reminders. Clients pay by card through Stripe, once or automatically.
  • A client site where clients sign in with an emailed code, see their bills and pay.
  • Pausing a client who hasn't paid: their websites show a paused page, mail still arrives but nobody can log in or send, and auto-renew goes off. It all comes back by itself once they pay.
  • Nothing reaches a client until you switch Billing to live.
A wombat in sunglasses playing an electric guitar

Band Sites

  • Websites for bands, made with BandKit, on top of Websites.
  • A band site is ready in a minute or two, with its owner's login shown once.
  • One update to BandKit reaches every band site.

Encryption

  • Certificates: ECDSA from Let's Encrypt, renewed by themselves, proved through DNS so no website has to be reachable first. The server's own key is kept across renewals, so DANE stays valid.
  • Each domain has one certificate for its small sites: mta-sts, autoconfig, autodiscover, openpgpkey and webmail.
  • MTA-STS is set to enforce: other servers must use TLS to reach you.
  • Passwords are stored as Argon2id hashes, and the rule is the same everywhere: 16 or more characters with a lowercase letter, an uppercase letter, a number and a symbol.

Private mailboxes

A private mailbox stores its new mail encrypted to its owner's OpenPGP key, so only the owner's device can open it. The server keeps only the public key, so the stored mail can't be read even by someone who copies the server's disk. Mail from outside is plain for the moment it takes to arrive and be encrypted, as with any mail server; mail sent encrypted by its writer never is.

  • Turn it on in the panel: Mailboxes › a mailbox's menu › Make private. Paste the owner's public key, or let the owner's WombatMail send it (that choice lasts 7 days).
  • The subject is hidden too. It reads "..." on the server; the real one is inside the encryption (OpenPGP/MIME with protected headers).
  • Everything is encrypted: mail that arrives, and copies any mail app saves there, Sent and Drafts included. Mail already in the mailbox stays as it was.
  • Spam checks still work. They run on arrival, before the mail is encrypted.
  • A password alone can't undo it. Only an admin can make the mailbox ordinary again or change its key, so a stolen password can't turn the encryption off.

To read it, the owner needs a mail app with OpenPGP and the private key, such as WombatMail or Thunderbird. iPhone Mail shows only "...", and the server can't search it.

In webmail, private mail opens with Mailvelope, a free browser add-on for Chrome, Firefox and Edge. The private key stays in the browser and never reaches the server. To set it up:

  1. Install Mailvelope from mailvelope.com, then sign in to webmail (sign out and in again if you were already in).
  2. In webmail, go to Settings › Encryption, tick Enable and Use Mailvelope main keyring, and Save.
  3. Put the mailbox's private key in Mailvelope:
    • Without WombatMail: in Mailvelope, generate a key for the mailbox's address and export its public key. The admin pastes that in the panel (Mailboxes › Make private). Keep Mailvelope's backup of the private key somewhere safe: the key lives only in that browser.
    • With WombatMail: in Mailvelope's keyring, choose Import and paste the key text from the recovery kit. Its password is the recovery code, in capitals and without the dashes.

A private message then opens in the reading pane once Mailvelope has the key's password. The list still shows "..." as its subject. "Key not found" under a message is about the sender's signature: Mailvelope doesn't have their key to check it.

If the owner loses the private key and its backup, that mail is gone for good. Nobody can open it, not even the server's admin.

Key directory: each domain publishes its mailboxes' public keys at openpgpkey.example.com (the Web Key Directory standard), so other people's mail apps find them and can send encrypted mail. An ordinary mailbox can publish its key too (Publish a public key), without becoming private.

Keys that end: the keys are checked every morning. The daily report and the Mailboxes page name a key 30 days before it ends. Its owner renews it in their mail app and sends it again; a renewed key needs only the mailbox's password, since only the key's owner can renew it. When a private mailbox's key has ended, its new mail waits in the queue until a renewed key comes.

Pictures in mail

The server fetches the pictures in arriving mail itself, the moment the mail arrives, and keeps a copy. The message then shows the copy, so a sender can't tell when it's read, or from where.

  • Why it matters: a picture loaded from the sender's server tells the sender the mail was opened, when, and the reader's IP address. Many carry a code per reader in their address.
  • Every message looks opened on arrival, and only by the server. Reading it later loads the copy from your own server; nothing reaches the sender.
  • Webmail and WombatMail show the copies without asking. Other remote pictures still wait until you allow them.
  • Left as they came: spam, signed or encrypted mail (a change would break the signature), and pictures that can't be fetched.
  • Private mailboxes get theirs fetched before the mail is encrypted.
  • The copies go with their message, the morning after it's deleted.
  • Safe to fetch: only real pictures, with size and time limits, and never from this machine or a private network, even after a redirect. The copies can't be used to fetch anything else, and nobody's visits to them are logged.

It's on for every mailbox. Settings › Pictures in mail turns it off for the whole server; a mailbox's menu on Mailboxes turns it off for one.

Read receipts

A message can ask your mail app to tell the sender when you open it. The server removes those requests from arriving mail, so your mail app never asks and the sender never hears.

  • What is removed: Disposition-Notification-To, the read receipt request mail apps act on, and the older Return-Receipt-To and X-Confirm-Reading-To.
  • Delivery reports are different: when a sender asks, this server still reports that the mail arrived, as every mail server does. That says nothing about reading it.
  • Private mailboxes have the requests removed before the mail is encrypted.
  • Mail you send is left alone: you can still ask others for a receipt.

It's on for every mailbox. Settings › Read receipts keeps the requests for the whole server; a mailbox's menu on Mailboxes keeps them for one.

Security choices

  • Each service has its own login with only the rights it needs. The mail services read the database and can't write to it.
  • The panel never holds your Cloudflare token.
  • The panel's copy of the backup password shows only after your panel password, and each showing is logged. Alone it opens nothing, because the backups' storage stays root's.
  • The open-relay test runs on every installer run, from the server's own public address.
  • wombat-email.com counts downloads of the installer as one plain number, with no addresses or other details. Updates from the panel are counted apart, the same way. Your server doesn't report anything else, apart from asking the website for the newest version: at most once an hour, and when you open Status or Updates.

What runs when

Time (local)What
03:30Backup
04:15Mail test: a throwaway mailbox proves receiving, sending, DKIM, and that a wrong password, relaying, the spam test and a test virus are refused
06:00Webmail update, then the daily report (it also rechecks mailboxes' public keys, removes the pictures of deleted mail, and asks wombat-email.com for the newest version): what needs attention, then a section for each part of the server (services, disk, updates, backup, mail, spam, certificates, security, DNS), one ok, WARN or CRIT line per check
Mondays 06:15The weekly report: mail per address, every login and where from, failed logins and bans, refused mail
Every minuteStats measured (collectd)
AutomaticUbuntu's security updates and certificate renewals

Rspamd comes from its own repository and is updated by hand; the daily report tells you when there's a new version.

Backups

How backups work

restic takes one encrypted snapshot at 03:30 each night: settings and secrets, mail, DKIM keys, certificates, and database and Redis dumps. It keeps 14 daily, 8 weekly and 12 monthly snapshots. On Sundays it also frees the space of old snapshots and reads back 10% to check them, so Sunday's backup takes longer.

Choosing where backups go

Until you choose somewhere else, backups stay on the server, which protects you from mistakes but not from losing the server. To send them off it, open Settings, go to Backups and press Choose where backups go. It works with Google Drive, Dropbox, OneDrive and Box through rclone, and with S3 or SFTP too. You log in with one command, run one more, and press Allow in your browser.

What the link can reach. Google Drive's link only reaches the files it makes. Dropbox's, OneDrive's and Box's links reach everything in the account, so your server would hold a key to all of it. If that account has other things you care about, use a separate one for backups, or, with Dropbox, keep the link to one folder as below.

Google Drive

Be patient with Google Drive. It's the choice most people already have, and it's free, but it's slow: setting up took about six minutes in our test with almost no mail, and each nightly backup took about fifteen, twenty on Sundays. Nearly all of that is waiting on Google, not moving mail, so it grows slowly as your mail does. Restoring is slow too, and a lot of mail can take hours. Dropbox has been much quicker (a backup took 35 seconds in our test, against about fifteen minutes to Google Drive), though a mail archive will soon need a paid plan. Settings shows how long your backups take, so you can decide. If they take a very long time, it may be worth paying for faster storage; if you don't mind, that's fine. A disaster recovery that takes a long time is far better than having no backup at all.

Dropbox, kept to one folder

Make your own Dropbox app of the App folder kind and the link sees only its folder, Apps › your app's name, never the rest of your Dropbox. It's a few minutes' work:

  1. Open the Dropbox App console and sign in. Choose Scoped access (the Dropbox API) and App folder, give it a name, like wombat-mail-backup (names are shared by everyone, so add something of your own), and press Create app.
  2. On the Permissions tab, tick account_info.read, files.metadata.write, files.content.write, files.content.read and sharing.write, then press Submit.
  3. On the Settings tab, under OAuth 2 Redirect URIs, add http://localhost:53682/. Keep the tab open: the App key and App secret are there.
  4. Open a new Terminal (or PowerShell) window on your computer and log in with exactly this command, from Choose where backups go in the panel. The -L part is what lets your browser's Allow reach the server; an ordinary login won't do:
    ssh -L 53682:127.0.0.1:53682 root@YOUR.SERVER.IP
  5. In that window, run wombat-email-backup-link other. rclone asks its questions: n for a new remote, the name wombat-backup, the storage dropbox, the App key as client_id and the App secret as client_secret, n to Edit advanced config? and y to Use auto config?. Open the link it prints, starting http://127.0.0.1:53682/, and press Allow. rclone then shows the remote's settings, including a long token: that's normal, and it stays on your server. Press y to keep the remote, then q to quit. The rest carries on by itself.

Encryption, space and the backup password

Everything is encrypted before it leaves the server, so the storage only ever holds scrambled data.

Check there's room: a free account can fill up, and when it does, backups fail and the daily report says so. Save the backup password from the same page: without it, no backup can be read, not even by you.

Restore

To bring a server back, on a new VPS:

  1. Install Wombat-Email with the same hostname.
  2. Log in with ssh -L 53682:127.0.0.1:53682 root@YOUR-IP, then link your storage. Use the service you chose, like this one for Google Drive:
    wombat-email-backup-link drive --existing
  3. Run the restore. It asks for your backup password, and for the hostname to be typed, because it replaces what's on the server:
    wombat-email-restore

Be patient: this downloads everything, and it's slow from Google Drive. It tells you how long it took when it finishes.

That brings back your settings, passwords, databases, mail, DKIM keys and certificates, then runs the installer to put everything in line. If the server has a new address, the installer updates your DNS, and you set reverse DNS with your VPS host. For backups stored anywhere else, use wombat-email-restore --repo REPO.

DMARC

One TXT record, _dmarc.example.com, tells other servers what to do with mail that claims to be from your domain but fails its checks. Wombat-Email gives a new domain p=reject: forged mail is refused. Change it in the panel under DNS › DMARC.

The details

What counts as failing. The mail passes neither SPF nor DKIM for your domain. Passing them for some other domain doesn't count. Without a DMARC record, every receiver decides for itself what to do with a forgery.

PolicyIn the panelWhat happens to failing mail
p=rejectRefusedRefused at the door. Only servers that sign for your domain can send as it. The right choice once you know every sender.
p=quarantineGoes to spamDelivered to the Spam folder. The careful choice while something else may still send as your domain.
p=noneDelivered as usualDelivered, and only reported. Good for watching, but it protects nothing.

Other tags. sp= sets a different policy for subdomains. adkim= and aspf= (r relaxed, s strict) say whether a subdomain's signature counts for the domain. pct= applies the policy to part of the mail only. The panel keeps all of these as they are when it changes the policy.

Reports. With rua=mailto: and an address, Google, Yahoo, Microsoft, Comcast and others send a daily summary of every message they saw claiming to be from your domain: which servers sent it, and whether SPF and DKIM passed. It arrives as a zipped XML file, a few a day.

  • Failure reports (ruf=, fo=1) ask for a copy of each failing message. The big providers don't send them, for privacy, so the panel removes them.
  • Reports sent to an address at another domain only arrive if that domain agrees, with its own TXT record. The panel uses an address at the same domain, so nothing else is needed.

Why reports exist. For a domain that already sends mail from several places, the usual advice is to start at Goes to spam with reports on, and watch for a few weeks. The reports show anything you forgot that sends as your domain: a billing system, a newsletter service, a website's contact form. Fix each one (add it to SPF, or let it sign with DKIM), then move to Refused and turn reports off. They've done their job when only your own server shows up passing, and the failures are all forgers.

A real case: a server moved to Wombat-Email, with six weeks of reports. 184 report messages covered 311 messages from its own domains, and every one passed. The 6 failures were all forged, from random addresses with made-up subdomains. The verdict: Refused, reports off.

What Wombat-Email does.

  • A new mail domain gets v=DMARC1; p=reject; when nothing else sends as it. It gets v=DMARC1; p=quarantine; instead when its SPF lets another service send (an include:, another address, redirect=), or its mail was still going to another server. Both Cloudflare and the public DNS answer are checked first. Reports are off either way.
  • A name that never sends mail gets v=DMARC1; p=reject;.
  • A DMARC record that's already there is never overwritten: the policy is yours.
  • DNS › DMARC in the panel shows every mail domain's policy and reports, with a suggestion for each. Change one domain or several at once; you see every record that would change before anything is sent, and each zone is saved first.
  • Mail coming in that fails its own domain's DMARC scores higher than Rspamd's defaults: 3.0 when the domain asks for Goes to spam, 5.0 when it asks for Refused.

TLS reporting

A TXT record, _smtp._tls.example.com, asks the big providers for a daily summary of their connections to your server, and whether encryption worked each time. In the panel it switches on and off with the DMARC reports.

The details

The record reads v=TLSRPTv1; rua=mailto: and an address. Google and Comcast are among those that send the summaries, as JSON. A bad certificate, or a failed MTA-STS or DANE check, shows up here first.

It pairs with MTA-STS and DANE: they make senders insist on encryption, and TLS reporting tells you when that went wrong. Turn it on for a few weeks after moving a domain over, then off.

SPF

A TXT record at your domain that lists the servers allowed to send as it. Wombat-Email writes v=spf1 mx -all: this server, and nobody else.

The details
  • mx means the servers in the domain's MX record, which is this one.
  • -all says that mail from anywhere else fails. ~all (a soft fail) asks receivers to accept it but treat it with suspicion. With DKIM and DMARC in place, -all is safe: forwarded mail keeps its DKIM signature.
  • A domain that already has an SPF record keeps every sender in it, and mx is added. A domain may have only one SPF record.
  • The 10-lookup limit. Each include:, a, mx, ptr, exists and redirect= costs a DNS lookup, and includes inside includes count too. Over 10, SPF fails for every message. Wombat-Email's own check counts them the same way receivers do.

DKIM

A signature on every message you send, checked against a public key in DNS at wombat._domainkey.example.com. Rspamd signs with one 2048-bit key per domain.

The details
  • wombat is the selector: the name the key is published under. A domain can have other keys under other selectors for other services. The panel lists those as keys this server doesn't sign with, and leaves them alone.
  • A 2048-bit key is longer than one DNS text string can hold (255 characters). Wombat-Email sends it to Cloudflare as one value, and Cloudflare splits it when it answers. Cloudflare's zone file import refuses a key that's already split.
  • Unlike SPF, a signature survives forwarding: it travels with the message.

MTA-STS

Tells other servers to always encrypt mail sent to you, with a valid certificate, and never fall back to sending it in the clear. The policy is a small file at mta-sts.example.com, and the TXT record _mta-sts.example.com says which version is current.

The details

Wombat-Email's policy is mode: enforce, names mail.example.com as the only mail server, and asks senders to remember it for a week. The TXT record's id is a fingerprint of the policy, so it changes whenever the policy does. Gmail, Microsoft and Yahoo follow MTA-STS. Without it, an attacker between two servers could quietly strip the encryption.

DANE and DNSSEC

DNSSEC signs your DNS zone, so its answers can't be forged. DANE then publishes your mail server's key in that signed zone, so senders can check the certificate without trusting anyone else. Wombat-Email turns DNSSEC on for every zone and publishes the DANE record.

The details
  • The DANE record is a TLSA record at _25._tcp.mail.example.com: 3 1 1 and a SHA-256 fingerprint of the server's own public key.
  • The certificate renews every few months, but the key stays the same, so the record never has to change.
  • DNSSEC needs a DS record at your domain's registry, and the panel shows waiting for the registrar until it's there. Bought at Cloudflare, Cloudflare sends it by itself, within one to two days; nothing hurries it. Bought elsewhere, add the DS record that the panel's DNS page shows at your registrar.
  • Mail going out uses DANE wherever the receiving side publishes it.

Null MX

An MX record of 0 . says a name accepts no mail at all (RFC 7505). Wombat-Email puts one on every name that never handles mail, together with v=spf1 -all and p=reject, so nobody can send mail pretending to be that name.

The details

The server's small sites each get all three: mta-sts, autoconfig, autodiscover and webmail. Other domains in your Cloudflare account that send no mail can get the same from the panel's DNS page (Protect them). A name with mail of its own (an MX to a real server, an SPF that lets someone send) is left alone.

Reverse DNS

Your server's address should name your hostname when looked up backwards, and the hostname should point to that address. Many providers refuse mail when the two don't match. It's set with your VPS host, not in your DNS; the panel's Status page checks it.

ARC

When an alias forwards mail on, the next server sees it coming from yours, so its original SPF check can fail. ARC fixes that: Rspamd adds a sealed note saying what SPF, DKIM and DMARC said when the message arrived here, so the next server can trust it.

Greylisting

An old trick: refuse the first attempt from an unknown sender and wait for it to try again, because many spam senders never retry. Wombat-Email doesn't use it. It delays real mail too, sometimes for long enough that sign-in codes expire. Rspamd scores new senders straight away instead.

Bayes

Rspamd's learning filter: it learns from the mail you move into and out of Spam. Wombat-Email keeps one shared filter for the server, and one for each mailbox.

The details
  • A mailbox's own filter takes over for that mailbox once it has learned from 20 spam and 20 real messages.
  • The shared filter starts scoring after 200 of each. It also learns by itself from clear cases: mail refused at the door as spam, and mail scoring −2 or lower as real. It keeps the two in balance.
  • The shared filter alone can't send verified mail to Spam: mail that passed its checks needs more than that one opinion. A mailbox's own filter can, because it learned from that mailbox's own choices.
  • Moving mail to Trash teaches nothing.

BIMI

Shows your logo next to your mail in some inboxes. It needs DMARC at Goes to spam or Refused, a logo in a strict SVG format, and for Gmail and Apple Mail a paid mark certificate. Wombat-Email doesn't set it up; a BIMI record you add yourself is left alone.

Refusals by the big providers

A big provider sometimes refuses mail because of your server's address or your hosting company's network, not because of the message. Wombat-Email's daily report and the panel's Status › Delivery explain each refusal, say whether later mail got through, and give the provider's form with what to paste into it.

The details
ProviderWhat you seeWhat it means
MicrosoftS3150Part of your hosting company's network is on Microsoft's block list, or Microsoft is slowing mail from your address. Usually lifts by itself within days.
MicrosoftS3140Your address, or part of the network, is on the block list, and it doesn't lift by itself: use the form.
Microsoft 3655.7.606Business mailboxes block your address. Remove it yourself on the delist portal.
Gmail4.7.28An unusual amount of unwanted mail from your address or network; Gmail is limiting it for now. Passes as the rate drops.
Gmail5.7.25No reverse DNS for your address, or it doesn't match the server's name.
Gmail5.7.26The message failed SPF, DKIM or DMARC for the domain in its From line.
Yahoo, AOL[TS..]Mail held back for a while. The server keeps trying.

Where to ask. The daily report gives the right one with each refusal.

  • Outlook.com, Hotmail, Live: olcsupport.office.com
  • Microsoft 365: the delist portal, sender.office.com
  • Yahoo and AOL: senders.yahooinc.com/contact, Problems Delivering Mails, then Open Ticket
  • iCloud: [email protected]
  • Gmail: no form, only Google's sender guidelines

Public block lists. Spamhaus and Barracuda are the ones that matter, and each has a removal page. SpamCop entries expire by themselves. UCEPROTECT lists whole networks and charges for removal: ignore it, the big providers don't use it.

Microsoft's SNDS shows how Outlook.com sees an address that sends it 100 or more messages a day.

Files and commands

/opt/wombat-emailThe installer
/etc/wombat-email/settingsYour choices (hostname, address, time zone)
/etc/wombat-email/secrets/Passwords and tokens, root only
/var/mail/vmailThe mail
/var/www/wombat-emailPanel and web files
/var/www/wombat-webmailRoundcube
/var/backups/wombat-emailLocal backups, dumps, and the mail of removed mailboxes
/var/log/wombat-emailWombat-Email's logs
/var/lib/collectd/rrdStats: one round-robin file per series
bash /opt/wombat-email/install.shCheck everything; changes only what isn't right, and says what it changed
wombat-email-admin password [EMAIL]Set or reset a panel password
wombat-email-admin forget-devicesEvery device needs a mailed code again
wombat-email-admin log [N]The panel's log
wombat-email-mailtestRun the mail test now
wombat-email-report --printShow the daily report
wombat-email-weekly --printShow the weekly report
wombat-email-copy-mailCopy a mailbox's mail from another server, or import a downloaded copy with --files (Migrate)

Changing things: the wombat's burrow

Wombats dig their own burrows, then keep them exactly how they like them. Move the furniture and the wombat puts it back, without asking. It's a stubborn animal, and this is a stubborn mail server.

Hand edits to the files Wombat-Email manages will be lost. Not "might be". Every installer run puts them back, and so do many clicks in the panel, because adding a domain runs the installer too.

That's the deal, and it's why this works. Every setting has been tested with all the others, updates can fix every server safely, and running the installer can repair yours, because the burrow is built the same way each time.

The wombat'sYours
Files it writes for Dovecot, Rspamd, Apache, PHP, fail2ban and UnboundYour mail, mailboxes, aliases and domains
The Postfix settings it managesAnything you set in the panel
Your server's DNS records for mailOther DNS records: it leaves what it didn't make alone
Its own programs and foldersYour own page at mail.example.com, once you've replaced the default one
  • If you dig anyway: it's your server and you have root. You're on your own, though, and nothing here is tested with your changes.
  • If it's overwritten: the wombat doesn't eat your work. A dated copy goes to /var/backups/wombat-email/, so you can look at what you had.
  • If you need something it doesn't do: ask for it. If enough people want it, it can become a proper setting in the panel. And the code is yours under the AGPL license, so you can always build your own burrow.

Updating

The panel shows your version at the bottom of the menu. When a new one is out, the Dashboard says so and Updates in the menu shows a badge. Open Updates: it shows what's new, and one button installs it. It takes a few minutes, mail keeps flowing, and you get an email with the result. Ubuntu's waiting updates install from the same page, and if a restart is needed afterwards, it says so; nothing restarts by itself.

Skipped versions don't matter. An update always goes straight to the newest version, from any older one: the changes of every version in between come with it, database ones included, and the page shows all their release notes.

Every release is signed with Wombat-Email's own key, and your server checks the signature before installing anything: a changed download is refused. If a new version doesn't work, the one running before is put back by itself. Settings and mail are stored elsewhere and aren't touched.

By hand instead, on your VPS as root, the same command you installed with does the same:

curl -fsSL https://wombat-email.com/get.sh | bash

If something goes wrong

The installer stopped with an error? Run it again. Sometimes a download, a DNS change or a service starting up just takes longer than it should, and a second run is all it needs. The installer never starts over: it checks each piece, changes only what isn't right yet, and carries on from there.

bash /opt/wombat-email/install.sh

The same error, at the same step, again? Then something real is in the way, and it's time to ask. Post on the forum with the step's name and the lines that start with !!. Every run is written to /var/log/wombat-email/install.log, so the full story is there if someone asks for it. Leave out any passwords or tokens before you post.

Something in the panel looks wrong? Status checks everything live and says what it found. Most problems it reports come with what to do.