How to build WordPress website + SMTP server + third party mail application on the same server?

Hello Now, I’m learning how to build a fully secure server and I succeeded to build my own server and deploy my WordPress now I need to build my own SMTP server and add a third party mail application to the same server, without using Control Panel

Show comments

Submit an answer
Answer a question...

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
March 28, 2022


In addition to what KFSys mentioned already, what I could also suggest is looking into a managed SMTP service like SendGrid. That way you will still be able to send out emails from your server by specifying the SendGrid SMTP server, but you would not have to manage the SMTP service yourself. They also provide a free plan which is sufficient in most cases.

Hope that this helps!



Site Moderator
Site Moderator badge
March 28, 2022

Hi @HappyTech,

So, you’ve said you already have a WordPress website installed and you are using Nginx, that’s cool, good job!

Now, regarding SMTP, I’ll urge you to check the following article:

As a whole, it’s easy to create an SMTP send-only service with Postfix. Having said that, I’ll recommend you to use the third-party mail application for SMTP as well as for receiving mails.

Additionally, third-party mail applications are not hosted on your Droplet. That’s the idea for these mail apps, to not be used on your Droplet so that they are not influenced by your setup.

This comment has been deleted