r/programming • • Oct 26 '26

Why is it so expensive to send an email?

https://evancz.dev/why-is-it-so-expensive-to-send-an-email
828 Upvotes

209 comments sorted by

52

u/aust1nz Oct 26 '26

It’s a good read but 1,000 emails on SES are $0.10.

24

u/wheatBread Oct 26 '26 edited Oct 26 '26

That is still expensive compared to the price for sending 1000 https requests. For the sake of making the article fun to read, I did not want to get into the exact price structure of all the different alternatives.

14

u/aust1nz Oct 26 '26

Makes sense! Right, sending 1,000 HTTPS requests rounds to $0. If 1,000 emails did cost $15 to route through, I suspect we'd get a lot less spam :)

1

u/JheeBz Oct 26 '26

I think a lot of people get intimidated by the complexity of AWS, which is totally valid, but when competitors like Cloudflare launch at $0.35/1,000 suddenly spending an afternoon learning how to set up AWS for SES doesn't sound so bad. 

0

u/Engine_Light_On Oct 26 '26

I just used SES in sandbox mode, heard that it can be a bit of a hassle to enable prod due to risk of comprising their IP pool.

6

u/Bonzie_57 Oct 26 '26

I enabled prod in like 45 seconds…

Making sure to keep prod clean of bounces and spam… well that’s a different hassle

4

u/Speff Oct 26 '26 edited Oct 26 '26

They wouldn't approve my prod req. Despite it being for transactional-only emails for a bog standard commerce site. Domain was clean, had all their reqs set up and they still wouldn't do it.

Fun to learn how deeply they lean into Computer says no. Almost literally like talking to a brick wall that has a 1 week response time for every message.

So I guess the lesson is, sure use SES if they approve it within a minute. But if they don't, then go somewhere else. It's not worth the hassle

3

u/phr0ze Oct 26 '26

They denied me too. Transactional only. Password resets, etc. No marketing and double opt in.

2

u/mwasplund Oct 27 '26

I could never get them to approve my prod request. No reasoning or requests to fix what was essentially only a verify email request, just "no".

3

u/Forward-Outside-9911 Oct 26 '26

Sandbox mode can’t send to external addresses without verification though - aka useless.

Production can indeed be a hassle for personal access, but for any business cases it is easy and quick, done it a few times. More detail the better, they mainly want to know you won’t be spamming everyone.

8

u/ErikD314 Oct 26 '26

Grammatical error? "My emails went through to certain inbox providers just fine, so it must be possible for them to avoid heavily relying heavily on IP address block blacklists." Specifically: "...heavily relying heavily..." - Hey it proves I read it, right?

3

u/wheatBread Oct 26 '26

Fixed, thank you!

1.2k

u/chucker23n Oct 26 '26

TL;DR:

how can companies charge $15 to send 1000 emails?! Why do I need some 3rd party company involved at all?!

Mostly what you're buying is trust — on paper, e-mail is heavily decentralized, but in practice, this was so heavily abused especially in the 2000s (I remember getting a thousand spam e-mails a day before requiring SPF became commonplace) that these days, it's mostly a circlejerk among the big vendors. Outlook.com / Microsoft 365 accepts mail from SendGrid / Twilio. But does it accept it from you? That's more of a roll of the dice.

560

u/OleksandrC Oct 26 '26

Email delivery is based on whitelists and not blacklists. You're basically paying to be on the whitelist of the email mafia. Decentralized email is a myth. Decentralized internet in general is also a myth (see also - CDNs, payment infrastructure, etc).

53

u/Teknikal_Domain Oct 26 '26

Not always.

I host my own email server. Outlook, gmail, yahoo, AOL, proton, even one hotmail address get it without issues.

You just need to do it right. and nowadays with free TLS certificates, it isnt difficult.

19

u/alxhu Oct 26 '26 edited Oct 27 '26

I'm curious if your mails are getting delivered to German Telekom (@Telekom.de) addresses because I've heard that they are one of the hardest, requiring contacting them to get on their whitelist while forcing you to have a webserver running on your domain, serving an imprint with your legal name and address.

Edit: I may have switched up with T-Online (@t-online.de) addresses, but the problem is the same.

16

u/rydencode Oct 27 '26

probably why most people don't use telecom provided emails

1

u/alxhu Oct 27 '26

Most people don't use them, but there are still many people (and companies) who are using them, since they were provided for free with their Internet connection (back when Gmail was way more unknown and there were almost no good alternatives).

1

u/turtleship_2006 Oct 27 '26

"most people"

What percentage of your userbase do you consider small enough that you don't care about them not getting emails (including security ones, and verification emails to sign up in the first place)?

4

u/rydencode Oct 27 '26

it's less than 1% so idgaf, sign up for gmail and enable autoforward

2

u/fin2red Oct 26 '26

lol... not going to happen.

Poor customers... who will be missing emails and they won't even know why.

3

u/wwlkd Oct 26 '26

How did you learn how to do this? Lol you’ve inspired me to learn

5

u/sethismee Oct 27 '26

The main issue for most people is that residential ISPs usually block all outgoing connections on port 25 (not sure about incoming), which is where email is delivered. Business ISPs generally do not, surprisingly most mobile ISP don't seem to block it, and cloud providers vary. You can do telnet gmail-smtp-in.l.google.com 25 as a quick test.

Other than that, most receiver side denylisting is by IP, so you'll often get blocked there for mobile connections and shared IP cloud providers. In my experience, deliverability beyond that is a matter of sending a properly formatted email and increasing trust with SPF, DKIM, and DMARC.

I assume receiving is simple once you have an MX record set up, but I've only really messed with sending.

247

u/chucker23n Oct 26 '26

Decentralized email is a myth.

Well, it wasn't in the 1990s, and most people probably don't want back to that wild west.

148

u/Lonsdale1086 Oct 26 '26

There's a middle ground out there

53

u/NecessaryIntrinsic Oct 26 '26

I remember one of my first jobs I would occasionally get a small business client that got blacklisted because the person that set up their email did a lazy job.

I would have to reconfigure everything to make sure that the server have the right responses and that the DNS matched up. Then I'd have to go to AOL, etc and request to get off their blacklist.

I think it was dnstools that had a blacklist checker and there was a guy there that ran a publicly available black list that people could use and it came with a really nasty note that said if you want to get off the list you had to make sure you were conforming to standards and that you had to pay him $500 an hour to do his own investigation to make sure you weren't sending spam.

I would tell my clients if you got on his list, you better just shrug and move on.

70

u/Kalium Oct 26 '26

The internet has tried that. It was a genuinely miserable place to run an email server. There are good reasons the internet passed right through that middle ground and kept going, and companies charging to send email were not the ones driving it.

86

u/chucker23n Oct 26 '26

Two things can be true:

  • a dozen or so companies controlling the flow of e-mail has dramatically reduced spam and abuse
  • but the result is also tantamount to a cartel

28

u/Kalium Oct 26 '26

Sure!

My point was and is narrowly that this hypothetical middle ground is not a hypothetical. It's one that we as an internet-enabled society in general, and those of us who have run email servers in particular, have lived through. It's one we - both general and specific - should be leery of returning to.

-10

u/jmhnilbog Oct 26 '26

How about we remove the profit motive to flood everything with spam?

22

u/Kalium Oct 26 '26

Sure! Great idea. How do you propose to do that?

15

u/jmhnilbog Oct 26 '26

We kill almost everyone to start

→ More replies

8

u/T_D_K Oct 26 '26

In today's political environment, just be glad that its a dozen rather than a couple. I mean look at WhatsApp. With email we still have an open standard and some different options

6

u/chucker23n Oct 26 '26

Yep. If e-mail had the same expectation of E2EE as instant messaging, and there's really only historical reasons that expectation isn't there, probably even more vendors would be locked out. You're either in the in-group of a dozen tech companies who accept each other's keys, or you're not.

4

u/fridder Oct 26 '26

Sendmail had so many CVE’s

2

u/gnufan Oct 26 '26

It did, but I don't think that explains the cost of sending emails via bulk email services.

1

u/SanityInAnarchy Oct 27 '26

wha? "Middle ground" would be not the wild west and not the megacorps. I don't know if we ever had that.

1

u/Kalium Oct 27 '26 edited Oct 27 '26

What do you think the internet passed through as it went from the wild west to the megacorps? The changeover did not happen in a single night.

0

u/frazell Oct 27 '26

Email is still open and decentralized. There is extra work on the administrative side seeing up DMARK, SPF, PTR and not being on a residential IP or the like.

But you can definitely send email with decent acceptance if you follow the guidelines.

Mass-market emails can be a tricky space due to the extra legal requirements that have to be met. Appropriate unsubscribe links, properly handling bounces, etc.

Companies charge to make a lot of that easier.

1

u/GrandOpener Oct 27 '26

What is “decent acceptance” to you? Gmail so rarely drops legitimate person-to-person emails that I can’t even find a statistic on it. It’s effectively 100% reliable. I don’t send that many emails, but the ones I do send I need to be confident will arrive.

6

u/Orbidorpdorp Oct 26 '26

The middle-ground would still need some sort of identity and fully decentralized identity is a contradiction.

There are clever things you can do to maximize privacy where you only assert precisely what is necessary (e.g. your age but not your name, etc.) but at the end of the day there would need to be some sort of authoritative gate-keeper backing it.

13

u/chucker23n Oct 26 '26

I'm with /u/iluvatar that governments ought to investigate this from an antitrust angle. But the "independently verify trust" thing is non-trivial.

15

u/flumphit Oct 26 '26

Given how often scammers’ phone calls get through, “non-trivial” might even be understating the problem.

4

u/kerakk19 Oct 26 '26

What we have now is the middle ground

5

u/Lonsdale1086 Oct 26 '26

Where a handful of corporations decide amongst themselves who's emails will be delivered with no recourse/functioning appeals system?

2

u/za419 Oct 26 '26

Better than one corporation choosing for itself whose emails will be delivered. 

At the end of the day we need some sort of trust authority. We've got the same situation with TLS certs, only with less incentive to be picky about it.

If you can propose some sort of way to have a system function reasonably well based on low-trust validation that someone doesn't intend to be a spammer, I'd love to hear it. The best I can imagine is a goddamned blockchain, which removes the trust from the equation and also makes everything worse in the process. 

10

u/jameson71 Oct 26 '26

Why...why wouldn't people want to go back? It was so much better.

46

u/gonzo_in_argyle Oct 26 '26

As someone who ran mail servers at scale back then, I both miss the promise of a decentralised internet, but also have no desire to go back to that insanity. 

0

u/[deleted] Oct 26 '26

[deleted] — view deleted comment

42

u/recycled_ideas Oct 26 '26

but running my own was nowhere near as hard as everyone said/is saying it was.

Running a server from a technical point of view wasn't hard. Creating a network that wasn't so clogged with spam you couldn't find real email was the problem.

-1

u/polacy_do_pracy Oct 26 '26

what I am taking away from reading this thread is that the everyday infrastructure will atrophy because we will only need a few "bigger pipes" to handle data

8

u/recycled_ideas Oct 27 '26

Not really the right message.

The downside of a world where everyone can do what they want is that everyone can do what they want.

Back in the old days the internet was basically unregulated and the barrier to entry on pretty much any service was effectively zero. You could run an email service or a website or pretty well anything else out of your home. You might need to pay for an expensive internet connection or a more powerful box if you wanted a lot of users, but that's really about it.

The problem with that though was that malicious actors sprung up like weeds and you couldn't really do anything about them because if you squashed one another dozen would just pop up. OP's filters worked (though not as well as they remembered) because there was no real financial motive to overcome them. They took time and expertise to set up and requires that your address hadn't been sold to everyone and their mother.

The wild west style internet kind of worked when the internet was a novelty, but as it's become more and more critical to our every day lives, that was increasingly untenable. You can't expect everyone to be using the internet for critical functions and simultaneously have it be a lawless wasteland.

For a number of reasons ranging from a political reality that had boomers as the "young and with it" political group (can you imagine someone more clueless than your grandparents trying to regulate technology), fear of killing the goose that laid the golden egg, and good old fashioned corruption, bribery and lobbying, the government in the early days was, and remained, extremely hands off and so we ended up ceding most of the control to, not so much companies, but the founders of those companies who understood what was happening and what was going on.

We could have had a world where people had to register with the government to run am email server, which might or might not have worked, instead you have to pay Google to trust you. I don't know if that was right or wrong. I don't know if national governments even can meaningfully regulate an international system.

0

u/[deleted] Oct 26 '26

[deleted] — view deleted comment

14

u/DevestatingAttack Oct 26 '26

No, not really, and will the Bayesian filtering work now that there are large language models that can dynamically generate every possible string in the English language that offers you cheap WoW gold, Viagra, and Iraqi Dinars? It barely even worked back in the day, it's hard to imagine it'd be better now

11

u/gonzo_in_argyle Oct 26 '26

It took Google and massive data sets with Gmail to make it great. 

Gmail spam filtering was light years ahead of any other option at the time. I think people forget how much of a drawcard that was. 

→ More replies

7

u/gnufan Oct 26 '26

I used to run a few mail servers for an employer with a lot of domains hosted for clients. So I got really good at it in simpler times, even if we had more spam a few simple techniques culled a lot of it. Greylisting new servers worked well back then.

Carried on running my own, and it wasn't much work for well over a decade, till one relative's email got on the radar of one particularly prolific spammer earlier this year. 

OMFG, new netblocks every 3 days or so, multiple slightly aged domains brought on every day, everything SPF compliant etc etc. I swear that one spammer caused more grief than the previous decade of email admin. It all had fingerprints showing it was the same spammer, the content all vaguely similar, but none unique enough to block outright on without huge false positives.

Forced me to sign up with new block lists, and completely revamp the filters, and methods. Said relative was understandably pissed, they were getting hundreds of emails a day at the start. I looked through, blocked the worst netblocks, and domains and zero impact.

Because the spammer spread each domain, source IP, and server domain widely the real time block lists weren't getting enough to block it in timely fashion. By the time I looked manually the domain or sending IP would usually be in the blocklists, but the spammer had already moved on.

So I'd have said it was less work than the bad old days, but there are clearly hard working spammers out their, and the Internet companies still prepared to sell them services.

11

u/atrocia6 Oct 26 '26

Now days if you aren't in the billionaire's club, it's impossible.

Exaggeration. Outfits like MXroute run excellent, effective email operations, and I'm pretty sure Jarland Donnell isn't a billionaire.

4

u/gonzo_in_argyle Oct 26 '26

It was absolutely difficult if you were responsible for thousands of business email accounts, particularly in the dark days before SpamAssassin and SpamBayes. 

0

u/[deleted] Oct 26 '26

[deleted] — view deleted comment

1

u/gonzo_in_argyle Oct 26 '26

It was a game changer. Before that was a terrible terrible time.

16

u/mandale321 Oct 26 '26

Yes, it's been much better, your excellent question is answered in "mail vs Capitalism, or, Why We Can't Have Nice Things", a talk by Dylan Beattie (here at NDC Porto 2023)

https://www.youtube.com/watch?v=6siutYQYSig

-2

u/PressWearsARedDress Oct 26 '26

Curious what you think the socialist email environment would be like? Or more specifically what system of economics would improve email?

In my opinion, the reason why you end up in these sorts of problems is that you are running into the limitations of the masses. The masses do not care about their email provider they just want to be able to send emails and get emails. Google does this for free so that is the bar. Organizations want phishing protection so they pay other firms to help apply more advanced filtering. This is the most optimized configuration given the limitations of the masses.

The other local minmum assuming the masses were not limited, is that we all have domains like phone numbers and we run various services on our router. Clearly Auntie Ann will struggle so this is why we cannot have nice things

6

u/mandale321 Oct 26 '26

You probably didn't take the time to listen to the talk yet.

In short, this has nothing to do with "the masses", but everything to do with product marketing: the problem, to begin with, is on the side of the mail sender.

1

u/mehx9 Oct 28 '26

Those were simpler times and I prefer that if that means I have to self host my mail server (used to).

6

u/crosbot Oct 26 '26

forward this to 5 people or the email mafia will get you

100

u/MrRufsvold Oct 26 '26

Hell, my son't school blocks emails from my Proton Mail account. 

-36

u/jamesfarted09 Oct 26 '26

Most schools and businesses block emails from any address that isn't internal. It's to prevent phishing scams, though it can still slip through if someone ever uses personal email for business purposes, this happened at my fathers work not too long ago.

66

u/DDFoster96 Oct 26 '26

So how do you contact the business? Carrier pigeon? 

18

u/oprimido_opressor Oct 26 '26

We do have an RFC for that for a reason. 

21

u/PilotAdvanced Oct 26 '26

Most schools block external for students, especially pre-high school.  I would not say most businesses block external email.  Hell, I’d rather my company block internal emails.  Almost any internal communication I need is delivered via slack. 

1

u/turtleship_2006 Oct 27 '26

Maybe for internal/user specific emails, most of them will still have a contact address that shouldn't block emails from everyone else.

13

u/Tackgnol Oct 26 '26

Yup it needs to cost just enough so its too expensive for the spammer.

Also Amazon SES has a very generous offering, however it's a 'make an account and send emails' kind of affair. There is a vetting process.

35

u/the_gnarts Oct 26 '26

(I remember getting a thousand spam e-mails a day before requiring SPF became commonplace)

I worked in that domain for a few years while SPF was getting pushed by the larger email hosters. We had a quite extensive set of statistical analyses to evaluate the effectiveness of various anti-spam (and anti-phishing, etc.) measures and we could not observe SPF to have a significant effect over blacklists, Bayesian filters and other common techniques. DMARC performed much better and was far less destructive to legitimate uses of remailing like mailing lists.

25

u/chucker23n Oct 26 '26

To be clear, I was only using SPF as a proxy for various standards that tried to mitigate spam and other abuse. Techniques like DKIM and DMARC also factor into it. IIRC, SPF was the first one to get somewhat widespread.

5

u/CoachSevere5365 Oct 26 '26

When I first got online sending emails cost 5 or 10 pence each.

1

u/malware1001 29d ago

Which year specifically?

1

u/CoachSevere5365 29d ago

1991-92? That was a work account. I do have some invoices from roughly 1993-99. I'll try and dig them out. Dial up cost me way more per month than my broadband does now.

317

u/NenAlienGeenKonijn Oct 26 '26

I think a lot of tech nerds age 40 and over have tried self-hosting email at some point in their lives and eventually gave up on it because despite being trivially easy to set up, it's just not worth the effort and the constant "I hope this mail actually arrives" bug in your head each time you send a mail.

72

u/OMGItsCheezWTF Oct 26 '26

And if you do it perfectly, it's still completely random if you'll succeed.

I moved in July, I self hosted my email.

I have not switched ISP, but my static v4 has changed subnets. Before my trust level was high, now it's dog shit and most of my email ends up in junk mail. Same ISP, same residential broadband package, different static IP address blocks, different outcomes.

6

u/jdmetz Oct 27 '26

I self host my email but gave up on getting mail accepted directly from my mailserver a few years ago. I use MailerSend as a smarthost to relay my outgoing mail through, and it seems to work pretty well (and free for my small outgoing mail volume).

3

u/WheredMyBrainsGo Oct 27 '26

This is a solvable problem if you pay for a vps service and use wireguard or tailscale to tunnel the traffic to that vps. I have not personally done this but I use it to great effect with several other things that I am hosting. Another bonus is that I don’t need to fiddle with firewalls as much. Pretty much the only rules I set are on the VPS. Everything else on the LAN side I can pretty much set to deny all.
I pay only about $4/ month for a vps service & static IP. There are several providers to choose from around this price point.

11

u/OMGItsCheezWTF Oct 27 '26

You're still on the same reputational issues even with a VPS thesedays. It's all a bit of a crapshoot. Mail providers, even ones who are also VPS providers jealously guard the IP ranges they use for actual email delivery.

0

u/RationalDialog Oct 27 '26

But wouldn't any kind of service you can go to with your own domain cost about the same with no need to tinker yourself?

1

u/vetinari Oct 27 '26

Not really, that would be $4(5, 6)/month/user. Sure, if you have only one user, it might be worth it. If you have multiple, the math rapidly changes.

18

u/TrueBirch Oct 27 '26

We self host at work. Today I had a thirty minute meeting because a client's boss said he didn't get an email. When that happens with a contractor, you have someone to blame. When you self host, you're the one getting blamed. 

6

u/nicholashairs Oct 28 '26

Jokes on you, at work I still get the blame 😁

15

u/curryslapper Oct 26 '26

I just pay Microsoft for this essentially

yeah yeah I know but fuck it

17

u/8thunder8 Oct 27 '26

Huh?? I am 55 (well over 40) and have self hosted my email for as long as I have had my own domain - I guess nearly 30 years. First on a Mac Mini running Mac OS Server, and eventually (when that couldn't be pushed any further) on Debian Linux on a (ebay purchased second hand) HP Elitedesk G3 mini with a new SSD that I put in it. I have never had a problem. Never have failures to deliver or receive (as long as you set up SPF, DMARC and DKIM up properly).. I love it. It works beautifully, costs me nothing (after the initial outlay for a second hand Elitedesk and SSD) and is super secure / backed up / multi domain / etc…

For anyone wanting to do this, it is a tiny HP Elitedesk 800 G3, it has Debian Linux (free), and runs Docker (free) to separate all the things that run on the server (mail, and two web sites / domains). Each thing lives in its own container so nothing can interfere with anything else, and if one needs restarting or updating the others don't even notice.

In front of all of it is Traefik (free), which is a reverse proxy that routes each domain to the right container and handles all the TLS certs automatically via Let's Encrypt (free), which auto updates its certificates for all domains every three months.

Mail is managed by Mailcow (free) - a proper mail server (Postfix, Dovecot, Rspamd, webmail, the lot). The actual key to it working properly is getting SPF, DKIM and DMARC set up properly on each of the mail domains. get that right and Gmail and the banks won't treat your mail as a scammer.

For security there's a firewall (UFW - free) only letting through what needs to be open, and CrowdSec (free) running on top which bans anyone trying to brute force it, automatically, using community threat data as well as what it sees locally. And everything gets incrementally backed up daily with Borg (free), encrypted and deduplicated, so if the Elitedesk died, I'd be back up on new hardware pretty quick.

There's also a script I wrote that emails me every morning with a one line "all healthy" or "problems detected" summary, so I know about anything going wrong (like sustained attacks or software needing updates). The script scans for any new unexpected processes, cpu spikes, temperature increases etc.

So yeah. £100 or so of second hand PC, entirely free software, and maybe an hour a month of attention once it's set up. Get SPF/DKIM/DMARC right and put a proper reverse proxy in front of things to handle TLS for you, and that solves 90% of the actual complaints people have about self hosting.

If you got a similar machine, installed Debian on it, and gave your computer SSH access to it, and ran Claude or GPT - with access to that Debian machine - and prompted it to ‘do the same as this guy’, AI would set it up for you..

I look after about 2 dozen Google Workspace (and a couple of 365) environments for our IT clients, and while I think those are great, I just don’t have any justification for the cost. I have multiple domains which each need different email functions, and I would still somehow have to be hosting my websites too - which Google or MS would not do, as well as multiple mailboxes (I think about 10), which would be costing me nearly £1000 a year!… Sod that… :) Self hosting FTW.

34

u/b_rodriguez Oct 27 '26

See guys, effortless.

11

u/ra_men Oct 27 '26

Your post doesn’t help your point

4

u/TechnologyEither Oct 27 '26

yeah see I’m not gonna do all that when I could just go to gmail.com

2

u/Broad-Reveal-7819 Oct 29 '26

Yeah that's a lot for working for very low benefits

4

u/HettySwollocks Oct 27 '26

I think a lot of tech nerds age 40 and over have tried self-hosting email at some point in their lives and eventually gave up on it because despite being trivially easy to set up, it's just not worth the effort and the constant "I hope this mail actually arrives" bug in your head each time you send a mail.

Oh this hit a bit close to the bone, may have to go to the work bench and have a little cry.

We've just given up and are paying for Google business. It's not that it's hard to host a mail server, it's all the other aspects that come into play. Keeping the server running and backed up. Stopping the usual hackers from constantly trying to break and steal your Ashley Madison account. Then the compliance to retain people's bank statements, PII, GDPR etc etc.

It's just a giant headache - I'd prefer to pay the $100~/month and let some poor bastard at Google deal with it.

4

u/morphemass Oct 26 '26

100%. Running email for a small company back in the early 2000s ... Postfix/Sendmail, brilliant! The daily stress when something is claimed to not arrive ... no, sorry! I have limits on what I'll deal with - Email is it. 300K? Sure? Less. **** off.

1

u/LBPPlayer7 Oct 27 '26

i'm self-hosting email rn and it was NOT trivially easy to set up, but it works without issue now aside from the occasional lazily written email to send an attachment to someone ending in spam

1

u/Ok-Mushroom3255 Oct 27 '26

Yeah, that unfortunately. I used to self host and had to ask people to ask to check their spam folder too often.
Once I was interviewing for a job from a small fin-tech company. They ran their own mail server and even though it had everything configured correctly (SPF, DMARC and DKIM, I checked) they still got flagged as potential spam by my gmail account.
That's just the way it is. The web has become too toxic, spammers and such. Unless you're one of the big established email providers you'd be scrutinised. Nowadays, I use Fatsmail with my own domain for a very reasonable yearly fee and I'm content.

1

u/stubby0990 29d ago

I'm running mailcow on an xps right now and literally never have an issue. Idk where you get your info...

1

u/k-mcm Oct 27 '26

Self-hosted works fine if you accept that you must block Google and Google will probably block you. Microsoft doesn't work well either,  but that's probably just their bugs. 

12

u/Even_Gap_2253 Oct 27 '26

Which doesn't work really in a practical sense

Most people either use Gmail or Outlook

-4

u/k-mcm Oct 27 '26

Google is so evil I don't care anymore. Microsoft is just unreliable - I don't think it's intentional . 

-1

u/systembreaker Oct 27 '26

Funny how one of the first web technologies is still janky even in a time when we're on the verge of futuristic things like AGI, moon bases, and fusion power 😆

8

u/its_the_rhys Oct 27 '26

I think you seriously overestimate how close we are to any of those things 😅

Like, we are making progress, sure, but I don't think we are "on the verge"

3

u/benzado Oct 27 '26

It’s janky because it was designed for a network where everyone mostly trusted everyone else on the network.

All the difficulties now are due to defensive measures against people who abuse the system.

1

u/systembreaker Oct 27 '26

Ok...? i know why it's janky. I was talking about something that I find amusing because it's a bit ironic.

2

u/PuP5 Oct 28 '26

Store-and-forward architected systems aren’t “jenky”, they’re just not immediate.

1

u/systembreaker Oct 28 '26

I'm referring to all the talk about how much of a PITA they are to maintain and I'm joking man, no need to white knight for email lol

330

u/dreamlax Oct 26 '26

I ran my own mail server VPS for a while (10+ years).

After setting up DMARC, DKIM, and SPF (and also SRS and then ARC which was needed based on how I was forwarding mail around), I was happy that email was successfully received by a majority of major email services, including Google, Microsoft, etc.

However, it is just a massive pain in the ass to maintain. In the end I swapped it all out for CloudFlare. The free plan can automatically forward to another email (e.g. a Gmail acount), and the $5/month plan allows you to send email as well. It's honestly saved so much effort and I was paying around $5/month for my VPS anyway.

176

u/Mission_Pirate_4150 Oct 26 '26

I never want to run my own email server again, ever, ever.

26

u/RedShift9 Oct 26 '26

I run my own mailserver and it works just fine?

65

u/georgehotelling Oct 26 '26

The reason I stopped was because it worked just fine until it didn't. And the "stop working" times seemed to cluster around when it was an important email or I had other time commitments.

13

u/NotQuiteLoona Oct 26 '26

The same, and you can consider me a person highly unexperienced. I've used Poste.io though. DMARC, DKIM, SPF was all I did.

8

u/New-Anybody-6206 Oct 26 '26

Same, been self-hosting for 25 years, it's not hard.

Also been hosting email from AWS for 15 years and have no delivery issues.

Not even using DMARC or DKIM, just SPF and reverse DNS.

22

u/DGolden Oct 26 '26 edited Oct 26 '26

Recently without the full rigmarole the major corpie e-mail hosts are definitely weird about it in my experience Google started requiring sender to have configured rDNS, TLS, SPF and DKIM since Feb 2024 even below their 5000 e-mail/day bulk sender watermark.

I send nowhere near that of course, but still needed to avoid the new scary-warnings/spam flags on e-mails I send - many less technical people and businesses in my country are (most unfortunately) on either google or microsoft e-mail/webmail services, however dubious and evil-mega-corporate they are. I personally do continue to self-host or, well, pseudo-self-host on rented vps though, but anyway I definitely had to implement DKIM to avoid my e-mails having problems. Once you've done SPF+DKIM you might as well do basic DMARC too of course, but that's in itself fairly straightforward.

5

u/New-Anybody-6206 Oct 26 '26

Sample size of 1-ish, but neither I nor the company I manage since 2011 have ever had any issues reaching gmail, 365, etc. and we send <5000 per day to each via AWS EC2. rDNS/TLS/SPF but no DMARC or DKIM.

15

u/nemothorx Oct 26 '26

Counter sample size of 1. Similar self hosting vintage. I had to implement DMARC/DKIM to get mail to Google reliably as of about two years ago.

rDNS/TLS/SPF was in place and not enough. Running from a small non-cloud hosting provider.

6

u/DGolden Oct 26 '26

They may have different tiers of trust in different IPs/providers or something, I dunno, probably some aggregate pass/fail score of a number of factors.

6

u/deong Oct 26 '26

Which is, right there, the problem with self hosting email. You'll never know. You'll never know if a specific mail will be delivered, and if it wasn't, you'll never know why it wasn't.

1

u/New-Anybody-6206 Oct 26 '26

Interesting... good to know in case I start to have problems. Thanks

6

u/dreamlax Oct 26 '26

I think AWS have probably toughened the rules around unblocking port 25 on EC2 instances. A common problem seen in r/aws is people failing to get production access to SES, so they are probably equally unlikely to get port 25 unblocked for EC2 also.

My (non-AWS) mail server failed to deliver to MS (or MS would classify it as spam) without implementing DMARC and DKIM. Gmail was less picky in my experience.

6

u/AyrA_ch Oct 26 '26

Same here. I run my own e-mail server from home, and this is the things you need as of today to successfully send messages to practically everyone:

  • IP address that is not marked as dynamic by your provider and has no history of abuse in commonly used spam lists
  • A reverse DNS entry that does not contains large chunks of your IP address
  • The domain name pointed to by the reverse DNS entry must point back to the correct IP address.
  • Correct hostname configuration on the server, so the name sent by your mail relay in SMTP EHLO <FQDN> greetings resolves to itself (does not need to match the reverse DNS name)
  • At least one MX record with at least one functioning SMTP server on port 25
  • E-mail servers in MX records greet with 220 <FQDN> Service ready (or "Server" instead of "Service")
  • All MX mail servers accept mail for postmaster@FQDN (case insensitive)
  • Correct SPF record that terminates in ~all or -all

To my knowledge, other DNS based mechanism to control mail delivery are not necessary.

1

u/Jonathan_the_Nerd Oct 26 '26

I have a friend who runs his own small domain. He had SPF and DKIM but no DMARC. I noticed his emails would take a few hours to show up in my Gmail inbox. They always got through eventually, but there was always a delay. Once he implemented DMARC the problem went away.

2

u/DGolden Oct 26 '26

FWIW if you have a DNS domain name, and have a google account, turns out you can go to the https://gmail.com/postmaster/ gmail postmaster tool and use it see what gmail thinks of your DNS domain name - https://i.imgur.com/PRDzr4Z.png

It uses basically the same custom DNS TXT record check as the google search console does to establish it's your domain name, but that is something you have probably already configured given google's search engine dominance (sigh, but that's another rant), don't panic if you add your domain name to the postmaster tool and it initially shows up as unverified, configure the TXT record if you haven't already, give it a bit of time, then click verify on the domain name's dropdown menu in the postmaster tool.

1

u/xylarr Oct 27 '26

Nice. I tried adding the TXT DNS record and it turns out, as you said, I already had the domain verification TXT record present.

It's nice to know that according to this tool I'm fully compliant.

12

u/snurfer Oct 26 '26

CloudFlare is so good. Static hosting, Workers, D1, cloudflared tunnel, email.

14

u/KamiKagutsuchi Oct 26 '26

And when cloudflare goes down the internet crumbles

9

u/slayerx1779 Oct 26 '26

Maybe if other companies were as good, less of the internet would crumble?

2

u/DeliciousIncident Oct 26 '26

It is a massive pain to maintain if you setup it yourself, but what about the ready self-hosted solutions someone else maintains for you and you just pull the updates? Like mailcow, mail-in-a-box, iRedMail, modoboa, etc.

4

u/hgg Oct 26 '26

However, it is just a massive pain in the ass to maintain

Is it? You’ve already done the (somewhat) hard part. I’ve been running mail servers for over 20 years. They just work.

9

u/Jaded-Asparagus-2260 Oct 26 '26

Until they don't. And how do you learn that your emails don't arrive anymore?

3

u/boboman911 Oct 26 '26

You have to continuously rotate the keys and make sure new security standards are properly applied based on whatever RFC the big boys are on or your shit will go straight to spam

1

u/raralala1 Oct 27 '26

you can't automate that?

1

u/Seref15 Oct 27 '26 edited Oct 27 '26

I used to work running around 300 mail servers around 8 years ago from various clouds and VPS providers. We also had DMARC, DKIM, and SPF all set up.

On any given day we'd get 2 or more mail servers landing on some blacklist or another for absolutely no good reason. It sucked. Usually the offender was ProofPoint or a service that used them.

1

u/TheLastNapkin Oct 26 '26

I've been looking into using cloudflare email for the sending but it says it's still in beta. Do you recommend it in it's current state?

2

u/dreamlax Oct 26 '26

It probably depends how you use it I think.

I use it to send/receive emails from my own personal domain, probably I receive 200 emails per month, and send 20 or 30 emails per month, so for that purpose, I've found it works pretty well.

It could be a different story if you plan on building an app and sending emails to your users.

3

u/TheLastNapkin Oct 26 '26

Yeah I need for transactional emails for the product and newsletters and stuff for my business domain email account... Thanks for the letting me know though 🙏

1

u/gnufan Oct 26 '26

Way back a decade plus ago Microsoft rate limited hotmail to one email a second unless you were approved bulk sender or similar. We'd email our million users once a month and the hotmail emails would take a few days to go through the queue.

The bigger problem was knowing about deliverability, and purging dead emails (which if you don't do you get penalised by the spam checks). There are simple ways, but you quickly end up doing exactly what sendgrid and friends already do. Pretty quickly it is easier to pay someone to eat the small routine discomforts of email, especially if the big mail servers trust them to filter bad customers, and don't trigger as sensitively when they see the same email sent to 60,000 of their inboxes.

2

u/justin-8 Oct 26 '26

I had a month or so where Google would reject most emails to and from my domain while using cloud flare's email relay. It would always say it was spam, I had spf, dkim, you name it all set up. Every checker I could find said they were set up currently and test emails were valid. But not Google. And my domain had emails linked to Google emails for 10+ years too.

So, I wouldn't recommend them, there's hundreds of other alternatives around for less than a dollar a month that are working quite well.

Surprisingly I ended up using apple iCloud for mine, you can get a bunch of domains and email forwarding on their $0.99 plan and it's been solid for a few years now since that cloudflare incident.

1

u/xylarr Oct 27 '26

One of the things I had to do to get Google to accept mine was to have the reverse IP lookup. So if my sending email address is name@example.com, and the IP address I sent from was 1.2.3.4, U made sure that if you did a reverse (ptr lookup against 1.2.3.4 that it would return something.example.com.

1

u/justin-8 Oct 27 '26

Well, I was sending it from Gmail, using the send as feature that had worked for a decade before that. And immediately after swapping to iCloud it worked again.

I also had some government departments unable to send me emails at random times while on cloudflare. I wouldn't go back to it if they paid me. But if it's working for others, great.

1

u/raralala1 Oct 27 '26

I have used it, so many failed email, mostly to outlook email, so I wouldnt recommend it to any company.

20

u/bureX Oct 26 '26

I have my own e-mail server, and it took me ages (years) to get my newly acquired private IP addresses to stop being listed on all sort of blacklists and SURBLs. Google and Microsoft don’t even allow you to push for any of that, they simply reject any e-mail you send, it doesn’t even reach the spam folder.

You just have to wait and be at their mercy.

Keep in mind, I am using this e-mail server for my own personal stuff, as well as for my sidegig company. But there’s no way I would allow anyone to get access to it, e.g. a family member or a friend, because it only takes a few spam emails or one compromised account to get blacklisted all over again. And I mean the entire server.

Oh, and I also need to mention all the spam e-mails I receive. I need to setup all sorts of anti spam measures, like Spamassassin, otherwise I will receive tons of garbage, especially from China. But they’re oftentimes using GMail to send all that!!

Stupidly enough, due to other people’s server misconfigurations (SPF, DKIM), I constantly get legitimate e-mails going into spam on my end.

It’s a shitshow.

It’s rarely about trust, but mostly about how big you are.

141

u/iluvatar Oct 26 '26

Simple answer: because the big providers have colluded to make it impossible for smaller players to compete. I run my own mail servers and I have DMARC, DKIM and SPF set up. I used to send out a newsletter to ~50 people for a small event that I ran. But half of them weren't receiving it because Google, Microsoft et al were blocking my messages. They claim it's in the name of preventing spam. But in reality, they're just locking legitimate email senders out and there is nothing you can do about it. Really, governments need to step in and force them to stop their anticompetitive practices. But they won't.

26

u/the_gnarts Oct 26 '26

Yeah, self-hosting isn’t hard but it breaks down at sending bulk-email. None of the big players will allow that unless you go through one of the commercial relays that do their own pre-filtering.

40

u/manuscelerdei Oct 26 '26 • Bravo

They don't care about the money lost to some rando setting up his own email server. You're not that big a deal. Spam filters just got tuned to weed out anything even remotely out of the ordinary, and your email looks out of the ordinary.

19

u/solid_reign Oct 26 '26

I work in cybersecurity and I've had clients use Microsoft's direct send functionality to spoof a the same client's domain and place an email with malware directly in a VIP's inbox. So, no, I wouldn't say that they weed anything out of the ordinary.

13

u/redditreader1972 Oct 26 '26

Spammers even use google and microsoft these days. Good luck blacklisting those IPs. 

2

u/Dragongeek Oct 26 '26

Same issue here. Don't even self host, but have a hired server do it for me. The Christmas greetings bulk email to ~500 people just does not work from that account, we need to use Gmail alternate. 

2

u/k-mcm Oct 26 '26 edited Oct 27 '26

It's Google.  They have no outbound spam filtering.  Their idea is that they're too big to block so they'll increase the burden on other mail providers. Spam filtering is very difficult and expensive without using network-level blocks. 

2

u/Practical_Cell_8302 Oct 26 '26

Blocking as in not recieved or sent into spam? Because i get so many horrible spam messages on all microsoft and gmail emails it is horrible.

3

u/iluvatar Oct 26 '26

No, blocked at an SMTP level. Message rejected.

0

u/systembreaker Oct 27 '26

By colluding to centralize email systems, these big tech companies can help their buddies at the NSA spy on everyone.

12

u/Ch3t Oct 26 '26

I worked at a small company where we had a problem with people stealing other people's lunches from the refrigerator. Also, open relay was enabled on our email server. One day one of the salesmen sent an email to everyone complaining about his "tasty chicken sandwich" being stolen. I telnetted to our email server and sent him an email from homer.simpson@ourdomain.com, subj: mmm, tasty chicken sandwich. I could hear him cursing one floor below in a different wing.

3

u/pm_plz_im_lonely Oct 28 '26

This morning I ate a peanut butter sandwich it was pretty good.

1

u/Ch3t Oct 28 '26

mmm tasty peanut butter sandwich. Was it yours?

19

u/MartinMystikJonas Oct 26 '26

Because many people worked very hard to make sending spam expensive so our inboxes are not flooded with millions of junk messages.

1

u/this_theater_is_lit Oct 27 '26

and in turn they made email way overpriced for what it is

17

u/mfitzp Oct 26 '26

Good stuff. Nice to read something written by a human for a change.

14

u/amped-row Oct 26 '26

All this and it’s not even secure

14

u/sweetno Oct 26 '26

All this, it not being secure, and yet no one cares. Unless you're a spy, journalist or aspiring revolutionary.

If this messages was sent to you by mistake, remove it ASAP or we'll sue you and all your children for three generations.

2

u/FateOfNations Oct 26 '26

It’s a bit better than it used to be. Most email these days is actually TLS encrypted in transit between servers. It’s opportunistic, with both ends having to support it, and in most cases it falls back to unencrypted if the servers don’t agree.

4

u/SessionIndependent17 Oct 26 '26

Because email has been poisoned. Even regular individual emails I might send from an org email with the proper txt/pk records set up stopped working via Gmail. No assistance is available.

4

u/saxbophone Oct 27 '26

TL;DR: Email is a cartel in practice.

7

u/lazyant Oct 26 '26

AWS SES is like two orders of magnitude cheaper. You have to do a bit of work yourself though

2

u/phr0ze Oct 26 '26

You have to get approval and it is a nightmare.

2

u/goatanuss Oct 27 '26

It takes clicking a button and waiting like a week from my experience.

1

u/phr0ze Oct 27 '26

Nope. I waited a week and was denied. Completed everything thoroughly. Not marketing. Just password reset type emails.

0

u/k-mcm Oct 26 '26

I block SES on my mail server because it's a flood of crap and Amazon can't be bothered to create a proper MAIL FROM header. 

1

u/ksajadi Oct 27 '26

you can do it on SES but it's a bit of a manual work. i know sendops does that

6

u/GeneralSEOD Oct 26 '26

I love topics like this. You will have industry veterans swearing against running your own mail server. Just go to a provider. Then you have like 4 redditors claiming they're running their own mail server and it's been fine.

(Nobody has had any mail from them for 17 years)

1

u/That-Surprise Oct 27 '26

Ignorance is bliss 😂

6

u/Humphrey-Appleby Oct 26 '26 edited Oct 26 '26

Don't worry, Google, Yahoo and Fastmail are hell-bent on making it even more expensive for you with with DKIM2, an over-engineered, technically flawed and entirely unnecessary replacement for ARC, at the expense of established DKIM functionality. This will drive more people away from on-premise hosting and smaller, cheaper ESPs (fewer options due to higher costs) and towards a handful of players.

3

u/Zardotab Oct 27 '26 edited Oct 27 '26

Because spammers and scammers have infested it. We need a new standard, something with e-stamps.

2

u/DDFoster96 Oct 26 '26

It costs me 50p + a further 50p/minute to call a VoIP phone at one address from a VoIP phone at a different address. It's the same price as calling an analogue landline. But I can call either phone from a mobile for free, with a lot more infrastructure involved. I'm already paying for both internet connections, why does the traffic over them cost that much extra? 

2

u/Mediocre_Safety5743 Oct 26 '26

Yeah that trust part makes sense, you are mostly paying to not land in spam. I tried self hosting once and most of my mail ended up in the spam folder anyway.

2

u/ksajadi Oct 27 '26

Is it? AWS SES let's you send transactional emails for something like $0.1 per 1000 emails. True, you can do it yourself (host your own email infrastructure) for much cheaper per email cost, but you're not going to achieve anything like the deliverability rates of SES or others, because that part is the hard part.

If you want to send marketing emails (especially cold emails) then you're in a whole lot of other trouble for spam rules, etc which make the total more expensive.

However, I agree with you on one part: companies like Customer.io charge per contact on your list and not emails sent. this means if you have a list of signups that you can legitimately send emails to (not spam), you will pay a lot of money just to keep those on the list, when in reality you only send emails to a subset of them every now and then.

i'd say search for product that do "drip campaigns over ses" and you'll end up paying way less. but you still have to keep your email practices clean (no emails without the recipient's signup)

2

u/xylarr Oct 27 '26

I don't self host my actual mail, but I have setup an SMTP relay on my LAN so machines on my network can send email.

This was quite involved because you have to setup the various keys and sign messages. I also setup a reverse IP lookup so it returns the same domain. All of this is to make sure the destinations will accept the messages. Having the reverse lookup was the last step to have Google accept my mail.

2

u/TheGreatKonaKing Oct 27 '26

We have a terrific system that makes it extremely hard for small scale senders to send out ordinary business email, while, of course, still allowing the deluge of crap from large scale spammers to go right through.

4

u/WegWerfAccount122 Oct 26 '26

sending emails is super cheap on aws ses and most services are just upselling ses

3

u/gefahr Oct 26 '26

Most email companies are definitely not just reselling SES. This is trivial to confirm by looking at their sending IPs.

2

u/WegWerfAccount122 Oct 26 '26

You know that you can bring your own ip to ses

2

u/gefahr Oct 26 '26

Yes, but that's not what I mean. No one is taking their Klaviyo or ExactTarget IP to SES.

1

u/phr0ze Oct 26 '26

SES is very difficult to get AWS approval.

1

u/vr6wannabe Oct 26 '26

You're paying for a team of people that enjoy walking through a live mine field every day.

I build email and there's nothing "hard about the tech" but man managing our IP blocks, reputation, abuse etc. Thats the entire business.

What I love about it, is its something that's not going to be vibe coded.

1

u/Fine-Comparison-2949 Oct 26 '26

Paying for the convenience.

For you email to go right in my spam inbox.

1

u/ElvishParsley123 Oct 27 '26

It used to be any discussion about spam ended up with this checklist posted to it: https://craphound.com/spamsolutions.txt

I don't really get any spam anymore on my personal accounts, so it seems like the current solution managed to avoid all those issues. Or maybe just we decided some of the downsides listed were worth trading off for getting rid of spam.

1

u/fastdruid Oct 27 '26

I ran my own mail server for years (qmail) but it was becoming more and more of a pain as time went on. The way qmail handled accepting mail[1] would occasionally cause my IP to be blacklisted, the range being DHCP would cause it to be blocked generally, the various additional requirements were a pain and dealing with the constant spam was a huge issue.

I gave up when I moved to a provider that handled it all for me.

[1] For security reasons qmail accepts all mail, then checks against its internal user list. This prevents someone using a word list to validate usernames. Unfortunately it also means that certain software also assumes that its an open relay as well as the user IS valid. Until I disabled bounces I would get huge numbers of bounce messages queued that would themselves bounce.

1

u/dotnet-kvadrati Oct 27 '26

Anybody have some good sheet of recommendation what you need all to setup in you DNS so you are on a safe side?

1

u/PoloGator Oct 28 '26

I've been self-hosting my own email for the better part of 25 years and there are challenges for sure. The biggest thing to get right is hosting it on a clean address with valid DNS (A, PTR, MX records). After that, so long as SPF, DKIM, DMARC, ARC, STS, etc. are configured it should work fine. But, it's not what I would consider simple either. 😅 Definitely not for those that just want it to work without putting in some effort.

1

u/Own_Appointment_6401 29d ago

Using aws simple email is around 0.10$ per 1000 emails, so not a large number unless you really need to send a large volume.
If you should require EU provider there are Scaleway in Paris - a little cheaper actually and very high on deliverability.

1

u/The4thMonkey 29d ago

I have been running my own mailsever for years now. It does require some effort with everything from breaking updates, DMARC/SPF, spamfiltering, somestimes white or blacklisting manually.

It's not an insane amount of work but you have to keep paying attention. If I had to put a number on it I'd say 30min of work per month on average.

However I mostly have semi trusted users and I dont send bulk mail = my bounce rate is basically zero.

1

u/Hell_Yeah_Brethren Oct 26 '26

I don’t know if this will help anyone, but this was an issue for me a while back so I made boxox. It’s like resend but for cloudflare.

https://boxox.dev
https://github.com/naieum/boxox

1

u/burnsnewman Oct 26 '26

It should be expensive.

-1

u/__konrad Oct 26 '26

"Spam will soon be a thing of the past" -- Bill Gates (2004)

-2

u/A_K_Thug_Life Oct 26 '26

bro, go with Cloudflare email setup with worker (for free)