Loading introduction
Loading stats
Loading about
Loading projects
Loading project
Skip to content
Md Nayeem Hossain
Explorer
home.tsx
smtp-server.md
smtp-server.md
projects.js

// Email Infrastructure

Custom SMTP Server

A self-hosted SMTP mail server running on our own domain and infrastructure — unlimited outbound email at zero per-message cost, tuned to stay out of the spam folder.

Custom SMTP Server cover

Overview#

This project is a mail server we host and run ourselves, rather than paying a third-party transactional email provider. It sends all of our outbound email — application notifications, alerts, and bulk mail — directly from our own domain and our own infrastructure.

Why We Built It#

Third-party SMTP and transactional email services charge per email or per user once you go past a free tier, and that cost adds up fast at any real volume. Running the mail server ourselves removes that cost entirely: we can send as much mail as we need, and create as many mail accounts as we need, without a growing monthly bill.

What It Does

#

On top of the mail server itself, there's a management layer (built with Node.js, Express, and MongoDB, with a Next.js interface) for creating and administering mail users on our domain — so new accounts can be provisioned on demand instead of being a manual server-side task.

Deliverability#

Running your own SMTP server is only useful if the mail actually lands in the inbox. A meaningful part of this project was getting the sending domain properly authenticated and configured so outbound mail is trusted by receiving mail servers and consistently avoids the spam folder.

My Role#

I built this solo, end to end — from server setup and mail deliverability configuration to the account management layer on top.

01

Key Features

  • Self-hosted SMTP server running on our own domain and infrastructure
  • Unlimited outbound email sending with no per-message or third-party API cost
  • Unlimited custom mail accounts, created and managed on demand
  • Delivery tuned to consistently land in the inbox instead of spam
  • A management layer on top of the raw mail server for creating and controlling users
02

Gallery

Dashboard overview — campaigns, recipients, sent volume and quick actions
Dashboard overview — campaigns, recipients, sent volume and quick actions
Unified IMAP inbox across all connected accounts
Unified IMAP inbox across all connected accounts
Add an SMTP/IMAP account with provider presets and a connection test
Add an SMTP/IMAP account with provider presets and a connection test

Details

project.json
1{2 "name": "smtp-server",3 "category": "Email Infrastructure",4 "role": "Solo Developer",5 "stack": [6 "Node.js",7 "Express.js",8 "Next.js",9 "MongoDB",10 "TypeScript",11 "Docker",12 "Nginx",13 "Linux (VPS)"14 ]15}
PreviousAffExploreNext ClickTech