Report this

What is the reason for this report?

How to configure emails on a WordPress (Ubuntu 18.04) droplet?

Posted on December 4, 2019

I’m trying to get emails accounts setup on my droplet. I am using Woocommerce (plugin) on my Wordpress site to sell products. I created a Wordpress droplet so it automatically setup Postfix for me. I tried setting up emails from the tutorials here but when I opened postfix’s config files, I saw that Wordpress had already configured it and I don’t want to mess with that because my store sends email through Wordpress.

Here’s what I have done so far:

I'm using DigitalOcean's DNS Management, I have set:
A record for example.com set to SERVER IP.
A record for www.example.com set to SERVER IP.
A record for mail.example.com set to SERVER IP.
MX record for example.com set to mail.example.com.

I’m trying to create an email address: support@example.com to use as customer support for my store through gmail. As I am not using Google Suite, I went into my other Google Account and tried to add an email address, on the SMTP field, I entered mail.example.com, then it asked me for email and a password, I am not able to find where I should configure these, or if I’m doing the whole thing right.

Can anyone here guide me to the right path?



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!

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.

Hello,

I would recommend following the steps from this tutorial on how to setup Gmail with your domain on DigitalOcean:

https://www.digitalocean.com/community/tutorials/how-to-set-up-gmail-with-your-domain-on-digitalocean

Let me know if you have any questions! Regards, Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.