sj26 / mailcatcher

Catches mail and serves it through a dream.
http://mailcatcher.me
MIT License
6.3k stars 575 forks source link

Can you only open the webinterface from the local machine? ERR_CONNECTION_REFUSED #419

Closed Eddcapone closed 4 years ago

Eddcapone commented 4 years ago

I installed and started mailcatcher on a Ubuntu 19.10 system to which I always connect remotely from my home via SSH.

I tried to open the webinterface from home with http://SERVER_IP:1080, but I get "ERR_CONNECTION_REFUSED" even after allowing the port in the firewall with ufw allow 1080

Does it only work localy?

sj26 commented 4 years ago

MailCatcher listens on the localhost address (127.0.0.1) so that only the host that MailCatcher is running on can talk to MailCatcher by default for security. If you want to open it up, checkout mailcatcher --help for options. You probably want mailcatcher --ip 0.0.0.0 (listen on all interfaces). But keep in mind this means anyone can access MailCatcher if they can access the host it's running on. Use firewalls, etc.