
Photo by Debora Pilati on Unsplash
I've been using Mailchimp to send my newsletter for the last seven years without ever really being a fan. Their UI always felt bloated, and I often moaned about how hard they make it to delete contacts, probably because their pricing is based on the number of subscribers.
Still, I never moved away, for the sole reason that, even though the service felt too pricey, no other provider actually seemed worth the migration effort.
I mean, my use case is also pretty basic: my mailing list is only there to share my blog posts, one post equals one newsletter. Generally, I share an article per month, if not less. In other words, I pay a monthly subscription to send, on average, less than one email to roughly 700 subscribers.
Lately, reflecting on this, and on blogging more generally, I realized I don't really care that much anymore about "promoting" my content. By extension, I felt I should rather delete my Mailchimp account and just save the money.
I was on my way to delete it when, yesterday morning, I spotted a tweet that mentioned listmonk, an open-source, self-hosted newsletter and mailing list manager. After a quick look, it felt a-ok for my requirements: exposing forms for subscribing and unsubscribing, and exposing APIs, which are required for my automated newsletter flow.
So, long story short, I migrated my newsletter to a self-hosted solution, and this blog post is both a test and a way to let you know about it.
Introduction
I generally share technical content or even tutorials about how to do this or that but, in this case particularly, I think it's useless. There's already plenty of material available on the web, and even a documentation for those of you (like me) who still enjoy reading those artifacts from ancient times. So you're likely better off closing this post right now and just asking your LLM to guide you through the process.
.
.
.
Still here? Ok, then here are a few key points that could maybe (?) be interesting if you wish to implement something similar.
Self-hosting
I deployed listmonk with Docker on one of the servers I already have at Hetzner. I did not set up any backup because, as I said, I don't care that much about my newsletter. If it disappears tomorrow, so be it.

What I did do this weekend though: I rotated my SSH keys, following the same approach I used in a recent project, with keys that require human interaction.
A bit like enabling 2FA on a platform I sign in to is a must, I felt a password-protected SSH key stored on my machine was a bit meh. After all, everything is at risk nowadays, and even tools like these are starting to get hacked, as we saw with 1Password this week.
So I invested in a YubiKey for day-to-day usage and a USB stick to store a backup key somewhere, and started using them not just for my really serious projects but for my personal ones as well.
Amazon SES
listmonk sends emails over SMTP and is provider-agnostic, but you likely still need a bulk email relay. Sure, you could plug in your own mail server, but if you do, you might hit some hurdles: emails marked as spam, delivery issues because of a poor sender reputation, a blacklisted IP, bounce problems, etc.
There are various providers like Mailgun, Brevo, Resend and others but I went with Amazon SES, because from what I read it's one of the cheapest solutions. I also used it recently in another project, where I had to find a provider strictly located in Switzerland and, turns out, there aren't that many.
There was one catch though: SES in the Zürich region doesn't offer an SMTP endpoint. So I couldn't use the closest location and instead had to fall back on another European region. I went with the one assigned when I created my project in the AWS console (Stockholm).
Which leads me to another important catch and learning I want to share: the AWS UI/UX is still an absolutely confusing mess. The kind of platform that makes Microsoft look like geniuses. Without an LLM I'm not sure I would even have managed to navigate through it. I literally had to ask for direct links sometimes.
Therefore, here's an important tip: use infrastructure as code and skip anything manual, entirely or as much as possible!
I haven't had a look yet, it's on my TODO list, but I guess something like Terraform, SST or similar lets you set up everything without clicking a single button, or switching the language twenty times because a UI isn't capable of remembering your last choice.
To summarize, when you start your agentic conversation, use a prompt like "I want to set up Amazon SES as listmonk's SMTP relay using infrastructure as code. Make no mistakes." 😉
Software patterns
Once the setup was done, I had to extend my toolchain. Both my blog-to-newsletter-action and blog-to-newsletter-worker only supported one provider, Mailchimp, and had to be extended to support listmonk. The cool thing is that I already had extensibility in mind when I designed them, so it was quite straightforward.
For example, in the action, I already had an interface that describes a provider:
export interface Newsletter {
createDraft(params: {
payload: NewsletterPayload;
blog: Pick<Blog, "author">;
}): Promise<Result<{ campaignId: CampaignId }>>;
}
export function NewsletterProvider(_constructor: Factory<Newsletter>) {}Therefore, it was not only fast for my LLM to write the boilerplate (which btw still required some human review, because it hallucinated some random calls for no reason 🤷♂️), it also made it really easy to integrate the new option.
It just needed a small factory, and the entire pipeline was basically ready.
export const createNewsletterProvider = (): Newsletter => {
const provider = sanitizeEmptyString(process.env.NEWSLETTER_PROVIDER)?.trim().toLowerCase();
switch (provider) {
case "listmonk":
return Listmonk.create();
case undefined:
case "mailchimp":
return Mailchimp.create();
default:
throw new Error(`Unknown NEWSLETTER_PROVIDER "${provider}". Use "mailchimp" or "listmonk".`);
}
};In other words: clean and maintainable = low human and token costs (*)
(*) according to David Dal Busco's Trust Me Bro Institute for AI Research
Go big or go home
As I said, I'm using this blog post as an announcement but also as a test. So if you received an email about it, it likely worked out.

I'm not sure where blogging is going, nor if my newsletter will still be around for long but, still, I just saved $30 a month, so, great success!
Until next time!
David