News for hackers. Stuff that matters.
Re:Building a serverless email delivery service on AWS by theshadowknows on Thursday September 02, 2021 @04:29AM (#28389797)
I don’t know how many folks really know how much money is spent by big (and medium and small) companies on sending email but I can tell you it is considerable. My last job was a small retailer and we spent maybe 2m a year just on platform costs and at my current role it’s closer to 200m (USD). There are some places where it probably makes sense to use one of the vendors. But I think a carefully architected custom solution like this could get most organizations where they need to be. I’m just not sure how much the talent costs. Do AWS experts charge a premium? Or would it just be cheaper to buy Acoustic and let the account team handle all the work.
Re:Building a serverless email delivery service on AWS by tyingq on Thursday September 02, 2021 @10:01AM (#28392111)
SES is good at sending stuff, but if you're mailing a lot you'll want to handle both hard and soft bounces correctly. And not just bounces you get live from the end SMTP daemon, but bounce emails as well.

If you keep attempting to email an address that bounces, over time, you may get marked as a spammy sender.

As far as I can tell, this setup doesn't do much with bounces other than quitting on a clear hard bounce from the end SMTP daemon.

This is one of the reasons email services aren't cheap.

Re:Building a serverless email delivery service on AWS by joawan on Thursday September 02, 2021 @03:15PM (#28396127)
You're right! Bounces and complaints needs to be handled properly and the design does not reflect that.

SES uses account-level suppression lists, to avoid sending emails to addresses that has complaints, hard bounced or soft bounced a number of times. It does not automatically handle bounces sent over email, and I've not seen a provider out there doing that but I could be missing it.

We do manually monitor those however, by having the FROM address directed at an inbox that we monitor. Out of the 4M emails we send per month, we only get one bounce email back. And that's not really a bounce but a "please confirm you are real" bounce.

This could probably be automated with SES too, by parsing incoming emails and adding addresses to bounce list. For that 1 email per month we decided not to add that complexity.

Note: This setup is used for transactional emails, where users opt in via account creation and the first email sent is a verification email, to check that the address is real and that the user owns it.

Re:Building a serverless email delivery service on AWS by tyingq on Thursday September 02, 2021 @03:57PM (#28396608)
Thanks...it does appear to handle the live SMTP bounces better than I thought, at least for hard, synchronous bounces that happen at SMTP delivery time: https://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-e...

However, my experience was that you also had to do something with soft bounces. For example, if someone's mailbox is perpetually full, re-sending to it over and over still can still eventually hurt your sending reputation.

Re:Building a serverless email delivery service on AWS by joawan on Friday September 03, 2021 @02:38AM (#28401089)
Yeah, SES puts those soft bounces on suppression list too after a number of failed attempts. That is actually an issue we've struggled with. A large number of users using a mail service with just 10MB of storage. Those mailboxes were always full and we got soft bounced over and over until SES put them on suppression list. User contacted support and got told to clean out the inbox to make room but emails could still not be delivered until we had manually remove the address from the suppression list.
Re:Building a serverless email delivery service on AWS by dharmab on Thursday September 02, 2021 @10:27AM (#28392464)
It should be noted that CAN-SPAM has very high fees for spanming and major email services can aggressively block spammers. Legitimate businesses have to carefully monitor and correct their issues. AWS can and will suspend your usage until you fix the problems.
Re:Building a serverless email delivery service on AWS by southerntofu on Thursday September 02, 2021 @05:29AM (#28390126)
For that kind of money you'll be better off selfhosting your entire infrastructure and employing the "experts".
Re:Building a serverless email delivery service on AWS by chinathrow on Thursday September 02, 2021 @05:31AM (#28390140)
Not so sure about hat. Deliverability is still a huge issue when selfhosting your own e-mail setup.
Re:Building a serverless email delivery service on AWS by southerntofu on Thursday September 02, 2021 @05:35AM (#28390159)
From what i saw/experienced deliverability is usually only an issue when spamming people against their will. Sure, Microsoft/Google will block you at first but after a few weeks/months of going through administrative hoops you'll be allowlisted and your mails will deliver just fine.

Sounds like paying an office worker a few weeks to keep in touch with Microsoft/Google support plus hardware + employing sysadmins would be considerably cheaper than 200m/year.

That is, of course, unless you're spamming your users with undesired messages.

Re:Building a serverless email delivery service on AWS by luckylion on Thursday September 02, 2021 @06:04AM (#28390310)
I'm not so sure. Running transactional-message-only (i.e. double opt-in, password resets) for a small site I own with DKIM and SPF on its own IP for years ... GMail will still block a large percentage of it.

Using SES with the exact same emails, Gmail will block significantly less. The large providers are whitelisted and unless you're as large, you're not going to get that privilege.

Granted, for $200m you should be large enough to bribe a few Google people to get into the club, but for anything where it reasonably might be profitable to run it yourself and employ a sysadmin, you won't be able to afford that.

Re:Building a serverless email delivery service on AWS by southerntofu on Thursday September 02, 2021 @06:47AM (#28390514)
> GMail will still block a large percentage of it.

Yeah Gmail is actively filtering smaller providers. But from what i heard/read it appears after personally contacting them several times they will end up allowlisting you (like Microsoft).

Re:Building a serverless email delivery service on AWS by EGreg on Thursday September 02, 2021 @08:50AM (#28391426)
And how exactly do you personally contact google multiple times as someone running a domain on the internet? :-D
Re:Building a serverless email delivery service on AWS by southerntofu on Friday September 03, 2021 @07:43AM (#28402893)
Unfortunately these evil tech businesses have very little official avenues to reach them. Usually it's either through public outcry, or through the official form you see in error logs, which requires creating a google account if i remember well.

Arguably, if you're operating a business and have a client using Gmail, you could have you and your client contact Google support to ask allowlisting, then sue Google for anti-competitive (monopolist) behavior if they don't comply. I don't know of a case like this, but it should be an easy win and would set an interesting precedent.

I'm personally not into legal stuff, but if some startup people around here with a few lawyers would try this approach... :)

Re:Building a serverless email delivery service on AWS by toast0 on Thursday September 02, 2021 @10:50AM (#28392761)
If you're sending $200M worth of email, you just pop a warning when people enter a gmail address.

"We have received many reports from GMAil users that our messages were not delivered or delayed. Please provide an alternate address."

Somebody who knows somebody will see that and poke their contact for you.

Re:Building a serverless email delivery service on AWS by pstuart on Thursday September 02, 2021 @10:40AM (#28392646)
Get your trauma on the front page of HN?
Re:Building a serverless email delivery service on AWS by EGreg on Thursday September 02, 2021 @10:54AM (#28392806)
This guy was acting like it’s no big deal, anyone can do it
Re:Building a serverless email delivery service on AWS by alfiedotwtf on Thursday September 02, 2021 @06:50AM (#28390529)
Not sure about the rest of you, but I can't wait for email to die. It's insecure, spammable, and Gmail has an almost-monopoly in terms of delivery.
Re:Building a serverless email delivery service on AWS by southerntofu on Thursday September 02, 2021 @07:09AM (#28390636)
Not sure about the rest of you, but i'm exactly in the opposite team. email is as close to "universal messaging" as we'll ever get. It's the best example of interop we've seen so far and i'm afraid no new protocol could ever catch up with the almost 4 decades of email legacy.

Personally i don't care that Google won't let me talk to people. I treat google's email server like i treat a bourgeois café in a fancy district: there may be friendly people to have a chat with in there, but they definitely don't want me around and i have better places to be and better people to meet. Only a revolution can change this balance, and in the meantime i won't loose my energy trying to get into their club, but rather develop our decentralized clubs.

Re:Building a serverless email delivery service on AWS by upofadown on Thursday September 02, 2021 @08:06AM (#28391055)
It's silly to claim that almost everyone has problems with Gmail deliverability. The fact is that Gmail has problems with receiveability. Gmail is the email provider for people who don't care if they get all their email.
Re:Building a serverless email delivery service on AWS by southerntofu on Friday September 03, 2021 @07:44AM (#28402895)
So true. If only we had more techcoops providing free-price (or 10€/y) services for the masses with a UX experience close to (or better than) google services...
Re:Building a serverless email delivery service on AWS by alfiedotwtf on Thursday September 02, 2021 @07:31PM (#28398680)
This. Gmail deliverability blows away the parent's "interop" comment.
Re:Building a serverless email delivery service on AWS by theshadowknows on Saturday September 04, 2021 @09:13AM (#28414796)
We send multiple billions of emails a year, and text messages, and push messages, and outbound ivr messages, and two way chat messages, and print messages, and in some cases fax messages lol. Our outbound volume is extreme and luckily only a few of our communication streams have trouble with deliverability. But it does take a few different teams to manage it all.