• Compute
    Compute

    Configure a popular Linux OS or use popular developer Tools

  • Cloud hosting
    Cloud hosting

    Host a VPS in the Cloud in seconds

  • Collaborate, CMS, CRM`s
    Collaborate, CMS, CRM`s

    Collaborate with these popular CMS, CRM & collaboration tools

  • Database & E-Commerce
    Database & E-Commerce

    Create a database or an E-Commerce environment in seconds

How to use Postfix to send Emails in WordPress

Modified on Wed, Jan 22, 2020 at 2:10 AM

Wordpress is widely used and accounts for 35.6% of all websites according to W3Techs. It's no surprise either as it has a robust catalog of plugins, themes, and a huge community. In this How-To, we're going to go over installing Postfix and configuring it to be a send-only service for your WordPress install. 


Please note, this guide assumes that you already have a working WordPress instance installed. If you haven't done this already, check out SkySilk's guide to installing Wordpress over at https://help.skysilk.com/support/solutions/articles/9000173246-how-to-install-wordpress-with-lamp-on-ubuntu 


Further, this guide also assumes that you've already set an MX record for your domain pointing to your SkySilk IP address. You can use the following guide as a starting point https://help.skysilk.com/support/solutions/articles/9000140012-how-to-point-a-domain-name-to-a-linux-vps-using-skysilk 


---------------------------------------------------------------------------------------------------------------------------


The first thing we should do is update our system. This can be done by using

sudo apt-get update && apt-get upgrade

This will take some time to complete, so why not grab some coffee while you wait?


Once that completes, we're going to install Postfix which can be done with 

sudo apt install postfix

The result will usually be one of two things. It will locate the package and ask you if you'd like to install it, or it will tell you that postfix is already at the newest version like the image below. 


If Postfix begins installing, it will lead you to a configuration window. If you already have it installed, you can open this window by using  

sudo dpkg-reconfigure postfix


We're going to pick Internet Site and press enter. 



For the System Mail Name, we're going to use our website's domain ( yourdomain.com ).



Leave the Postmaster section blank and press Enter. If the 'Other destinations to accept mail for (blank for none):' is already populated, go ahead and empty that field and leave it blank. We're not going to be receiving mail with this setup, we're only going to be sending.



The rest of the configuration can be left as it's default option from here. If you have specific needs, you can configure them at this time.


For more information about the next steps, please refer to the official Postfix documentation at http://www.postfix.org/documentation.html 


The next step will be updating the Postfix configuration file with this information: 

mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = loopback-only

That's it! We're done. The last thing to do will be restarting Postfix to ensure the changes take.

sudo systemctl restart postfix

Test it out with a demo post and comment.



Join our Private Discord Chat to chat with, as well as find community assistance from other Verified SkySilk Users: https://invite.gg/SkySilk  


CLICK TO DEPLOY A HOSTED WORDPRESS SERVER

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article