SMTP
What self-hosting a mail server actually involves
Running your own outbound mail server is entirely possible, and the parts people expect to be hard are not the hard parts.
Postfix, Dovecot and Rspamd are mature, well documented and free. A working installation is an afternoon. Everything after that is where it gets interesting.
Port 25 is the first gate
Server-to-server delivery happens on port 25, and most cloud providers block outbound port 25 by default. AWS, for example, permits it to private addresses only; traffic to public addresses is dropped at the network layer, not by a security group you can edit.
Providers offer a removal request. It may be granted, and it may be refused without appeal. Check the policy and get the block lifted before you build anything, because an otherwise perfect mail server that cannot open port 25 delivers nothing.
See why EC2 blocks port 25 for the details and the routes around it.
The IP matters more than the software
A new IP has no reputation, and no reputation is treated closer to bad than to good. Worse, an IP recycled from a previous tenant may have an actively bad one — and you inherit it.
Before committing: check the address against the major blocklists, confirm you can set reverse DNS yourself, and send a test message to a mailbox you control at each major provider. An IP that lands in spam before you have sent anything real is not usable at any price.
Reverse DNS is not optional
Every sending IP needs a PTR record, and the hostname it returns must resolve forward to the same IP. Receivers check both directions. A mismatch is a strong negative signal because it is what a compromised host looks like.
Your HELO name has to be that same hostname. Announcing one name while the PTR says another is the same signal twice.
What you are signing up to operate
- TLS certificates on the mail service, renewed automatically, with the renewal actually reloading the daemon — a renewed certificate that Postfix never picked up is a common and invisible failure.
- DKIM signing, with keys rotated on a schedule.
- Queue monitoring. A queue that grows is the earliest symptom of almost every delivery problem.
- Bounce processing that attributes failures back to recipients and suppresses automatically.
- Per-provider throttling, so you do not trip rate limits.
- Blocklist monitoring, because you will eventually be listed.
- Security. An open relay is found by scanners within hours and turns your server into someone else's spam cannon.
Warmup
A new IP cannot send at volume on day one. The ramp is measured in weeks, starting at tens of messages a day to your most engaged recipients. See the warmup guide.
This is the part that surprises people who have built the server, verified every record, and find that mail still lands in spam. Nothing is misconfigured. The IP is simply new.
Is it worth it
Yes if you have a genuine requirement — data residency, a compliance position, cost at very high volume, or a need to control the full path — and someone who will own it as an ongoing responsibility rather than a project.
No if the motivation is saving a subscription. The infrastructure is cheap and the attention is not, and the first serious delivery problem will cost more in time than years of a service would have cost in money.
The middle path is what this platform is: your own domains, your own DKIM keys, your own audit trail and your own IP pools, without you operating the MTA. The control that matters is in the authentication and the data, and that part you can have either way.
DKIM signing, SPF alignment and DMARC are set up the moment you verify a domain.