How to send mail with Mamp WordPress on a Mac

First off a big thank you to Matt Messmer for the fix.

Open your mail log

open /var/log/mail.log

Open the file /etc/postfix/ in any text editor.

Add this to

myorigin =
myhostname =
relayhost = []:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_sasl_mechanism_filter = plain
inet_protocols = ipv4
smtp_use_tls = yes

I had to comment these out for mine to work

#mydomain_fallback =
#sender_canonical_maps = regexp:/etc/postfix/sender_canonical
#recipient_canonical_maps = regexp:/etc/postfix/recipient_canonical

Open /private/etc/postfix/

Uncomment this line (remove the #)

tlsmgr  unix -       -       n       -       1       tlsmgr

Create sasl_passwd

sudo nano /etc/postfix/sasl_passwd

add this line to it


CMD-X to close

Y to save

NOTE: Change username and password to your google username and password

Run the following commands in terminal, one by one

sudo chmod 600 /etc/postfix/sasl_passwd
sudo postmap /etc/postfix/sasl_passwd
sudo launchctl stop org.postfix.master
sudo launchctl start org.postfix.master
sudo postfix upgrade-configuration

sudo postfix reload
sudo postfix flush


date | mail -s test


Pay close attention to mail.log along the way, note the errors and fix them.