In this post, I would like to share how to install mail server on Mac OSX. Having mail server is important if you need to send email from your web application in local environment. To do this, we will use Postfix.
Spam Free Email. Free Email Account; A Spam Filter that works. An email manager that blocks SPAM from your Inbox stops 99.999% of spam and viruses at the server; Protect yourself from annoying SPAM; Protect your computer from viruses, Trojans, and more - and sophisticated anti-spam protection, including whitelist, blacklist, and keyphrase options. This review came about because I, like lots of other Mac users unloaded Mail when I set up my Mac, thought it did a great job, sat back.And started to lose mail.Not lots of it, I didn't even know I was losing any until I lost a big piece of business because I failed to respond to an email in time.
Postfix is a Mail Transport Agent (MTA), supporting LDAP, SMTP AUTH (SASL) and TLS. In this post, We will setup Postfix to run with SMTP.
Setup
- Mac OSX (I'm using OSX Yosemite 10.10.3).
- Terminal
Postfix Installation
No need it because Postfix already exist as pre-installed on Mac OSX. Open your terminal, make sure you can see response if you type below:
Great, then we are going to configure it to be able for sending email.
Postfix Configuration
We are going to change postfix configuration file. Run this command below:
Apache Mail Server
Make sure if these lines below are exist
Python monkey patch static method. Then, add these lines at the end of file
From codes above, you can see that we use Gmail SMTP for our postfix. Next step is add our gmail's username and password.
Email Servers Mac
and add this line
Then run command below to create the hash db file for Postfix.
Configure the postfix daemon
Add these lines before </dict>
Start the postfix service
* Note that if you make changes in postfix configuration file (/etc/postfix/main.cf
), you have to run command
Testing
Here is the command you need to execute to test postfix.
If success, you will receive email in your inbox.
Download files fifa 3dm.exe. If you want to see mail queues, execute this command
If you want to see mail log, execute this command
Conclusion
Free Macos Mail Server
Setting up mail server on Mac OSX can be done using pre-installed Postfix. Having mail server in local environment will give you advantage for your web application that have sending email feature.
macOS Server brings even more power to your business, home office, or school. Designed to work with macOS and iOS, macOS Server makes it easy to configure Mac and iOS devices. It’s also remarkably simple to install, set up, and manage. Add macOS Server to your Mac from the Mac App Store for just $19.99.
Your command center.
macOS Server lets you set up and manage multiple Mac computers and iOS devices, right from your Mac. And it’s so simple to use, you don’t need an IT department.
macOS Server resources.
Everything you want to know about macOS Server, including training, services, and documentation.