Why I Abandoned My Mail Server After an Hour
The first thing I thought of after buying my domain was a mail server. I knew that using a commercial service like Gmail is common and convenient. Still, I like owning systems and building and operating things myself. I enjoy the feeling of having something I made up and running.
So my first plan was to host a mail server myself. I have two server nodes at home, in different countries. Their physical separation could be an advantage, but it would not change the fact that I would have to maintain them myself.
Email needs to keep arriving
I brought up the mail server, configured the DNS records, and confirmed that it could receive messages. There were some bumps along the way, but I got the basic setup working.
Then I started thinking about what it would take to operate it. If the server goes down or the network is interrupted, I cannot receive mail right away. Sending servers may retry later, but retry policies and retention periods vary. What if my server were down when an important security alert or work message arrived? The message might eventually get through, but I would not control that process.
This mattered even more because I planned to start using an address on my new domain as a primary email address. I would gradually have to update it across different services. The possibility of missing an important message during an outage made me hesitate.
Port 25 on a home internet connection
I also ran into an unexpected limitation while setting things up: my residential ISP connection blocked port 25. That can make it difficult for a mail server to communicate directly with other servers to send email.
Adding a mail relay in the middle solved the sending problem. I configured messages to pass through that relay when they were sent and confirmed that it worked. The workaround was technically possible, but it added another component I would have to operate.
The cost of preparing for outages
I also considered splitting the receiving path across multiple servers to prepare for outages. But improving availability could require an always-on relay and multiple mail servers. I would also need to keep the servers coordinated. Even a setup combining a VPS with a server I managed myself seemed likely to bring significant costs and maintenance work.
I do not like unpredictable expenses. I did not want an attempt to improve reliability to leave me with more services and costs to keep an eye on. I also had to consider that spending more would not eliminate the possibility of an outage entirely.
I switched to a managed service after an hour
In the end, I spent about an hour building and testing the server, then abandoned self-hosting. I had started the server, configured DNS, and confirmed that it could receive email. But I did not want to take on the availability and maintenance work required to keep operating it.
Instead, I connected my domain to an established email provider. Choosing a managed service does not make outages impossible; the provider or its network could still have problems. Even so, I decided it was more likely to be managed reliably than email running only on my home servers.
My own servers have not actually had a power outage or internet failure. But when operating an important service, I think it is better to consider what could go wrong even before anything has. I chose reliable email delivery over the enjoyment of running every part of the system myself.
My experiment with hosting email on my domain was brief, but it helped me think about what I want to operate myself and what I would rather leave to a provider. I will write more about my feelings on unpredictable costs in another post.
Related reading: The Domain I Bought on a Whim · Why I Avoid Unpredictable Costs.