Skip to content

Instantly share code, notes, and snippets.

@Tom-Alexander
Created November 12, 2015 21:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tom-Alexander/8f8869729fd4245c33f9 to your computer and use it in GitHub Desktop.
Save Tom-Alexander/8f8869729fd4245c33f9 to your computer and use it in GitHub Desktop.
Mailcatcher config
  1. gem install mailcatcher
  2. mailcatcher
  3. brew services restart php54
  4. nginx -s reload
  5. Go to http://mail.dev/
server {
listen 8080;
server_name mail.dev "~mail\.(.*)\.xip\.io$";
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_pass http://127.0.0.1:1080;
}
}
sendmail_path = /usr/bin/env /usr/bin/catchmail -f test@local.dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment