Join my YouTube channel and get free books.
Thanks for coming here, I hope you are enjoying learning here, I have also written some books in case you want to learn a bit more :)
If you need my help with Drupal, Linux, Jira, Scripting, Automation or want to contact me then raise a ticket for me please :) and I will get back to you, promise. At Sparxsys we provide Atlassian consultancy services, reach out to me at ravi at sparxsys dot com

Make sure your email is not going to spam

I use Google Suite or whatever it is called these days (Google Enterprise or Google Workspace?) for my company's email. Although I would love to setup my own mail server but setting up an email server is a pain and too much hassle. May be in future. I have this Google Suite legacy free 10 user account so I don't pay for it, too be honest Google mail or Gmail is actually quite good. To create an account for someone is simple and they are up and running in minutes. I am sure in 2022 there is an Open Source email solution with these features, I need to explore. Getting back to the point.

Why am I worrying about my email going to spam?

I moved my sites from webfaction and dreamhost to my own VPS. So I don't use these shared hosting providers anything. I was very happy with their services and for my needs I was happy with a vpsdime, the plan that I have is cheap and good. I pay $7 for 6 GB RAM which is absolutely amazing. I run all my RAM hungry Drupal sites on this server. So long story short, I moved to vpsdime but I forgot to do one thing.

There is something called as SPF and DMARC that needs to be setup in your domain DNS settings. This will ensure that your mail is not treated as spam.

Now if you are new to all this then don't worry, I found a site called, it will give you an email address where you can send a test email.

Mail tester email

After sending the email to this test address, press "Then check your score" button.

Mail tester progress

Finally you will get some score with some suggestions.

Mail tester score

For me there were 2 suggestions.

Create an SPF record, which is nothing but a TXT record.

Name: @

Value: "v=spf1 a mx ~all"

Create DMARC record, again a TXT record.

Name: _dmarc

Value: "v=DMARC1; p=reject;"

Setup DKIM

Follow the instructions here.

And that is it. I hope you enjoyed reading this post.



11/01/2022: There is another good service which I tried and it will also produce a similar report. I got the followiing email from the developer for this tool.

Like the original, it uses well-known spam filters and blacklists to check the spam score of a mail. But in addition, it also checks whether Gmail classifies the email as spam and into which inbox the mail is placed. Since Gmail is the world's most used email provider, a positive assessment is critical for deliverability. In the last step, the tool also checks the correct configuration of the SPF and DKIM records.

I think it is good to list similar services here, it will help many people.


Similar posts

Ravi Sagar Newsletter

Honestly I hardly send out mails but I guess there is no harm in at least having a newsletter. I will only send newsletter when I have something important to share or an update. People are busy and no one has time to read emails these days. If you really like my content then I guess you will remember my site and come back for more.

Want to contact me?