Self-hosted alternatives to SendGrid
Your own transactional email sending server. Below are 10 open source options you host on your own server — with no monthly per-user fee and full control of your data.
Haraka
★ 5,588Fast, highly extensible, and event driven SMTP server.
OpenTrashmail
★ 867Complete trashmail solution that exposes an SMTP server and has a web interface to manage received emails. Works with multiple and wildcard domains and is fully file based (no database needed). Includes RSS feeds and JSON API.
OpenSMTPD
★ 576Secure SMTP server implementation from the OpenBSD project.
DragonFly
★ 259A small MTA for home and office use. Works on Linux and FreeBSD.
chasquid
SMTP (email) server with a focus on simplicity, security, and ease of operation.
Courier MTA
Fast, scalable, enterprise mail/groupware server providing ESMTP, IMAP, POP3, webmail, mailing list, basic web-based calendaring and scheduling services.
EmailRelay
A small and easy to configure SMTP and POP3 server for Windows and Linux.
Exim
Message transfer agent (MTA) developed at the University of Cambridge.
Postfix
Fast, easy to administer, and secure Sendmail replacement.
Sendmail
Message transfer agent (MTA).
Frequently asked questions
Is there a free self-hosted alternative to SendGrid?
Yes. We've gathered 10 self-hosted, open source alternatives to SendGrid — including Haraka, OpenTrashmail, OpenSMTPD. You run all of them on your own server.
What is the best open source alternative to SendGrid?
Haraka is one of the most popular (5,588 GitHub stars). The "best" depends on your case — compare the options below.
Do I need a server to replace SendGrid?
Yes. You can use a home server (homelab) or a cheap VPS (from ~€4/mo). See the hosting suggestions on this page.