Send mail through the terminal in OSX

Cd to /etc/postfix

open the file main.cf for editing

and add the following to the end of the file

In the same directory, create the file sasl_passwd […]