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?

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.

Submit an Answer
1 answer


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


Let me know if you have any questions!

by Mitchell Anicas
One way to send and receive email through your own custom domain is to use a third-party mail service, such as the mail service included with Google Apps (Gmail) or Zoho. The main benefit of using a third-party mail service, as opposed to managing your own mail server, is that you can avoid performing the ongoing maintenance that running a mail server entails. This tutorial will show you how to set up Gmail with your own domain that is managed by DigitalOcean's Domain Name Servers.