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 updateapt-get install -y build-essential software-properties-commonapt-get install -y libsqlite3-dev ruby-devIf these commands fail, you may need to prepend sudo. Then install MailCatcher as a Ruby gem,
BASH
gem install mailcatcherand launch it with:
BASH
mailcatcherThe 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.