MailCatcher Suddenly Not Working In Vagrant

Mailcatcher fails enough for me to be a pain, but not frequently enough to remember what the fix is. It is enough to bring the development process to a screeching halt until I google the correct search string to bring me the results I am looking for. Which bring me to this post, a simple little fix here so I can find it right away and not have my day turned upside down.

Simply ssh into Vagrant

$ vagrant ssh

Get the process ID

$ ps ax | grep mailcatcher

Kill the process

$ sudo kill -9 (Process id)

Reset ip address

$ mailcatcher --ip=0.0.0.0

You should now be able to access MailCatcher via http://127.0.0.1:1080. You may have to “vagrant halt” and “vagrant up” for SMTP to work.