Tim Dysinger

Life & Tech on Kauai

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 code that sends email. You can send to any made up name like herp@localhost or derp@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

You should have some mail delivery @ your me@myemail.net address.