Live data from Hacker News

Ask HN: The middle ground for email self-hosting?

news.ycombinator.com

91–100 of 105 posts

Re: Ask HN: The middle ground for email self-hosting?

#91

I have been selfhosting my email stack on a cheap VPS (~ $10) for many years now, probably since 2009 or so. I used to set up everything manually, but that was quite painful and there were some rough edges. Nowadays, I just use mailcow ( https://github.com/mailcow/mailcow-dockerized ) for the setup part and have a much more polished experience. Email deliverability is not a problem. Generally, you just have to make s…

> I wrote a short mail to the admin contact and got told I had to host a web page with contact information on the same IP.

T-Online?

Re: Ask HN: The middle ground for email self-hosting?

#92
FWIW, a $4/m Exchange Online Plan 1 is probably enough. Or even the $1/m Exchange Online Protection if you don't have any need for a hosted mailbox. Anything that'll get you ongoing access to the Exchange Admin Center.

I use a single M365 Business Basic account, as a conventional mailbox, for one of my domains. From within the Exchange Admin Center there's extensive control over mail flow -- domains to accept mail for, inbound and outbound connectors for routing mail between on-prem mail servers. Best as I can tell, literally ongoing any subscription that gets you an account with access to EAC ought be enough to route any or all of your email through EO in either direction.

https://www.microsoft.com/en-us/microsoft-365/exchange/compa...

https://www.microsoft.com/en-us/microsoft-365/exchange/excha...

https://docs.microsoft.com/en-us/exchange/standalone-eop/sta...

https://docs.microsoft.com/en-us/exchange/mail-flow-best-pra...

Re: Ask HN: The middle ground for email self-hosting?

#93
post #33

Earlier quoted context omitted.

> If you're spending more than an hour a year maintaining your self hosted email (which you will, big time!) then your Google Workspace / O365 is paid for. But what's the cost when Google's "AI" bans your account? For paid email hosting I'd go to some provider with actual support...

Since he uses his own domain, he can move elsewhere if there's a problem with Google. I do that too, and it's indeed much simpler than self-hosting.

On that note, I have amazon manage my custom domain.

Now I'm terrified that I'll return one too many pairs of socks or something, and get the retail consumer part of my account banned (we buy a lot of stuff on Amazon).

Does anyone have experience with what happens to AWS resources (specifically, domains) when that happens?

Re: Ask HN: The middle ground for email self-hosting?

#94

I'm still wondering why there's no go-to choice to spin up a docker container that has everything preconfigured.

You could build one for SES. You'd need to write an Amazon CloudFormation template that configured all the things correctly.

The result would be a screen or two of auditable gobbledygook that took a week or so to write. Somewhere in there, there'd be a pointer to an EC2 or ECS image, among other things.

It'd be a learning experience, and very tied to AWS. I wonder if someone else already did this.

Re: Ask HN: The middle ground for email self-hosting?

#95
post #47

Earlier quoted context omitted.

Since he uses his own domain, he can move elsewhere if there's a problem with Google. I do that too, and it's indeed much simpler than self-hosting.

It sounded like he's actually keeping the emails on google, even though they come on a custom domain. And that doesn't seem safe to me.

I use a client, so have a local IMAP backup, and regularly back this up to my NAS.

That's not really my worry, though. What scares me about being heavily invested in blah@gmail.com or blah@notmydomain.com is lockout from services. As long as I have my own domain then I can just switch out the DNS and I'll still be able to get into whatever web service I signed up to using my email address.

Re: Ask HN: The middle ground for email self-hosting?

#96
post #18

I just don't understand the attraction of self hosting email. The pain seems extreme, even for those who understand the considerable number of nuances. To me the happy middle ground is email on your own domain but using an existing provider such as G / MS or whoever. That way you've got control but don't need to worry about the pain. It does require paying for but really on balance not much. If you're spending more t…

> I just don't understand the attraction of self hosting email. For several years I’ve hosted in the “middle ground” sense described by the OP, running my own incoming mail server and relaying outgoing mail through a big provider. The main benefit for me (compared to using a big provider with my own domain) is personal privacy. When I used Google for mail, Google had access to so many pieces that make up my personal…

In my world (running a small digital agency), I've realised that even if I do all the things to reduce my data footprint (for instance, migrate all my docs to NextCloud, self host email, etc), it actually all breaks almost instantly - all it takes is a client to share a doc or folder with me where they use GDocs / Dropbox / whatever, and I'm effectively straight back in it.

My basic strategy is one of slight defeatism, I have to admit. I am 100% in to Google for their (really quite excellent) tools in Google Workspace: nothing is as good as GDocs, nothing is as good as Gmail, nothing is as good as Google Meet; but I do things to ensure I'm not utterly f**d if the Random Google AI Best happens to decide I'm some sort of unspecified menace. So for instance - I use Google Docs but only with .docx / .xlsx files rather than native .gdoc .gsheet files. I back this up automatically to my self-hosted NAS. I do this on a domain which I own, so can step away if things do happen to go south, or costs double or whatever.

Then I use kagi.com for search, and have a piHole / ublock / Brave to minimise footprint from a tracking POV.

I know, it's all probably moot given I just open up my inbox to Google, but I've tried and failed to find a provider that is even close to being the same balance of low price + utility. I got excited about Fastmail but turned out it was a combination of not very good AND really expensive once I factored in having several accounts on the same domain. I had a horrific experience with iCloud+ (they have a weird YEAR long account blocking issue thing that I won't go into now). M$ was awful and required me to send everything through GoDaddy's DNS. All the others were just underwhelming or expensive or both. So - sadly - I'm back in the G stable where I'll stay for the time being... :-)

Re: Ask HN: The middle ground for email self-hosting?

#97

I'm going to write this assuming you're a non-technical professional, lawyer perhaps, looking for a private email solution that doesn't rely on third parties. Bottom line: There's no "middle ground", any middle ground you cede is allowing a third party some kind of access. Hosting your own email has become expensive and time-consuming (although IMHO it's still extremely worthwhile, and I do it in spite of what a pain…

> Be prepared to spend at least $50/mo

> You need a dedicated box

> But then you're talking $250/mo

Nonsense.

You only need a $2-5/m cheap VPS for your server and have anything as MTA/smarthost for you. Eg: Fastmail, $5/m, just receive with a catch-all address, send through a SMTP with auth (with an app pass).

No bother with SPF, DKIM, PTR, SPAM and all this bullshit. Also you have a breaking glass access to your mail in case your server burst in flames.

Don't want Fastmail? Any other provider would do.

Want to tinker it yourself? Just buy anything anywhere, configure it as a smarthost.

Anecdata: I have a small business of ~15 people use Fastmail in the said configuration. The only difference is what they are on Exchange Server locally. The old one, on premises. They use it for almost 8 years without problems.

Re: Ask HN: The middle ground for email self-hosting?

#98
post #65

Earlier quoted context omitted.

I can only contribute my own experience. I have a dedicated server with an IP address in a datacentre, with approx 6 users using my email server for their primary email. DKIM/DMARC/SPF all configured correctly. I also have policies that suspend logins for accounts if they send too much in a certain timeframe, because this is a pretty good indicator of account compromise. The limits would never be hit by humans. I've…

The third was yahoo. For reasons known only to them I had to work around them for some datacenter mail relays. The only solution I found was to sum up the number of mail relays behind a SNAT and then apply rate limits for their domain to not exceed 6 concurrent connections total per SNAT . To your point and AFAIK they do not document this anywhere.

I'm fairly sure they were abusing the standard with this particular technique. Deferred messages are OK if they can be retried later and that's what the MTA will try to do. Permanent deferral I suspect is really supposed to mean "we can't deliver right now and we don't know when but keep retrying".

What this does not do is trigger "undeliverable mail returned to sender" messages, so the end user has no idea their message is stuck in their own MTA's mailqueue until the MTA decides it has tried enough and gives up, and MTAs will usually persist for quite some time.

Spammers won't care what error code you send them or even worry about deferral messages, which is why the temporarily deferred spam trick works (first send is deferred for 1 hour, if you are a genuine MTA and you try again respecting this, it works). But permanent deferral, as I say, is very user hostile. The user thinks they've sent an email, but it isn't in the spam folder of the recipient. The sysadmin then has to go and dig to find out what exactly happened, and remove the mail from the mailqueue.

Luckily so far as I know we are only emailing a single yahoo address.

tl;dr the technique they are using is designed to handle the case where the receiving MTA is offline temporarily. There is a spam defence trick you can use and I don't object too much to that, but they used it to implement their block list rather than outright rejecting, and set the timeout to deferred indefinitely, which is just bad.

Re: Ask HN: The middle ground for email self-hosting?

#99

Earlier quoted context omitted.

To prevent 3rd party access you need to not only host your own email but all recipients of your mail need to be self hosted as well. Unless you are providing everyone you correspond with their own account, 3rd parties will be involved.

No, you just have to be aware of who you're sending to, and encrypt appropriately. I mean obviously if I send to someone @gmail, they're going to know I sent that person an email. But they can't scan my inbox for keywords.

If someone sends you an email from gmail, that’s also in gmail, and you can’t guarantee that the sender will encrypt their message.

Re: Ask HN: The middle ground for email self-hosting?

#100
post #75

Earlier quoted context omitted.

>, and I tend to be unsure how bad it actually is: sometimes it does seem pretty bad, other times it sounds like it's fine, and possibly the chatter about failed deliveries is caused by misconfigured servers and/or misunderstandings. It's not just misconfigured email server settings like DKIM, SPF, DMARC etc. One can correctly set all of those and still have the outgoing emails rejected or spamholed. Why? Because the…

Oh yeah. This is very true, and getting worse every year. I've had this discussion on HN before. It's gotten to the point where I've had to have my clients and their corporate lawyers go to bat against mail providers to maintain deliverability. No mail provider has any interest whatsoever in allowing an independent mailserver to continue delivering now. So far, legal threats have worked when push came to shove agains…

Im extremely curious the legal precedents you used to accomplish this, particularly around forcing certain providers to un-spam or un-block your emails. What was the condition your legals found in order to do that?
Post reply on HN