The most popular open-source alternative to Mailgun is Postal, with 17k GitHub stars.
Other open-source alternatives to Mailgun are Plunk, useSend, Notifuse and Hyvor Relay (1 more below).
Most Mailgun alternatives here are Marketing & Customer Engagement tools, some are Email & Communication.
The first 3 say in their own README or website that they can replace Mailgun (the quote is shown under each one); the other 3 do the same job, shown with their own description.
Stars and activity updated 27 November 2026.
Questions about Mailgun alternatives
Is there an open-source alternative to Mailgun?
Yes. 6 open-source projects can replace Mailgun, for example Postal, Plunk and useSend. 3 of them say so in their own documentation; the other 3 do the same job.
What is the best open-source alternative to Mailgun?
Postal (17k GitHub stars) is the most popular open-source alternative to Mailgun on GitHub. Plunk has the most recent code changes. The best choice depends on your needs: compare them side by side, for example Postal vs Plunk.
Are the open-source alternatives to Mailgun free?
5 of the 6 projects listed here are free to use under an open-source license, with no license fee: 1 permissive (such as MIT), 4 copyleft (such as AGPL-3.0). Notifuse is source-available: the code is public, but the license limits some uses. Running software on your own server still costs hosting and upkeep, and many projects also sell a hosted version.