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.
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
Secure and private email. We believe privacy is a fundamental human right. That's why at Spark, we don’t sell or unlawfully share your personal data with third parties. Spark is free for individual users, yet it makes money by offering Premium plans for teams. Spark is fully GDPR compliant, and to make everything as safe as possible, we. BlueMail by Blix a free, beautifully designed, universal email app, capable of managing an unlimited number of mail accounts from various providers, allowing for smart push notifications and group emailing while enabling personalization across multiple email accounts. The BlueMail app connects directly to your mail server and is the perfect. Use Server Settings preferences in Mail to change options for an account’s incoming and outgoing (SMTP) mail servers. To change these preferences in the Mail app on your Mac, choose Mail Preferences, click Accounts, then click Server Settings. Open Mail for me. Note: The settings you see vary depending on your account type.
- 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:
Make sure if these lines below are exist
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.
and add this line
Then run command below to create the hash db file for Postfix.
Free Mail Server Hosting
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
Apple Server
Testing
Here is the command you need to execute to test postfix.
If success, you will receive email in your inbox.
If you want to see mail queues, execute this command
If you want to see mail log, execute this command
Conclusion
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.
Xeams (eXtended Email And Messaging Server), a free e-mail server that allows you setup own email server hosting services to send and receive emails. This free e-mail software able to handle handle unlimited number of emails and supports POP3, SMTP, IMAP & works in all major operating systems (Windows, Linux, Solaris, MacOSX). Plus more, email users can use any email client, such as Xeams web client, MS Outlook, Thunderbird or any other client that supports POP3 or IMAP protocols to fetch new emails.
Meanwhile, this free e-mail server software comes with aspam engine filtering, which can stop most of spam mail by default & lets you to customize the rules further. Every in-bound email is checked by Xeams before it is forwarding the message to the actual email server. Similarly, every outbound message is checked before delivering it to its final destination. Plus more, Xeams allows you to enforce your company policies. Alert emails are sent to managers whenever a policy violation occurs.
Hybrid Mode is available on Xeams, which can work as a mail server & block spams together on your e-mail infrastructure. All email server configuration can be done from a web based interface, which also helps you to live-monitor the email system. Plus more, it also has detailed logging, mailing lists, customized footers & much more.