Run your own mail server on a VPS
Postfix and Dovecot, mailcow, Stalwart or HestiaCP on your own domain, on a server with a dedicated IPv4, reverse DNS you set yourself and SPF, DKIM and DMARC from the DNS panel. From $5.56/mo with the IPv4 included.
- Reverse DNS from the panel
- SPF, DKIM and DMARC from the DNS panel
- Dedicated IPv4 and IPv6
- Billed by the hour
Pick the stack you want to run
Build it piece by piece with our Postfix and Dovecot guides, or start from a packaged server. Every option below runs on a standard CubePath VPS.
Postfix + Dovecot
Step-by-step guide
The classic pair: Postfix exchanges mail with other servers over SMTP, Dovecot stores it and serves it over IMAP. Our guide builds virtual domains and users, LMTP delivery, authenticated sending on port 587 and IMAP over TLS.
HestiaCP
1-click app
A free control panel that installs a mail server (Exim and Dovecot) with webmail, next to web hosting and DNS. Mailboxes and domains are managed from the browser.
mailcow
Step-by-step guide
A complete mail suite in Docker: Postfix, Dovecot, Rspamd, ClamAV and SOGo webmail, with its own admin interface. It asks for at least 6 GB of RAM.
Stalwart
Step-by-step guide
A modern all-in-one mail server written in Rust (SMTP, IMAP and JMAP) with built-in spam filtering and a web admin.
Proxmox Mail Gateway
1-click app
A filtering gateway that sits in front of your mail server and stops spam and viruses before they reach your mailboxes.
Move an existing server
Step-by-step guide
Already running Postfix and Dovecot somewhere else? Our migration guide moves mailboxes, settings and DNS with minimal downtime.
Read this first
Sending mail directly: port 25 and reverse DNS
Outgoing connections to ports 25 and 465 are blocked by default on every CubePath cloud server, over IPv4 and IPv6, as on most cloud providers: it protects the reputation of the whole IP range. Receiving mail is not affected, and port 587 is open, so you can send through an external delivery service from day one.
- To deliver mail straight to other servers, request unblocking from the Network tab of the server. Requests are reviewed case by case and need at least one full billing cycle, the first invoice paid and a description of what the server will send. See blocked SMTP ports.
- Unblocking applies to an IP address, not to the server. If you release the IP or destroy the server, the ports close again for that address, and a new IP always starts blocked.
- Set the reverse DNS (PTR) of the sending IP to your mail hostname, such as
mail.your-domain.com, from the same tab. Gmail and Outlook treat a missing or generic PTR as a reason to reject mail.
Which server for your mail
Starting points, not requirements: spam and virus filtering use most of the memory, and the number of mailboxes adds disk. You can resize from the panel later.
- gp.nano$5.56/mo
1 vCPU · 2 GB RAM · 40 GB NVMe · 3 TB traffic
Postfix and Dovecot for a few mailboxes on one or two domains, or an outbound relay for your apps.
- gp.micro$9.61/mo
2 vCPU · 4 GB RAM · 80 GB NVMe · 5 TB traffic
Postfix and Dovecot with SpamAssassin or Rspamd and a webmail, or Stalwart, for a small team.
- gp.starter$16.71/mo
4 vCPU · 8 GB RAM · 100 GB NVMe · 10 TB traffic
mailcow (at least 6 GB of RAM), HestiaCP or a busier server with antivirus scanning.
- gp.small$30.90/mo
8 vCPU · 16 GB RAM · 200 GB NVMe · 20 TB traffic
Proxmox Mail Gateway, the plan its template recommends, or many domains and mailboxes.
Prices in USD from the live pricing API, with the dedicated IPv4 included (hourly rate x 730 plus the IPv4), the same in Barcelona, Houston and Miami. Billed by the hour with the monthly price as the cap; a server bills while it exists, stopped included.
What gets your mail into the inbox
Most delivery problems come from a short list of settings. Each card links to the guide that sets it up.
Reverse DNS
Set the PTR record of each IP from the server's Network tab, so the address resolves back to your mail hostname.
SPF, DKIM and DMARC from the DNS panel
If your domain uses CubePath DNS, the Recommendations tab checks the three records and creates them for you; edit SPF to add your server's IP and start DMARC at p=none.
DKIM signing
Sign outgoing mail with OpenDKIM so receivers can check it really came from your domain.
TLS everywhere
Let's Encrypt certificates for SMTP and IMAP, STARTTLS between servers and authentication only over encrypted connections.
Spam filtering
SpamAssassin or Rspamd in front of your mailboxes keep incoming junk out, and mark what slips through.
Reputation and blocklists
Check your IP against blocklists, warm it up slowly and watch your logs: the guide lists every check in order.
What comes with every server
A mail server is only as reliable as the machine under it.
Barcelona, Houston and Miami
Keep European mail in the EU on the Barcelona site, or run it in Houston or Miami for the Americas.
Snapshots and backups
Snapshot before an upgrade and roll back if it goes wrong. Automatic backups with up to 7 days of retention are optional, for a surcharge on the plan price.
DDoS protection
Network-level DDoS mitigation on every server at no extra cost.
Hourly billing, no contract
Test a stack for a few hours and destroy the server if it is not the one. You never pay more than the monthly price.
Full root access
Ubuntu, Debian, AlmaLinux, Rocky Linux, Fedora or CentOS Stream, configured exactly the way you want.
Engineers on support
The people who run the network answer, in English and Spanish, including port and reverse DNS questions. The server is unmanaged: you administer the mail software.
From a new server to your first email
Deploy the server
A clean Ubuntu or Debian server for Postfix and Dovecot, or HestiaCP from the Marketplace, in the location closest to your users.
Set the names
Point
mail.your-domain.comat the server, set the reverse DNS of its IP to the same name and add the MX record.Install and secure
Follow the guide for your stack, add TLS certificates and publish SPF, DKIM and DMARC.
Start sending
Send through a relay on port 587 right away, or request port 25 for direct delivery once the account meets the requirements.
Self-hosted email on CubePath: questions
mail.your-domain.com. Make sure the same name resolves forward to that IP, and that Postfix announces it as its hostname.Your domain, your mail server
A dedicated IPv4, reverse DNS and SPF, DKIM and DMARC from the panel, in Barcelona, Houston or Miami.