Install
Eight steps, and most of the time is the installer working by itself. Every step says where it happens, so you always know where a command goes. Start with the install helper: it turns this whole guide into yours.
Your install helper start here
A new server comes with a lot to keep straight: an IP address, a root password, a hostname you've just chosen. Type three of them once, here, and every command on this page is written for your server, ready to copy, with nothing to edit. The docs then show your own names too.
What you type stays in this browser, remembered for when you come back. It isn't sent anywhere.
Your server details
3 of 3 still to fill in. Until then the commands show examples and their Copy buttons wait.
Your IP address is in your VPS host's control panel. The hostname is a name you choose for the server, on a domain whose DNS is on Cloudflare (more). Your email address gets the server's reports and warnings, and your panel sign-in codes. An address somewhere else is best, so a warning can still reach you if this server breaks. An address on this server works too: step 8 makes its mailbox.
-
Install Ubuntu
WhereOn your VPS host's websiteThe control panel where you rent the server, in your web browserTwo things to do here, both before you leave your host's website.
-
Install Ubuntu 26.04 LTS. In your host's control panel, install (or reinstall) Ubuntu 26.04 LTS. Your host gives you a root password. If it offers a field for an SSH key and you already have one, paste your public key there.
-
Set the reverse DNS. While you're there, set the reverse DNS of your IP address to
mail.example.comif your host has that setting. If it doesn't, ask their support; it can come later.Where it is depends on the host: look for Reverse DNS, rDNS or PTR, often under Network or your server's IP addresses. Some hosts have no such page, and their support sets it for you.
No reverse DNS setting? An email for your host's support
Send this from your host's support page or the address on your account. Like the commands, it's written for your server once the install helper is filled in.
Subject: Reverse DNS (PTR) for YOUR.SERVER.IP Hello, Please set the reverse DNS (PTR record) of my server's IP address YOUR.SERVER.IP to: mail.example.com The server will send mail, and receiving servers check that its address and its name match both ways. mail.example.com will point to YOUR.SERVER.IP (its A record), so forward and reverse DNS will agree. Thank you.Some hosts only set it once the name already points to the address. If they say so, write again after step 7: by then the installer has made that record.
-
-
Make a Cloudflare token
WhereOn Cloudflare's websiteIn your web browser, signed in to your Cloudflare accountOpen Cloudflare
Why Cloudflare
- Free and flexible DNS, on the free plan
- Safer: one of the largest networks on the internet
- Any registrar: your domain stays put
- Domains at cost, if you move them
A mail server is only as trusted as its DNS. Before accepting your mail, other providers look up records published for your domain: MX says which server receives its mail, SPF lists the servers allowed to send it, DKIM publishes the key your mail is signed with, and DMARC tells everyone to reject mail that fails those checks. Together they stop others from sending mail in your name. MTA-STS and DANE then make sure mail to you travels encrypted.
Wombat-Email works out every one of these records itself, checks them, and keeps them right when you add a domain or a certificate renews: nothing copied by hand, nothing mistyped, nothing forgotten. It then publishes them to Cloudflare through Cloudflare's API. Cloudflare is where your records live: its DNS is free and flexible, it runs on one of the largest networks on the internet, its API takes every record type a mail server needs, and it signs your domain with DNSSEC at no cost. Its proxy, certificates and firewall are there for your websites too.
Your domain can stay where it is. Cloudflare's DNS works with any registrar: you only point your domain's name servers at the two Cloudflare gives you. And if you'd like a better registrar too, Cloudflare Registrar sells domains at cost, the price the registry charges with no markup, including at every renewal. Most registrars charge more, especially from the second year.
-
Point your domain to Cloudflare. The installer uses this to write your DNS records. Your domain must already be on Cloudflare. Cloudflare is free to use and works with any registrar: add your domain to a free Cloudflare account, then point its name servers at Cloudflare where you bought it. This is what gives your mail server the critically accurate DNS it needs. Tip: Cloudflare's own registrar sells and renews at cost, and with it DNSSEC needs nothing from you. Already there? Go on to B.
-
Open API Tokens on your profile. Cloudflare has two places for API tokens, and you need the one on your own profile. Click your person icon at the top right, then Profile. In the menu on the left, click API Tokens. Or go straight there: API Tokens on your profile.
-
Create the token. Press Create Token. Under Custom token, press Get started. Give it a name, like
Wombat-Email, and set:Permissions Three rows; press + Add more for each after the first: Zone · Zone · Readfinds your domainsZone · DNS · Editwrites your mail's DNS recordsZone · DNS Settings · Editturns DNSSEC on for you
Zone Resources Include · All zones. Best: a domain you add later then works without touching the token. (You can pick only the domains you'll use, but the token must then be widened before each new one.)Client IP Address Filtering Allow: YOUR.SERVER.IP/32Copy it exactly,/32included: it means this one address. The token then works from your server only. One token per server: a token from another server won't work here (it's limited to that server's address), and a new token is quicker than widening an old one.Then press Continue to summary and Create Token.
-
Leave the token on screen.
Don't close this page. Cloudflare shows the token once. Keep that page open: you'll paste it in step 7, after five more steps in other windows. Leave this browser tab where it is and come back to it then.
If it does get closed, nothing is lost: make a new token the same way, and delete the one you didn't use from API Tokens.
-
Put your SSH key on the server
WhereIn a terminal on your own computerTerminal on a Mac or Linux, PowerShell on Windows. Not logged in to the VPS yetThe installer turns password logins off, because they're the first thing attackers try. From then on your computer logs in with a key. Skip this step if your host already took your key in step 1.
Reinstalling a server you've logged in to before? Your computer remembers the old one and will refuse with
REMOTE HOST IDENTIFICATION HAS CHANGED. Clear it first, in Terminal or PowerShell:ssh-keygen -R YOUR.SERVER.IPOpen Terminal (on a Mac: Applications, Utilities, Terminal). This makes a key if you don't have one; press Return at each question.
[ -f ~/.ssh/id_ed25519.pub ] || ssh-keygen -t ed25519Then copy it to the server. Answer
yesif asked about the fingerprint, then type the root password from step 1 (nothing shows as you type).ssh-copy-id -i ~/.ssh/id_ed25519.pub root@YOUR.SERVER.IPYou should see
Number of key(s) added: 1.Underneath, it says
Now try logging into the machine, with: "ssh -i …". Ignore that: the plainssh root@…in the next step does the same.Press Start, type PowerShell and open it. This makes a key if you don't have one; press Return at each question.
if (!(Test-Path ~/.ssh/id_ed25519.pub)) { ssh-keygen -t ed25519 }Then copy it to the server. Answer
yesif asked about the fingerprint, then type the root password from step 1 (nothing shows as you type). Windows 10 and 11 come withsshandssh-keygenbut notssh-copy-id, so this command does its job.Get-Content ~/.ssh/id_ed25519.pub | ssh root@YOUR.SERVER.IP "mkdir -p ~/.ssh; cat >> ~/.ssh/authorized_keys; chmod 700 ~/.ssh; chmod 600 ~/.ssh/authorized_keys"It ends without any message: that's success.
-
Log in to your VPS
WhereIn a terminal on your own computerTerminal on a Mac or Linux, PowerShell on Windows. Not logged in to the VPS yetIn the same window:
ssh root@YOUR.SERVER.IPIt shouldn't ask for a password now. You're on your VPS when the line you type on starts with
root@and ends with#. Every step from here happens in this window. -
Update Ubuntu
WhereIn your VPS's terminalThe window logged in to the server: the line you type on starts with root@ and ends with #apt update && apt upgrade -yIf a screen asks about a changed setting, press Return to keep what's there. If you see
System restart required, or a message about a new kernel, typereboot, wait a minute, then repeat step 4. -
Start the installer
WhereIn your VPS's terminalThe window logged in to the server: the line you type on starts with root@ and ends with #curl -fsSL https://wombat-email.com/get.sh | bash -s -- --hostname mail.example.com --admin-email you@example.org --timezone Etc/UTCThis fetches Wombat-Email and starts it with your hostname, your email address and your time zone (
Etc/UTC, from this browser). -
Paste your Cloudflare token
WhereIn your VPS's terminalThe window logged in to the server: the line you type on starts with root@ and ends with #The installer asks for the token from step 2. Switch to the Cloudflare page you left open, copy the token, come back to this window, paste it, and press Return. Nothing shows while you paste; that's normal. It checks the token with Cloudflare, and asks again if something's wrong.
Then it works through each piece by itself, saying what it changes, and ends with
Done. Leave the window open until then.If it stops with an error, run it again. Sometimes a download or a service just takes longer than it should. The installer picks up where it left off and changes only what isn't right yet:
bash /opt/wombat-email/install.shIf it stops again with the same error at the same step, that's a real problem: ask on the forum, with the lines that start with
!!and the step's name. The whole run is in/var/log/wombat-email/install.log.Cannot use the access token from locationmeans the token is limited to other addresses than this server's: usually a token made for another server. Make this server its own token (step 2, withYOUR.SERVER.IP/32), then give the installer the new one: remove the saved token and run it again; it asks for a token and checks it.rm /etc/wombat-email/secrets/cloudflare-tokenbash /opt/wombat-email/install.shOn a new server it then asks
Restart now? [Y/n], because the server has a new name (and often an update that needs a restart). Press Return to say yes. The window disconnects; wait a minute, then log in again exactly as in step 4. Your prompt now shows the server's new name, and step 8 happens in that new login.If it lists things as Still waiting, that isn't a failure: they're things outside the server that take time, like reverse DNS, and each says what to do. The panel keeps checking them.
-
Set your panel password and sign in
WhereIn your VPS's terminalThe window logged in to the server: the line you type on starts with root@ and ends with #wombat-email-admin passwordPress Enter at the question to have a strong password made for you, and save it in your password manager. It's only shown once.
If your email address is on this server, it also asks for a mailbox password, which must be different, and makes the mailbox. Set that mailbox up in a mail app like Thunderbird before you sign in: the sign-in code goes there.
WhereIn your web browserAny browser, on any computerOpen
https://mail.example.com/panel/and sign in withyou@example.organd that password. A code is mailed to you the first time on each device. You're done: the panel takes it from here. Then open Settings, go to Backups, save your backup password in your password manager, and press Choose where backups go so your backups aren't only on this server.Your panel's Dashboard, the first page after you sign in
Prefer to do it your own way?
All the installer needs is Ubuntu 26.04 LTS, to run as root, and your key in /root/.ssh/authorized_keys (it refuses to run without one, so nobody gets locked out). Log in however you like, for example with PuTTY or your host's browser console, and run:
curl -fsSL https://wombat-email.com/get.sh | bashIt asks for the hostname, your email address, your time zone and the Cloudflare token. To look before you run, download get.sh and read it; it fetches the whole installer, which you can read the same way. Run the installer again any time with bash /opt/wombat-email/install.sh: it only changes what isn't right, and says what it changed. Other options: bash /opt/wombat-email/install.sh --help.

