ReachFive / fake-smtp-server

Fake SMTP Server for email testing
https://www.npmjs.com/package/fake-smtp-server
MIT License
194 stars 78 forks source link

Http server does not respond #33

Closed realtebo closed 4 years ago

realtebo commented 4 years ago

I'm strarting your excellent tool using no particular options

$ fake-smtp-server
INFO: SMTP server listening on 0.0.0.0:1025
INFO: HTTP server listening on http://0.0.0.0:1080

I am doing this on a Debian 10 virtual machine.

I am actually able to send email using this fake smtp server from outside the VM.

Great !

But ... I cannot open web gui and I have no idea why.

I already checked that port 1080 is not blocked.

~$ sudo ufw status numbered | grep 1080
[18] 1080                       ALLOW IN    Anywhere
[33] 1080 (v6)                  ALLOW IN    Anywhere (v6)

I laso tried to access web gui using vm local ip, and also tried starting fake-smtp-server using the local ip of the machine as http-ip, but nothing changes, http server doesn't reply.

$ fake-smtp-server --http-ip 192.168.229.128
INFO: SMTP server listening on 0.0.0.0:1025
INFO: HTTP server listening on http://192.168.229.128:1080

From inside VM, using the ip is reachable

$ curl 192.168.229.128:1080
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000000"><title>Fake SMTP Server</title><link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous"></head><body><div id="root"></div><script type="text/javascript" src="./static/js/main.673a0db7.js"></script></body></html>

From outside opening chrome at "http://192.168.229.128:1080/" give no reply

Could you suggest me what can I check to diagnose?

realtebo commented 4 years ago

Sorry, I fixed using

sudo ufw reload

So, no issue.

Thank again for this software