All things iOS & Swift

Postfix Configuration using Mac OS X

What is postfix? Postfix is a native mail transfer agent for sending emails, it is natively installed in OS X, all I’m going to show is how to configure it.

Open your terminal and log in as a root user.

Screen Shot 2017-09-05 at 4.04.59 PM

Next, enter this line, “vi /etc/postfix/” without the quotes,  add this line

Screen Shot 2017-09-05 at 4.12.03 PM

save the file, google “how to use vi” if you aren’t familiar with it.

We need to create one more file, /etc/postfix/sasl_passwd, this cmd will do.

#vi /etc/postfix/sasl_passwd

Inside sasl_passwd, store your email and password.

Screen Shot 2017-09-05 at 4.17.45 PM

When you’re done, start postfix by running this command “postfix start”, run “postfix reload” after, refer to this image.

Screen Shot 2017-09-05 at 4.20.24 PM.png

While starting or done starting Postfix mail system, enable “Allow less secure apps”, go here to do that.

Let’s try and see if everything is going in order, run the command you see below.

Screen Shot 2017-09-05 at 4.23.44 PM.png

Go to your inbox and you should see something like this.

Screen Shot 2017-09-05 at 4.25.10 PM

This is a good use for testing your php mailing classes, rather than purchasing a webhost and try from there.


Leave A Comment

Your email address will not be published.