loading...

Discussion on: Gmail configuration with mail server

Collapse
eruizdechavez profile image
Erick Ruiz de Chavez

I am confused about all the setup steps described above. My 2¢ are these:

  • First, you need to configure your domain correctly. This can be done in one of 2 places, the website where you purchased your domain, OR the website where your domain is hosted. To figure this out you need to go to the website where you purchased your domain and find out where is the "Manage DNS" part, most times you will either see the list of records there or some text saying the domain is pointing somewhere else.
  • Once you figure out where your DNS records are configured, you go to that place and add the required configuration as described in GSuite (Since you mention Gmail, I am assuming you are using Google for Businesses or GSuite).
  • To correctly configure your email service, you will need more than just MX records, you will also require some TXT records for spam protection, without this most of the email your users send will end up flagged as SPAM.
  • After the DNS records are properly configured, then you will only need to add users on GSuite, because that will be the service receiving your email.

The setup varies a lot based on what services you have, but in the end it all ends up with 2 or 3 services, your Domain provider, your Hosting provider, and your Email provider. As an example, here is how I usually configure my domains:

  • I purchase a new domain on NameCheap.
  • Right after purchasing it I go to CloudFlare and setup a new free site for it and change the NS records in my NameCheap dashboard to point to the NS servers provided by CloudFlare.
  • Once the domain is ready, inside CloudFlare I add the required DNS records based on what I need to do, at the very least I usually have an A record and some CNAME records that points to my VPS in DreamHost; if I have to setup a third party email then I follow the instructions on what records I need to add, usually 2 MX records, and at least 2 TXT records (SPF and DKIM).

As you can see in my example, there are many moving pieces, but all ends up in the same way I told you above:

  • My Domain provider: NameCheap
  • My Hosting provider: DreamHost
  • My Email provider: Varies (usually Fastmail, sometimes Zoho mail, or Mailchimp)
  • And, as an extra bonus, my CDN and DNS records provider, CloudFlare, but you do not really need this one.
Collapse
ssupdoc profile image
Sriram Jayarman Author

Thanks for your answer. Based on your answer and some additional troubleshooting this is what I ended up doing. Open Host handles my DNS settings. I added MX records from Gmail and removed already existing MX records of older email provider. Additional, I had to move name space to Open Host for these changes to take effect. Post this, I was able to get Emails to and from configured GSuite Emails. I did not add any new TXT records as Gmail did not suggest to add any.

Collapse
eruizdechavez profile image
Erick Ruiz de Chavez

I am glad you solved your problem!

Just as small advice, double check your GSuite documentation as most email providers require you to add some TXT records to avoid your emails being flagged as SPAM. It might not be in the initial setup but I am 99% sure they will be somewhere in your settings.

Thread Thread
ssupdoc profile image
Sriram Jayarman Author

Took your word on it. I digged into GSuite to find correct entries for SPF and DKIM. Thanks a lot!