Skip to content
This repository

Running mailcatcher on a linux virtual machine #89

Closed
aminmeyghani opened this Issue April 30, 2013 · 4 comments

2 participants

Amin Meyghani Samuel Cochran
Amin Meyghani

I have installed the Mailcatcher gem (http://mailcatcher.me/) on my VM managed by Vagrant. And in the Vagrantfile I have set up the forwarding port:

config.vm.forward_port 1080, 1080

I ssh to the guest, run the Mailcatcher on the guest, but when I go to: 127.0.0.1:1080 on my host, I don't see the Mailcather interface. All I get is:

No data received.Unable to load the webpage because the server sent no data ...

Any ideas?

Thanks in advance!

Samuel Cochran
Owner
sj26 commented April 30, 2013
Amin Meyghani

Yes, I get the markup of the dashboard when I run curl. Can I use something like that to confirm my local test emails? Just curious :)

About port forwarding: I run my rails app with port forwarding (for example: 3000, 8080) so the forwarding works there. It is kind of strange that Vagrant can't forward mailcatcher on 1080. Maybe I am doing something wrong. I read another article about setting up mailcatcher on a VM, and that article suggested another port, I tried it and still no success :(

All I need to do is to use Mailcatcher to confirm emails in my rails app in development mode.

I would appreciate any help :)

Thanks again!

Samuel Cochran
Owner
sj26 commented April 30, 2013

You could try running mailcatcher using:

$ mailcatcher --ip=0.0.0.0

This means you can access mailcatcher on your VM host using your VM's ip and port 1080, no vagrant forwarding required.

Amin Meyghani

Awesome !!!! Thanks very much! I killed the process, and then I did what you said: (mailcatcher --ip=0.0.0.0) and I accessed it on the host on http://localhost:1080

Thanks again!

Samuel Cochran sj26 closed this April 30, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.