Jun
4th
Mon
4th
Mac OS X Postfix SMTP Mail Server Configuration
I configured my macbook to accept all local mail and then forward it to my personal email account. This is super useful for testing your local Ruby on Rails ActionMailer. You can send to any made up name @localhost or @my.machine.name and it will end up in your mail box. Here's the configuration changes I made. Add the following to the bottom of your /etc/postfix/main.cf :luser_relay = me@myemail.net
local_recipient_maps =
Reload postfix & test :
sudo postfix reload ; date mail -s test lolkatz@localhost
Then in your rails app set the following in your config/environments/development.rb:
config.action_mailer.delivery_method = :sendmail