A Simple Development SMTP Server For Linux

DevOps

08/12/2022


If you're looking for a simple SMTP server on Linux or WSL, MailCatcher is a great solution. To install it, you'll first need its dependencies, which includes Ruby.

BASH
apt-get update
apt-get install -y build-essential software-properties-common
apt-get install -y libsqlite3-dev ruby-dev

If these commands fail, you may need to prepend sudo. Then install MailCatcher as a Ruby gem,

BASH
gem install mailcatcher

and launch it with:

BASH
mailcatcher

The email client is then available at http://127.0.0.1:1080. The SMTP server itself is reachable at 127.0.0.1:1025. A password and username are not needed to use the server.


WRITTEN BY

Code and stuff