Live data from Hacker News

Ask HN: Do You Host Your Own Email?

news.ycombinator.com

161–170 of 209 posts

Re: Ask HN: Do You Host Your Own Email?

#161
post #66

I do. For many years I have run a Mail in a Box server hosted on Digital Ocean. I like it very much and have had no problems. MIAB is a wonderful piece of scriptware. The guy promises to follow best practices in all things and, as best I can tell, he delivers. I have rarely had any problem with deliverability or anything else. I continue to do so for several reasons, hosting multiple domains, ad hoc addresses, etc, b…

I'm surprised you are having much success on Digital Ocean. I've found that their whole ASN is often marked as low reputation. For example sending to Microsoft or Apple has always been unreliable for me.

It does seem that it can depend somewhat on what IP you roll. I guess if you get a good one and stick to it you may be able to scrape by with just the ASN reputation holding you back.

Source: I run a service that sends email on Digital Ocean and I have to use third-party services to send to many hosts. (in fact I tend to whitelist inbox providers slowly once we have built some domain reputation)

Re: Ask HN: Do You Host Your Own Email?

#162
post #26

I just use FastMail with a custom domain. What's especially nice is that it lets you generate aliases that use the fastmail.com domain. Great for signing up for sites where I don't want them to be able to identify me. This wouldn't work if I was hosting my own email since you'd be able to link all my identities by matching the domain.

I tried out FastMail and ended up deciding to self-host because they would block legitimate email even though I added a contact as instructed to "whitelist" senders. Their support just said that the sender wasn't set up "correctly". They weren't necessary wrong but I don't care as a user, I want that email.

So I enjoy the fact that my self-hosted solution only rejects emails from blocked senders or DMARC rejects. At the very least everything else goes to spam so that I can see it.

Re: Ask HN: Do You Host Your Own Email?

#163
post #23

Someone change my mind but I find hosting your email to be risky. I could lose my domain through social engineering or just by being in a coma and there is 0 grace period so if someone registers I lose everything.

you should archive your emails anyway, and gmail can be social engineered just the same right? Most registrars can auto-renew so as long as your card stays valid you’re fine.

Why should I archive all my emails? Genuine question because I don't.

Re: Ask HN: Do You Host Your Own Email?

#164
I've been running a server since 2005, as a teen. It's been easy. It's my main email.

In 2019 I migrated from the vServer to a dedicated setup switching from Debian to OpenBSD, from Postfix to OpenSMTPD. I use Dovecot, the only thing I ever tinkered with were spamd or spamassassin. The only things to do were DKIM, DMARC and SPF.

I have never had an issue with mails not arriving on either end, I rely on it personally and professionally.

I am very much not an expert in the area, nor really interested. I just set it up and it works. Should some emergency thing happen I'll just put on my last backup. But no data loss has ever occurred in these years. Just use your RAID setup.

So far it has been more reliable than Gmail (which was down, had bugs, etc., just search Hacker News ;))

I think there is a huge amount of FUD in the area. E-Mail itself is very reliable and handles any issues very well. Since it's a super old tech nothing much changes, just DKIM and so on. I think a lot of tech people are all to used to hosting stuff that constantly changes which makes them very scared of it. But e-mail you just read into, set it up, add a couple of comments for your future self and might easily outlive you.

Of course you should do your updates and of course I wouldn't recommend to do it like me and do that as a whim as a teenager with no experience, but also it worked out.

I'd recommend OpenBSD because the system is sane, you get OpenSMTPD which is compared to other extremely easy to set up correctly. It doesn't have all the cruft that others accumulated.

Here some things that you need to not forget so others won't think you are a spammer:

* Set up (and test) SPF

* Set up (and test) DKIM

* Set up (and test) DMARC - even if it's just the record part

DON'T FORGET TO SET UP the PTR record. I do that for all systems, but somehow even with people that should know this things from their job people seem not to.

Read up on each of these things to get it once, configure it properly, add comments, maybe write down some notes somewhere, have backups. And you are good to go.

If you are scared, you can just do all of the above and still use what you currently use. Spend some times (years?) to see if it works for you with non-important stuff. If it does, you can switch stuff over. If not you learned something.

This is not me saying that I think you should do it, but it's an option if you are interested. You can just get a cheap server and try it. In the very worst case you'll have learned something and made your own opinion.

Also on IP reputation. I think there's something off here.

You go to say Mailchimp/Mandrill/Mailgun/etc., because of their "reputation" and a month later you notice that their reputation sucks, so what happens is they upsell you to get your dedicated IP (own thing, more expensive package, etc.).

I never had a problem with IP reputation but I'd assume that your hosting company would give you a new one if you brought it up.

Re: Ask HN: Do You Host Your Own Email?

#165
Yeah, since the late 90s. Been through a few migrations (sendmail to Postfix to exim, considering Postfix again if I can replicate my setup; courier to dovecot; maybe 5? different hosting providers; squirrel to roundcube to rainloop to snappymail).

It can be death by a thousand cuts though but if you can get it into a stable mode where no-one is blocking you, it'll generally just tick along.

Setup is exim on two machines with rspamd (aggressive settings) feeding one IMAP store which is accessed via an OpenResty proxy (lets me write my own auth stuff) on the other machine (and also controls where each user's IMAP store comes from - just in case I need to split and/or restore to another machine.) Oh and currently snappymail for a webmail frontend.

Main problem I had was fail2ban blocking my users because they forget passwords, don't have PTRs, etc. (it's set to be very aggressive on exim and dovecot failures because there's just a constant stream of probes and attacks) but I solved* that by unbanning the IPs people have successfully authenticated from in the last day, IYSWIM.

[edit: forgot the webmail and spam parts]

Re: Ask HN: Do You Host Your Own Email?

#166
post #93

Earlier quoted context omitted.

This is off topic but are you able to go further into how you're doing DNS or is there perhaps a jumping off point that you can direct me to? Oddly fascinated by it and you make compelling points.

Ha ha ha... Perhaps we should have an "Ask HN: Do You Host Your Own DNS?" thread ;) Running BIND is very simple, and there're lots of how-tos and some excellent O'Reilly books, too. You can run your own DNS on a VPS, on a machine on a static IP, or even on a residential address, if it doesn't change too often. If it does change, you can run your primary on your home and have a public machine be a secondary. It opens…

I do! tinydns and dnscache all the way (although considering alternatives that aren't BIND[1]); only problem I've had was the auto-SOA generation which the .is people didn't like (they want each NS to have the same SOA) but since I generate the data file with a script anyway, it was an easy tweak to make that SOA a known value.

[1] Historical issues with running at an ISP in the late 90s and the various security issues since.

Re: Ask HN: Do You Host Your Own Email?

#167
post #87

Yes, since ~2008. Yes, sometimes mails go straight to google's 'spam' folder or I get cryptic bounces from MS. Once you have your SPF, DKIM and DNS RTR records it's mostly a smooth sailing. Yes, I'm totally fine with investing 2-4 hours per year troubleshooting delivery issues. I don't by argument "I'm paid $50/hour so I won't", I, in contrast, paid yearly+bonus and outside of 40 hours/week my time is 'free' and I'm…

The problem with delivery issues is you often don't know you have them ; I was paying for mail hosting to a small-ish hosting provider, and after 16 years of essentially perfect service, I started realizing that gmail delivers ~25% of the mail I sent through them as spam - but not consistently.

I spent hours trying to diagnose this, and so did the hosting service - to no avail, because we'd try something, a delivery worked ... and the next day, to a different recipient, it didn't - and it is sometimes hard to get feedback about those things.

I really wanted to support the smallish hosting service - but I couldn't afford to lose so many deliveries. I sadly switched to FastMail and not a single mail that I know of was lost for a few years now.

You say you are investing 2-4/year troubleshooting delivery issues; How do you know that the things you don't troubleshoot actually reach the receipient's inbox?

Re: Ask HN: Do You Host Your Own Email?

#168
I've had a VPS running the free version of Axigen server for I don't even know how long. 10 years?

The first year was rough because I didn't know what I was doing. Mail would not go to or from certain domains with no indication of why.

Once I finally figured out all the security settings, it's fine. My domain will talk to anyone (including Google) and has been for several years.

My private email is my primary account. It's on a domain with my name, so I use it everywhere.

Is it worth it? Absolutely not. I wouldn't recommend you run your own server unless you just want the experience. It's far, far easier and cheaper to just buy the domain name and use the inbox your registrar offers. Or a paid service to host email under your custom domain.

For me, I have other users on this service, and the cost and risk of migrating them to a new service is way, way too much. I'd have to decrypt their inboxes and merge them into the new service, and I just don't want to go there, so I keep this server ticking over until we all die I guess

Re: Ask HN: Do You Host Your Own Email?

#169

Yes, my own mail server for 100-or-so domains with a few hundred users in total, which has been running in its current incarnation since around 2005 (and with 3 or 4 different setups before that, going back all the way to a UUCP node in the early 1990s). The number of domains/users is probably a third of the high-water mark, since many users have migrated to cloud solutions by now, but traffic is still quite signific…

> plus ensuring mailbox passwords can't be brute-forced (complexity rules

If they are supposed to be used by humans then prefer length to complexity.

Re: Ask HN: Do You Host Your Own Email?

#170
post #164

I've been running a server since 2005, as a teen. It's been easy. It's my main email. In 2019 I migrated from the vServer to a dedicated setup switching from Debian to OpenBSD, from Postfix to OpenSMTPD. I use Dovecot, the only thing I ever tinkered with were spamd or spamassassin. The only things to do were DKIM, DMARC and SPF. I have never had an issue with mails not arriving on either end, I rely on it personally…

> Also on IP reputation. I think there's something off here.

IP-reputation is largely a thing of the past.

IP addresses are ephemeral and email providers understand that. Especially with IPv6, where an individual can have access to tens of thousands of addresses. So, all large email service providers have spam filters based on content, and domain reputation, not IP reputation. Misbehaving hosts may be periodically blocked based on IP, but this is never permanent. Otherwise email providers would be blocking the entire IPv4 internet by now.

If you have a domain that does not spam, and it is using DMARC + DKIM, then there is sufficient proof that an email sent on behalf of the domain is authentic and the email will be accepted no problem.

The only real problem with hosting your own email, is that it is usually impossible to host it from your residential internet connection, as ISPs do not allow you to 'own' your IP-address, by not allowing you to create PTR records. This is all on purpose though, ISPs block it and email providers require it. It's is because there are just so many residential IP addresses that are part of a botnet sending spam.

Post reply on HN