Live data from Hacker News

Ask HN: Do You Host Your Own Email?

news.ycombinator.com

71–80 of 209 posts

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

#71
Mail on OVH, standard services (IMAPs/SMTPs without strange setups) on my domain to avoid anti-spam issues and have less to maintain at home; homeserver who suck all mails via getmail, autorefile (some) via MailDrop and index them with notmuch. From clients (desktops, a laptop) muchsync over ssh. Planned but not there a WebUI on the homeserver where I'm on the go and I need to search something in my maildirs.

In general I suggest NOT to chose providers offering "safe" services, the more safe/privacy protected etc they claim to be the more likely they do not. What it count is:

- having your own domain, so you can switch from one provider to another NOT change you mail address, all your contacts will not notice the change;

- having mails accessible with standard protocols so it's easy to grab them, for instance GMail IMAP is crap, Tutanota do not offer standard protocols, you are essentially bound to them, Proton offer JMAP witch is NOT proprietary but still not much spread to have a good support and so on;

- having you mails on your iron, you can sync them with OfflineIMAP and nothing else for mere "live copy" on a home server and eventually back to another IMAP if needed;

- if you can USE them with a personal MUA, no matter if a WebUI or TUI or whatever but something local so in case of trouble on the upstream you are still partially operational and if you change the upstream provider you keep your usual UI.

All the above are from very easy and cheap to moderately easy and cheap (at least in absolute terms). Other options might be far less easy and less cheap.

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

#72
post #70

Did it for 5 years with mailinabox hosted on a cheap 3€/month vps on OVH with a custom .de domain. But I had severals issues in this time e.g. with mails coming from Office 365 Mails. So I switched 3 months ago to mailinabox.org along with my custom domain. Also paying just 3€/month.

Curious what service you are using, as site for mailinabox.org does not exist.

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

#74
I self host, have been for more than a decade. I started hosting at home (I had a fixed IP for some time) and moved on a cheap server I rent. I use postfix, dovecot, opendkim with SPF, DKIM and DMARC enforced I use Nextcloud for webclient and k9 on Android.

I wouldn't go back to use something else, what I much prefer: - I'm in control of my email address which is at the center of most of digital life. None of the big provider are up to the task, they do not care at all about me, they do not care at all about the impact of their mistakes (if they decide to block me). - I can manage my own backups much more easily - I can monitor and troubleshoot (with a 3rd party you are totally blind when something doesn't work) - I trust myself not applying any censorship (hotmail and gmail will take the decision to make email based on spam assumption disappear without any visibility from the user)

The downside: - Depending on where you host your system, you can have some issue due to ip reputation. It is something to be careful with before setting up a server - It requires a fair amount of testing, with different providers to ensure that your emails are delivered. - It takes a bit of time. Not too much, but it is still a commitment as, when it goes down, it's quite problematic.

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

#76
I use Postfix, Dovecot, SpamAssassin, CrowdSec , Let's Encrypt on Ubuntu 22.04 with 4 domain names running on an AWS t4g.micro. I've done this since about mid 2015 (seems a lot longer somehow). I've tried to configure DNS, DKIM, DMARC etc correctly. I think the entire setup is at least mostly right, though I'm sure it can still be improved.

To make it do what I want, the mail configuration is a bit complicated. Well it is for me, doing it once every 2+ years and forgetting most of how it all works in the meantime. Presumably it's not complicated compared to large-scale setups or for people who do this as their main job.

Upgrading the OS every 2+ years is a pain, because there tend to be quite a few configuration file changes in the new OS, sometimes different software packages, I have to review everything well enough to understand it, then merge my own changes from the previous setup. And in fact the last time I tried the upgrade failed anyway, I don't know why. Very possibly nothing to do with my mail setup though.

So I've concluded that for OS upgrades it's probably as quick to install on a new VM and reconfigure everything from scratch. That takes me me about a day in total, working from my bad notes, comparing the old and new systems, copying data files etc. Which does not seem like a good way to do things, but it does mean I end up with a clean installation. Also I've been able to switch the underlying VM, so now I'm on the allegedly faster/cheaper ARM instead of Intel architecture. That would not have been possible otherwise, because the OS and application software binaries are different for the different architecture. Also the underlying SSDs are the newest types, and the latest ones are allegedly faster/cheaper.

I have seriously considered trying to script the setup or updates somehow. But I think there are enough changes in the OS between upgrades that for a single system it's just not worthwhile. I'd have to review and fix the scripts, then run them once, then not use them for another 2+ years. Plus learn the tool (Ansible?). Plus I would guess some of my configuration changes are not common so I'd probably be writing custom stuff for the tool as well.

And... I almost never have problems with it. As far as I know mail is sent and received reliably, and for years the server almost never went down. More recently it did hang a few times, though I don't know why. But I suspect it was because the wimpy VM just gets overloaded sometimes. It's not easy to find the reason though, and I didn't want to spend much time on it. Also since that happened I've upgraded from Ubuntu 20.04, and for whatever reasons, it's been fine so far.

Whether this is all worthwhile or not I'm not really sure nowadays. Originally for me it was to learn about the mail software, also because some software I wrote for an older project did a lot with email, so I had a kind of professional interest. Also I wanted to use my own domains and be independent of an ISP. Plus I sometimes use the VM for other things, such as a rarely used OpenVPN server in the past, replaced with Wireguard now. Also technical experiments sometimes. And if I could think of anything worthwhile to have on a website I would use it for that.

But if you just wanted easy and cheap email with your own domain(s), I think the best way could be a "traditional" hosting service. Compared to what I'm doing, you could get far better performance, storage space, bandwidth, backups, reliability, maybe security, everything else. And probably more cheaply, with near zero time and effort and hassle, and without having to be try to be a biennial mail configuration expert. Plus if there were any problems the hosting company would fix them, or provide support for you.

So for most people I think it's difficult to justify running your own mail server. There'd have to be some specific reason. Which might just be that you want to!

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

#79
post #6

Primary mailserver at home. Secondary MX in a VM at one of the services; it only stores mail if primary is down, otherwise relays immediately. Dovecot and Postfix, SpamAssassin and ClamAV; greylisting, SPF and DMARC but not DKIM. I handle mail for my family, some friends, and a few mailing lists.

What setup / config do you use for your secondary MX? I host my mailserver at home, and would love to have a backup, ideally one that I can view the mail for via ssh when my primary is down.

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

#80
I host email from my basement. Rackmount server down there runs all my VMs, including ones for Postfix, Dovecot, and Rspamd. Apache Solr/Tika are connected to dovecot for full-text IMAP search. Never had any issues, but I have postfix on a static IP from a business-class cable internet connection, so I'm sure that helps.

Dovecot and the postfix submission port (587) are only accessible internally, or through my home wireguard VPN.

Rspamd catches just about all junk mail. I might have one or two messages a week slip through. Moving messages to/from the Junk folder trains Rspamd to recognize spam/ham.

Make sure the IP of your mail server has reverse DNS in place, and set up SPF/DMARC records and DKIM signing, and you should be fine. I've been doing this for a decade and never had any problems.

I do maintain a separate, paid email account at a commercial provider for things like banking. In case I die, I don't want my poor wife to deal with my crazy email setup.

This topic always brings up so many hysterical naysayers, I almost wonder if some are paid Gmail shills!

Post reply on HN