$ wget https://github.com/mailhog/MailHog/releases/download/v0.2.1/MailHog_linux_amd64 $ chmod +x MailHog_linux_amd64 $ ./MailHog_linux_amd64 デフォルトの挙動ではメールはメモリ上に保存されるので、プロセスを停止させると受信したメールは消えます。 その場合はsliceでデータを保持しているので、大量にメールを送る試験をする場合はあまりメモリ効率が良くないかもしれないので注意が必要です。 SMTPは1025ポートで待ち受けています。 基本的な使い方 ブラウザに http://localhost:8025/ にアクセスするとWeb UIが表示され基本的にはそこで操作します。 下図はメールを2件受信している場合の例です。 https://github.com