Where to set up MX and SPF records on sendMail or google apps mail server

g-suitemx-recordsendmailspf

Here is my senario:

  1. I have domain say myDomain.com is using google app mail server to send and receive emails
  2. I have a sendMail server deployed on my a cloudServer that I am using to send email campaigns & news letters to my clients ( with from address in head is: info@myDomain.com)

  3. Now when I observe email headers of mails that I sent from my sendMail server I notice

Received-SPF: none

Some of my customers reported that campaign emails are going into spam, when I investigated the problem I found that it can be because of "Received-SPF" is missing.

My question is Where should I setup (in cloudServer DNS OR google app mail DNS) MX, NS, CNAME records or or any other setting that will allow sendMail server to send email that has low risk of being marked as spam.

Best Answer

First off, make sure to implement SPF-records in your dns. Your SPF-record should be something like this:

v=spf1 mx ip4:a.b.c.d include:aspmx.googlemail.com ~all

Where a.b.c.d is the IP of your sendmail-server.

To have even less chance of being marked as spam, make SendMail use the Google servers to send your email. You will need to add some AuthInfo-lines to client-info.

More info can be found here: Link.