Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Can someone refresh me on the reasons that people don't just run their own mail servers?

Reasons that come to mind:

- Fear of improperly configuring your mail server, contributing to spam/relaying spam.

- Fear of ending up in people's spam boxes?

postfix + opendkim + smtp + tls + spamassassin + fail2ban is not too difficult a setup to achieve...



Receiving emails isn't that hard. But that's not all you're getting into.

Sending them such that they don't get spam-canned is way more difficult than you're admitting. It can take months or years to get decent accept rates, all of which can be lost by a simple misconfiguration.

Parsing received emails if you want to do anything programmatic with them is also very difficult. The specs for email are vague, and even then many providers break them regularly. Want to strip quoted replies or signatures? Now you have a machine learning team, too.

Simply put, sending and receiving email is way cheaper to pay someone dedicated to the task to do. You have to get to a very large scale before it's worth doing yourself.


Well, that's just it, you listed 6 dependencies required to setup a mail server. Then there's the time and effort required to keep everything running.

When it comes to side-projects, mail servers fall into that area where they're distant enough from the thing I'm building to warrant just outsourcing that activity, especially with the number of transactional email providers offering free tiers.


And on top of that, you have a clear separation of responsibility where marketing can do all the A/B testing of the different emails all by themselves, without any effort. It's a great way to reduce bottlenecks in your organisation by separating responsibilities.


Correct, fear of ending up in spam. There's a pretty decent chance you'll get terrible deliverability running your own mail server. Mail services (Gmail, et al) treat new email senders/IPs as 1 step above known spammers.


As someone who used to work at a startup that used Postmark to send alerts, I think its just easier for our small company of less than 12 people.

They provide a fairly easy to use api, and a graphical user interface to monitor sends, they automatically stop sending if a user requests so you don't get marked as span. Of course that happened to us twice, one time the user then inquired why they weren't getting the email alerts....

For us our public facing information website, was controlled by the business dept, not the same as our functional site, done by the engineering side on AWS (before AWS had mail...). So it allowed us to send from the main domain without being put right in the spam folder.

I used Mandrill for a small non-profit site, very low volume, so I'll be moving to probably one of these providers.


> postfix + opendkim + smtp + tls + spamassassin + fail2ban

Yes, here's the reason people don't run their own servers!

> is not too difficult a setup to achieve...

Yes it is, for a lot of people. Not to mention security patches for all this software.

Add that to the fact that Google reportedly is reportedly aggressively classifying mail from new servers as spam (your point 2) and you greatly increase the transaction cost required for people to run their own mailservers.


> postfix + opendkim + smtp + tls + spamassassin + fail2ban is not too difficult a setup to achieve

If I was running a mail service company of some sort then of course it's easy enough to do this. Unfortunately time, effort, focus and money is best spent elsewhere in the company. Maybe one day, but for now it's far easier to scratch out 3 of the 4 resources by throwing money at the companies that do this sort of work.

Especially when you start looking at features like email->HTTP POST request with parsing built in.


... and then the IP range my server is in lands on a spam blocklist and I have to migrate all that elsewhere to get around it, or try to get new IPs from my provider until I end up somewhere "clean".

I've run my own mail server for quite a while and might do it again for inbound, but sending just is annoying to monitor and keep up.


It might not be too difficult, but setting up Mandrill took me like 15 minutes and zero maintenance time ...until now.


As someone who created a reasonably popular SMTP server you basically just listed why it's hard. That plus the problems of sending (ever end up in a blacklist? It's not fun).

Setting up a mail server is often worth it, but requires experience that about 0.01% (being generous) of the developer community has.


For me, it's to proxy the email IP address. Use Cloudflare for http, but using SMTP from your server exposes your IP.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: