How I Set Up Free Email for My NodeBB ForumI recently set up nodebb.social, a fe...

@atomicpoet@atomicpoet.org

How I Set Up Free Email for My NodeBB Forum

I recently set up nodebb.social, a federated forum running NodeBB. One of the things I needed was email support for account verification, password resets, and notifications.

That turned out to be more complicated than I expected.

My domain is registered with GoDaddy, but my DNS records are managed by DigitalOcean. I already have a Gmail account, and I didn’t want to pay GoDaddy for another mailbox just to run a forum.

I also didn’t want to operate my own mail server. Running a forum is enough work without dealing with mail server maintenance, spam reputation, and deliverability.

So I went looking for a free solution.

What I eventually discovered is that receiving email and sending email are two separate problems. And you can solve both without paying for traditional email hosting.

Here’s how I did it.

1. Two Services Instead of One

I ended up using two services:

ImprovMX forwards email sent to admin@nodebb.social directly to my Gmail inbox.

SMTP2GO handles outgoing messages generated by NodeBB.

Both have free plans. SMTP2GO offers 1,000 outgoing emails per month, with a limit of 200 per day, which should be sufficient for a small forum.

There is one catch: SMTP2GO requires registration using an email address at a domain you own.

So I had to configure email forwarding first.

2. Setting Up ImprovMX

I created a free account at ImprovMX and added nodebb.social as my domain.

Then I created an email alias:

admin@nodebb.social → my Gmail address

Next, I needed to configure my domain’s MX records.

Since DigitalOcean handles my DNS, I went to:

DigitalOcean → Networking → Domains → nodebb.social

I created two MX records:

First MX record:

  • Type: MX
  • Hostname: @
  • Mail server: mx1.improvmx.com
  • Priority: 10

Second MX record:

  • Type: MX
  • Hostname: @
  • Mail server: mx2.improvmx.com
  • Priority: 20

I left the TTL at its default value.

The @ represents the root domain.

These records tell other mail servers where to deliver messages addressed to my domain.

If your domain already receives email through another provider, don’t blindly replace its MX records.

3. Fixing the SPF Record

ImprovMX also wanted me to configure SPF.

SPF is an email authentication mechanism that identifies which servers are authorized to send email for a domain.

I already had an SPF TXT record in DigitalOcean:

v=spf1 a:my.nodebb.social ~all

Rather than creating another SPF record, I edited the existing one:

v=spf1 a:my.nodebb.social include:spf.improvmx.com ~all

This preserved the existing authorization while adding ImprovMX.

Don’t create multiple SPF records for the same hostname. If you already have one, you generally need to merge the authorized senders into it.

After saving the record, I returned to ImprovMX and clicked Check again under DNS Records.

Both MX records and the SPF record received green checkmarks.

I then sent an email to admin@nodebb.social.

It arrived in Gmail.

So now I had a working email address on my own domain, without purchasing a mailbox.

4. Setting Up SMTP2GO

With incoming email working, I could finally register for SMTP2GO.

I used admin@nodebb.social to create my account.

SMTP2GO sent a verification email, ImprovMX forwarded it to Gmail, and I completed registration.

Next, I needed to authorize my domain to send email.

In SMTP2GO, I went to:

Sending → Verified Senders → Sender Domains

I added nodebb.social.

SMTP2GO provided CNAME records that I added to DigitalOcean DNS. These records allow SMTP2GO to authenticate outgoing email for my domain.

Once the domain was verified, I went to:

Sending → SMTP Users

I created an SMTP user and obtained its username and password.

These credentials are separate from the password used to log into SMTP2GO.

5. Configuring NodeBB

Now I could finally configure email inside NodeBB.

I opened:

https://nodebb.social/admin/settings/email

Then I enabled external SMTP transport and selected Custom Service.

Here are the settings I used:

  • Sender email: admin@nodebb.social
  • SMTP server: mail.smtp2go.com
  • SMTP port: 2525
  • Encryption: STARTTLS
  • SMTP username: My SMTP2GO SMTP username
  • SMTP password: My SMTP2GO SMTP password

I saved the settings and sent a test email.

Nothing arrived.

At first, I thought the problem was SMTP authentication or possibly DigitalOcean blocking the connection.

But when I opened SMTP2GO → Reports → Activity, I found something interesting.

SMTP2GO had received both test emails!

They just weren’t being delivered.

6. The Problem Was admin@server.local

The SMTP2GO activity logs showed two soft bounces.

Both messages had been addressed to:

admin@server.local

That was the problem.

My NodeBB administrator account still had a placeholder email address, so the test messages were being sent to an address that couldn’t receive public email.

I returned to NodeBB, opened my administrator profile, and edited the account’s email address.

I changed it to:

admin@nodebb.social

NodeBB asked for my account password to confirm the change.

After saving, I tested email again.

It worked!

The SMTP connection had been working all along. It was the recipient address that was wrong.

This is why SMTP activity logs are useful. A failed email doesn’t necessarily mean your SMTP configuration is broken.

7. What This Costs

Here’s my complete setup:

  • ImprovMX: Incoming email forwarding — free.
  • SMTP2GO: Up to 1,000 outgoing emails per month — free.
  • DigitalOcean: DNS management — part of my existing service.
  • Gmail: Receives forwarded email — free.

There are limits, of course. SMTP2GO’s free tier isn’t intended for a massive forum sending thousands of notifications every day.

But for a small community, this should be more than adequate.

And if the forum grows beyond those limits, I can always reconsider my email infrastructure.

8. Why I Prefer This Approach

I could have purchased email hosting through GoDaddy. I could have subscribed to Google Workspace or Microsoft 365. I could even have tried running my own SMTP server.

But none of those options made much sense for what I was trying to accomplish.

I don’t need another mailbox. I already have Gmail.

I don’t need to run a mail server. I just need my forum to send account verification messages, password resets, and notifications.

And I don’t want another recurring subscription for something my little forum barely uses.

Instead, I separated the problem into two parts.

ImprovMX receives email. SMTP2GO sends email. DigitalOcean manages the DNS records. NodeBB uses SMTP2GO whenever it needs to contact somebody.

No dedicated mail server. No paid mailbox. No additional subscription.

This approach isn’t limited to NodeBB, either. It should work with plenty of other self hosted applications that support SMTP.

There are still things to maintain, including DNS authentication, service limits, and email deliverability. But it’s considerably less work than managing an entire mail server.

And now my federated forum can send email without requiring me to become an email administrator.

One less piece of infrastructure to worry about.

@julian #NodeBB #Fediverse #Threadiverse #email