Closed artlife3 closed 7 years ago
# /etc/rc.local
/usr/bin/ruby /usr/bin/mailcatcher --http-ip 192.168.33.10
// php.ini
smtp_port = 1025
sendmail_path = /usr/bin/env /opt/chef/embedded/bin/catchmail
Starting MailCatcher
==> smtp://127.0.0.1:1025
==> http://192.168.2.10:1080
*** MailCatcher runs as a daemon ....
sudo iptables -A INPUT -p tcp -m tcp --dport 1080 -j ACCEPT
sudo service iptables save
iptables: Saving firewall rules to /etc/sysconfig/iptables:[ OK ]
sudo service iptables restart
The problems were not these. It seems that it should have started at 0.0.0.0.
/opt/rbenv/shims/mailcatcher --http-ip 0.0.0.0 --smtp-ip 0.0.0.0 -v -f > /var/log/mailcatcher/mailcatcher.log&
https://mailcatcher.me