Configure Postfix Email Server On VPS is some time very difficult for many of us, Because we are not a person, to work with server side management. But at the same time outgoing and incoming mail server is one of the necessary part of online presence for any blogger. We all know very well that, Email is and will continue to remain one of the most widely used social interaction platforms. This probably explains why Facebook, Twitter and other popular social media platforms still send emails on latest trends, friend requests or other important notifications. it is that most internet users treat emails with more importance than a notification on a website.
How to Configure Postfix Email Server On VPS Hosting Provider
In this tutorial, I will show you how you can quickly Configure Postfix Email Server for your VPS package to send out emails.
Step1: Log into your VPS server and Install postfix
Postfix is an opensource email server which is freely available and easy to install.
<pre>
sudo yum install postfix
</pre>
Step2: Configure postfix Email server
<pre>
sudo vim /etc/postfix/main.cf
#Uncomment the following lines
myhostname = yourhostname.com
myorigin = $myhostname
inet_interfaces = localhost
inet_protocols = ipv4
mydestination = $myhostname, localhost.$mydomain, localhost
mynetworks_style = host
</pre>
Step3: Start your server
<pre>
service postfix start
</pre>
Test email sending from your server
<pre>
echo “test” | mail -s “Test mail “ youremailid@yourserver.com
</pre>
You can also have your server connect to your email service to send emails.
Step1. Open postfix configuration files.
<pre>
vim /etc/postfix/main.cf
#uncomment/add the following lines with your details
relayhost = [smtp.youremailserver.com]
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps=static:your_username:your_password
smtp_sasl_security_options=noanonymous
</pre>
Install the “SASL” Authentication plugin
<pre>
sudo yum install cyrus-sasl-plain
</pre>
Step2. Restart your server
<pre>
service postfix restart
</pre>
And you are done for configure postfix email server! Isn’t it really simple? If this article helped you, or if you’d like us to cover other how-to’s in the coming weeks, feel free to share your thoughts in the comments below.
Know More About Easy Email Hosting Services,
- Private And Secure Encrypted Email Hosting Services Reviews
- Feedburner Email Subscribe to MailChimp Login.
- MailChimp Competitors – Email Service SendinBlue Email Providers.
- GetResponse +5 Best MailChimp Alternatives Email Marketing Software Competitors Review.
- MailChimp Vs GetResponse : Best Mailchimp Alternative.
- Right Directional Guide For Choosing Your Web Hosting Services
- IT Engineering – Iteng.in Web Hosting Company Reviews
One reply on “How to configure Postfix email server on VPS hosting”
This is an excellent article. Although i had some difficulties, i managed to install Mail Server with virtual domains on my Centos 7 server by combining this good tutorial and the one i found from lxer.com