Question

Enable subdomain with existing Gmail email server

Hi All, I am new to the deployment process. I have a production site (which was created by previous developer), We are having some improvements to our application and planning on creating stage site. So far I have created new droplet and pushed the code in to it. And then created a A record with name stage to the existing domain name. I wanted to know is this the correct process to do. If not please guide me to a proper solution.

Now I am facing issue with my mail server. I am using gmail as my mail server. I have added my stage address to the gmail domain list and verified the domain with mx record. So for good, I am not sure what to do next. Please guide me.

Thanks, Balaji Nagamuthu


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.

alexdo
Site Moderator
Site Moderator badge
February 9, 2022

Hello there,

Everything seems correct so far, another option will be to create the subdomain on the same droplet as the main site and just use a Vhost to host the staging site during its development.

However, keeping the staging site on a separate droplet is still a very good approach.

For the mail side of things, you can test the mail delivery and check if your emails are both delivered/received okay. You can also look into using a third-party mail service provider like Sendgrid.

You can also check these articles:

https://www.digitalocean.com/community/tutorials/how-to-use-google-s-smtp-server

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

https://www.digitalocean.com/community/tutorials/why-you-may-not-want-to-run-your-own-mail-server

Hope that this helps! Regards, Alex