1
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CentOS7にMailCatcherインストール

Last updated at Posted at 2016-09-09

CentOS7にMailCatcherインストール

yum install ruby
yum -y install ruby-devel
yum install gcc
yum install gcc-c++
yum install sqlite-devel
gem install mailcatcher
mailcatcher --http-ip IPアドレス
cp /usr/lib/firewalld/services/ssh.xml /etc/firewalld/services/mailcatcher.xml

ファイル編集

vi /etc/firewalld/services/mailcatcher.xml
mailcatcher.xml
<short>mailcatcher</short>
<port protocol="tcp" port="1080"/>
firewall-cmd --reload
firewall-cmd --add-service=mailcatcher
firewall-cmd --permanent --add-service=mailcatcher

テスト

telnet IPアドレス 1025
HELO example.com
MAIL FROM: user@example.com
RCPT TO: test@example.com
DATA
From: user@example.com
Subjet: test
test
.
QUIT

ブラウザから確認
http://IPアドレス:1080

1
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?