Mailpit: alternative to MailHog, Mailcatcher and Mailtrap for local development

I just found out about this new local SMTP server aged around 3 months old. As the name suggest, Mailpit was inspired from MailHog. However, it came to fruition because the developer think Mailhog development is very slow, to almost abandoned by community or its owner.

I did wrote about how to install MailHog previously here.

He also thinks the core of MailHog is not up to the performance he needed. Thus, the Mailpit owner code the server from scratch, and must faster.

Mailpit is a Go based application meaning it can run independently as a single binary executable. You can get the instruction to install on macOS using Brew at this Github url.

Mailpit screenshot

You can also install this in your cloud server, to have your own mocking SMTP server for email testing. Gone the days where your inbox is full with tests registration or newsletters.

For those who use Laravel Valet, you may use the valet proxy feature to mask the default IP:PORT address when accessing web based interface.

valet --secure proxy mailpit http://0.0.0.0:8025

Valet will now proxy [https://mailpit.test] traffic to [http://0.0.0.0:8025].
Restarting nginx...

Now, we can see that I proxy the address with –secure flag, to ensure our mailpit.test runs on https. This is crucial when you want to enable the push notification feature of Mailpit.

Have a nice day!

Photo by Ivan Bandura on Unsplash