From 5a8d6fdaf7c4851124f00400144ef37ca66269b5 Mon Sep 17 00:00:00 2001 From: Juampy NR Date: Tue, 6 Feb 2018 12:01:50 +0100 Subject: [PATCH 1/3] Re-arrange installation and add Ubuntu/Debian Right now it is not clear how to install MailHog on Linux. Here are some tips on how to do it. --- README.md | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index fe6ef00..7585d45 100644 --- a/README.md +++ b/README.md @@ -18,14 +18,30 @@ MailHog is an email testing tool for developers: * View messages in the web UI, or retrieve them with the JSON API * Optionally release messages to real SMTP servers for delivery -### Getting started +### Installation -1. Either: - * [Download the latest release](/docs/RELEASES.md) of MailHog for your platform - * [Run it from Docker Hub](https://registry.hub.docker.com/u/mailhog/mailhog/) or using the provided [Dockerfile](Dockerfile) - * [Read the deployment guide](/docs/DEPLOY.md) for other deployment options - * Install it with Homebrew on MacOS - `brew update && brew install mailhog` -2. [Configure MailHog](/docs/CONFIG.md), or use the default settings: +#### Manual installation +[Download the latest release for your platform](/docs/RELEASES.md). Then +[read the deployment guide](/docs/DEPLOY.md) for deployment options. + +#### MacOS +``` +brew update && brew install mailhog +``` + +Then, start MailHog by running `mailhog` in the command line. + +#### Debian / Ubuntu +``` +sudo apt-get -y install golang-go +go get github.com/mailhog/MailHog +``` + +Then, start MailHog by running `~/work/bin/MailHog` in the command line. + +### Configuration + +Check out how to [configure MailHog](/docs/CONFIG.md), or use the default settings: * the SMTP server starts on port 1025 * the HTTP server starts on port 8025 * in-memory message storage From ff07258a05dc06384b450552d9984d1a9cf4fdfc Mon Sep 17 00:00:00 2001 From: Victor Bocharsky Date: Mon, 4 May 2020 11:26:31 +0300 Subject: [PATCH 2/3] Tweak path to MailHog for Ubuntu installation --- README.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7585d45..f8feaff 100644 --- a/README.md +++ b/README.md @@ -25,19 +25,25 @@ MailHog is an email testing tool for developers: [read the deployment guide](/docs/DEPLOY.md) for deployment options. #### MacOS -``` -brew update && brew install mailhog +```bash +brew update && brew install Mailhog ``` Then, start MailHog by running `mailhog` in the command line. #### Debian / Ubuntu -``` +```bash sudo apt-get -y install golang-go go get github.com/mailhog/MailHog ``` -Then, start MailHog by running `~/work/bin/MailHog` in the command line. +Then, start MailHog by running `/path/to/MailHog` in the command line. + +E.g. the path to Go's bin files on Ubuntu is `~/go/bin/`, so to start the MailHog run: + +```bash +~/go/bin/MailHog +``` ### Configuration @@ -78,7 +84,7 @@ You can also use `MailHog sendmail ...` instead of the separate mhsendmail binar Alternatively, you can use your native `sendmail` command by providing `-S`, for example: -``` +```bash /usr/sbin/sendmail -S mail:1025 ``` From d70a55757478e0e2c4bdabe3aeb434c603c4d624 Mon Sep 17 00:00:00 2001 From: Victor Bocharsky Date: Mon, 4 May 2020 11:27:55 +0300 Subject: [PATCH 3/3] Revert letter case change - it's lowercased now --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f8feaff..24cd95f 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ MailHog is an email testing tool for developers: #### MacOS ```bash -brew update && brew install Mailhog +brew update && brew install mailhog ``` Then, start MailHog by running `mailhog` in the command line.