Live data from Hacker News

Stalwart mail server (self-hosted all-in-one mail server) now as an admin webui

stalw.art

21–30 of 70 posts

Re: Stalwart mail server (self-hosted all-in-one mail server) now as an admin webui

#21
post #16
post #10

Earlier quoted context omitted.

Roll your own with Amazon SES. Bang up a little script and call the CLI. for recipient in "${recipients[@]}"; do aws sesv2 send-email \ --from-email-address "$sender" \ --destination "ToAddresses=$recipient" \ --content "Simple={Subject={Data='$subject',Charset='UTF-8'},Body={Text={Data='$body',Charset='UTF-8'}}}" \ --region "$region" done I got that script from their website. Should be easy enough to knock something…

In my experience, it’s extremely difficult to get out of the SES sandbox, for what I presume is if your account/org is under a certain amount of spend with them. While basically free under a certain amount of usage, the gatekeeping there does make the idea of self-hosting your email free/cheaply sort of a nonstarter for indie devs. For context, getting out of the sandbox at every org I worked at was essentially a sin…

Mine did take a week but I have an actual website and active forum that I could point them to so perhaps that helped.

Re: Stalwart mail server (self-hosted all-in-one mail server) now as an admin webui

#22
post #7

Is there a reliable solution we could use for our small startup? We want to shoot out daily emails to our users, like Bandcamp or Substack do. We could ofc use Mailchimp but always happy to explore self hosting. Would this or another solution work?

I wouldn’t want to deal with deliverability issues, which are very much a matter of quality of service and industry relationships rather than a matter of having the right software. Just use Mailchimp or Sendgrid or Amazon’s email service, pay the small service fee, send high quality email, and don’t get distracted by trying to figure out why your emails are going to spam.

I played around a bit with both Sendgrid and Amazon SES and found that actually my own exim server on a VPS with a small and reputable provider had quite a bit better deliverability than either of those.

Re: Stalwart mail server (self-hosted all-in-one mail server) now as an admin webui

#23
post #9
post #7

Is there a reliable solution we could use for our small startup? We want to shoot out daily emails to our users, like Bandcamp or Substack do. We could ofc use Mailchimp but always happy to explore self hosting. Would this or another solution work?

The biggest issue you will likely encounter is having clean IP addresses to send from. If you have that problem solved, the next hurdle will be realizing that Stalwart is more than you would need to manage sending daily emails. If you have the IP addresses, you could just use a script that grabs email addresses to send to for the day, and ship them with a fairly straightforward SMTP daemon (sendmail) installation on…

Yeah looks like based on the replies it's more of a Gmail alternative. Which is great but not about sending so much. Have you had a chance to setup sendmail? how we've been using our own baremetal setup on hetzner (ipfs box) and could use that for sending too. Any recos on how to make sure the IP is seen as clean?

Re: Stalwart mail server (self-hosted all-in-one mail server) now as an admin webui

#24
post #7

Is there a reliable solution we could use for our small startup? We want to shoot out daily emails to our users, like Bandcamp or Substack do. We could ofc use Mailchimp but always happy to explore self hosting. Would this or another solution work?

I've been using Postal Server for 2 years ( https://docs.postalserver.io/ ) sending around 50k emails / day without any issue. Just make sure you set up everything (SPF, DKIM, DMARC) correctly, including the PTR reverse lookup of your server ( really important ). Key tip: warm up your ip(s). I use mailreach.co ( it has a USD 25/m cost ), reached near 100% deliverability in a month. I now have barely have any maintena…

Postal is not very well maintained, I don't think it's a wise choice to use it if alternatives exist.

Re: Stalwart mail server (self-hosted all-in-one mail server) now as an admin webui

#25

Earlier quoted context omitted.

I've been using Postal Server for 2 years ( https://docs.postalserver.io/ ) sending around 50k emails / day without any issue. Just make sure you set up everything (SPF, DKIM, DMARC) correctly, including the PTR reverse lookup of your server ( really important ). Key tip: warm up your ip(s). I use mailreach.co ( it has a USD 25/m cost ), reached near 100% deliverability in a month. I now have barely have any maintena…

Thanks! Wdym by warm up your ips? How does mailreach relate to the setup?

What email warming services do is they create activity between your server and hundreds of email accounts they manage on major ISPs and they make sure to click on "not spam" if it falls under spam, and try to bring your emails to the main inbox.

It's a bit of a grey area thing in fairness.

Re: Stalwart mail server (self-hosted all-in-one mail server) now as an admin webui

#26
post #7

Is there a reliable solution we could use for our small startup? We want to shoot out daily emails to our users, like Bandcamp or Substack do. We could ofc use Mailchimp but always happy to explore self hosting. Would this or another solution work?

Postmark and Mailgun are both solid choices and probably better than Mailchimp for higher volume / non-marketing emails (however, they are SaaS)

Re: Stalwart mail server (self-hosted all-in-one mail server) now as an admin webui

#27

Earlier quoted context omitted.

I've been using Postal Server for 2 years ( https://docs.postalserver.io/ ) sending around 50k emails / day without any issue. Just make sure you set up everything (SPF, DKIM, DMARC) correctly, including the PTR reverse lookup of your server ( really important ). Key tip: warm up your ip(s). I use mailreach.co ( it has a USD 25/m cost ), reached near 100% deliverability in a month. I now have barely have any maintena…

Postal is not very well maintained, I don't think it's a wise choice to use it if alternatives exist.

Why? Last commit on main branch was 3 weeks ago.

It's not perfect ( a bit slow ), but really easy to set up and configure. Which was the main draw.

Re: Stalwart mail server (self-hosted all-in-one mail server) now as an admin webui

#28

Earlier quoted context omitted.

Thanks! Wdym by warm up your ips? How does mailreach relate to the setup?

What email warming services do is they create activity between your server and hundreds of email accounts they manage on major ISPs and they make sure to click on "not spam" if it falls under spam, and try to bring your emails to the main inbox. It's a bit of a grey area thing in fairness.

Oh cool. So that's what mailreach does? Sounds great tbh

Re: Stalwart mail server (self-hosted all-in-one mail server) now as an admin webui

#29
post #20

Earlier quoted context omitted.

Thanks! Any guide wrt using dkim / dmarc and such to ensure it's bulletproof? Any customizations you did beyond the CLI script above?

My entire script is here. https://gist.github.com/johnnydecimal/e7b1a03e26b79239363b5d... Though I've since updated that to include a .txt file as the body vs. typing it out in the email. But that's easy enough. I might have added TXT records to satisfy DKIM etc., I don't remember. There are guides on the Amazon site; I'm a bit of a dummy when it comes to this so if I worked it out it must have been obvious enough.

Tyvm! If you have pointers to find the guides that'd be appreciate just for the sake of seeing if they're a good option. I'll look either way. Ty for the help

Re: Stalwart mail server (self-hosted all-in-one mail server) now as an admin webui

#30

Earlier quoted context omitted.

I've been using Postal Server for 2 years ( https://docs.postalserver.io/ ) sending around 50k emails / day without any issue. Just make sure you set up everything (SPF, DKIM, DMARC) correctly, including the PTR reverse lookup of your server ( really important ). Key tip: warm up your ip(s). I use mailreach.co ( it has a USD 25/m cost ), reached near 100% deliverability in a month. I now have barely have any maintena…

> Just make sure you set up everything (SPF, DKIM, DMARC) correctly, including the PTR reverse lookup of your server ( really important ). I don't know much about mail server and this must be how people feel when they watch Hollywood movie hacker moment

It's mostly DNS records. Postal Server has good documentation and tools helping you set up quite everything in their UI.

It seems Stalwart also makes it easy in their UI based on the gif in the post. You can see at some point a list of DNS entries to update.

The only missing thing in all these is the PTR record which needs to be set up at the hosting level.

A good tool to check if everything is OK is https://www.mail-tester.com/

Post reply on HN