How to Stop Your Emails Being Marked as Spam

In previous articles, we discussed how you can easily set up your own email server with iRedMail or Modoboa, or you can set up your email server from scratch. However, many folks can’t get their emails into the inbox of Gmail, Hotmail, or Yahoo mail, despite having a 10/10 score on mail-tester.com. In this article, I’m going to show you all the tips I have that can get your email out of the recipients’ spam folder.

Note: This article isn’t for spammers. If you send spam, your email will eventually be placed in the spam folder, no matter how hard you try.

How to Stop Your Emails Being Marked as Spam

6 Types of Email Message

First, you need to understand which type of email you are sending. For the purpose of this article, I will divide email messages into 6 categories:

  • personal email
  • transactional email
  • marketing email/newsletter
  • group discussion email
  • cold email
  • spam

Personal emails are usually sent from a person to his/her friends, family members, co-workers snd so on. There is often only one recipient.

Transactional emails are sent from websites or web applications to their users. For example, a visitor receives an email after creating an account at a website, or request resetting the password. There is only one recipient per email.

Marketing email/newsletter is sent by website owners to their subscribers to inform about new blog post, webinar, or promote products and services. There are many recipients per email. A subscriber can only reply to the list owner, but can not send email to other subscribers.

Group discussion emails are commonly seen in open-source software development. For instance, the Linux kernel mailing list allows its subscribers to discuss Linux kernel development. A subscriber can send an email to all other subscribers in the mailing list.

Cold email and spam are both unsolicited emails. The difference is that cold emails are often targeted at a specific group of people to sell a service and the sender will provide real service if the recipient responds. Spam are sent to random people and they are often scams.

The Big Four Mailbox Providers

Mailbox providers are also known as inbox service providers. Sometimes people call them ISP (Internet Service Provider). Actually, broadband providers and hosting providers can also be called ISP. The most used mailbox providers are:

  • Gmail
  • Yahoo Mail
  • Microsoft Mail (Hotmail, Outlook, Live)
  • AOL Mail

3 Email Deliverability Factors

There are mainly 3 factors mailbox providers look into when they decide if your email is spam or not.

  • Email standard compliance
  • IP address reputation
  • Domain name reputation

I will give you tips for getting out of the spam folder, in accordance with these 3 factors. Note that it takes time to improve your IP reputation and domain reputation, so please be patient.

Tip #1: Set Up Email Authentication and Get 10/10 score

This relates to email standard compliance. You have probably already done this, but for the purpose of being thorough on this subject, I still need to talk about it. Spammers often don’t conform to email standards. Setting Up email authentication (correct PTR, SPF, DKIM, DMARC Records) for your email server and getting a 10/10 score on mail-tester.com will increase the chance of your email landing into inbox.

Tip #2: Use SMTP Relay Service

If your mail server has never sent emails before, then your IP address doesn’t have a reputation (good or bad), and major mailbox providers are more likely to place your email into spam folder. Not being on a blacklist doesn’t mean your IP address carries a good reputation, and if a block of IP address has really bad spammers on it, it can affect other people in the neighborhood of that IP block.

SMTP relay services maintain good IP reputation. They stop the bad senders and grow the good ones, so using SMTP relay service will increase the chance of hitting into the inbox.

Tip #3: Set Up A Website and Create Positive Engagement Signals

Domain name reputation is the ultimate factor that influences mailbox providers’ decision. If your domain name has high reputation among mailbox providers, then your emails will land into the recipient’s inbox, even if you don’t strictly comply with email standards or your IP address is in a bad reputation.

Note: I’m not suggesting you should ignore tip #1 and tip #2.

Gmail postmaster tools shows my domain name has high domain reputation.

gmail postmaster tools domain reputation

If you have a new domain name, or you have never sent emails from your domain name, then big mailbox providers don’t know about you. Your domain name doesn’t have any reputation (good or bad). So how do you go about improving your domain name reputation?

There are mainly two things that are related to your domain name reputation: website quality and email recipient engagement.

Website Quality

First, your website can affect your domain name reputation. The following will reduce your reputation score.

  • There’s no website associated with your domain name.
  • Your website has only a blank page.
  • Your website is used to spreading virus.

And the following items will increase your reputation score.

  • There’s a website associated with your domain name.
  • Your website uses HTTPS.
  • Your website has unique, good quality content.

If you don’t have a website yet, you can set up a WordPress blog by following one of the tutorials below.

Email Recipient Engagement

The other more important thing that can affect your domain reputation is recipients’ engagement with your emails. The more positive engagement, the higher your domain name reputation will be. Positive engagement includes:

  • Opening your email.
  • Clicking links in your email.
  • Replying to your email.
  • Adding your email address to contact list (very positive engagement signal)
  • Moving your email from spam folder into inbox (very positive engagement signal)

Negative engagement includes:

  • Deleting your email without opening it.
  • Clicking the unsubscribe link in your email.
  • Reporting your email as spam (very negative engagement signal )

But you may ask: If my email can’t get into inbox in the first place, how can I create positive engagement? Well, there are different ways for different email senders. I divide email senders into two groups.

  • Those who send transactional emails
  • Those who don’t send transactional emails

If You Send Transactional Email

If you send transactional email, it’s very easy to have positive engagement with the recipient, because the recipient expects you to send email to him/her. On your website, you can tell the recipient to check the spam folder and mark your email as not spam. They are much more likely to open your email and click links in the email. Over time, your email will automatically land into inbox.

Note that mailing list sign-up confirmation email is transactional email, so if you have a newsletter sign-up form on your website, you can also tell the recipient to check spam folder and add your email address to contact list. Recipients are very likely to click the confirmation link in the email.

If You Don’t Send Transactional Email

If you run a self-hosted mail server for personal use only, it’s more difficult for you to create the initial positive engagement, but you can:

  • Use your original email address to send email to your contact list, tell them that you are going to use a new email address and ask them to add it to their contact lists.
  • Create an auto-reply message at your original email address, telling the sender to add your new email address to contact list and send email to the new email address.
  • Ask your family members, friends, co-workers for help. Send fictitious email to them and ask them to move your email from spam folder to inbox. You probably need to send several fictitious emails to each person.

If you send cold email, you need to be extra careful about how you approach your recipients. They didn’t ask for your email and if you send email to them again and again, they are very likely to report your email as spam. Don’t be pushy. If the recipient doesn’t respond after 2 or 3 emails, stop emailing them.

Tip #4: Don’t change your mail server’s hostname or the From: domain name.

If you change just one letter in the subdomain, email filters of mailbox providers will treat you differently and you will lose the domain reputation you have built. Subdomains inherit some of the reputation from your apex domain (a domain that doesn’t contain a subdomain) but not all of it. Each subdomain has its own reputation. Note that each email address from the same domain name also has its own individual reputation.

how to stop my emails being marked as spam gmail

Tips for Newsletter/Marketing Email Senders

Besides the above general tips, here are some specific tips for newsletter/marketing email senders.

  1.  Make sure the recipient gave you permission to send email. Use double opt-in to verify subscriber’s email address. If you don’t, there’s a high chance that you will have email delivery issue.
  2.  If you change your mail server IP address, or you use a new subdomain, you need to warm up your IP address/subdomain. For example, send 100 emails on day 1, then send 500 emails on day 2, send 1000 emails on day 3. Don’t send email to thousands of people immediately.
  3. Send emails that recipients actually want.
  4.  Include your contact information and your mailing address at the bottom of the email message.
  5.  Personalize the email message as much as possible. For example, include the recipient’s first name in the email body and segment your list based on subscriber’s gender, age, interest, country, etc.
  6.  Conform to CAN-SPAM Act
  7.  Avoid large attachments.
  8.  Clean your email list. For example, delete email subscribers that haven’t opened your email in the last 60 days. This is usually called email sunset policy. Unengaged subscribers won’t make you money and they are detrimental to your domain reputation.
  9. Test your email placement with GlockApps before you send.
  10. Be consistent in your sending frequency. If you send emails to your subscribers in the first month, but stops sending emails in the following 6 months, then your subscribers don’t remember you and mailbox providers are likely to put your email into spam folder.
  11. Keep your open rate above 20% and spam rate below 0.8%. You can check spam rate at Gmail Postmaster Tools.
  12. If you send newsletters/marketing emails, then your emails are likely to land in the promotions tab in Gmail. One way to get into the primary tab is by using only plain-text in your email.
  13. Don’t strip the List-Unsubscribe header from your email. The List-Unsubscribe header is required if you send newsletters. It enables the user to easily unsubscribe from your mailing list. When a person wants to unsubscribe, you should not prevent him/her to do so.
  14. Sometimes mailbox providers would temporarily stop accepting your newsletter email. Don’t panic. They just want to find out if you are sending spam, by looking at users’ behavior with your already sent emails. If they decide that your are not a spammer, the rest of your email will be accepted. This delay can be up to 24 hours.
  15. Your emails won’t be placed in all recipients’ inboxes. Some of them will probably be placed at spam folder. It depends on how the specific recipient interacts with your previous emails. So it’s important that you maintain good relationship with every subscriber in the email list.
  16. Be careful with email curse words like weight loss, make money, etc. Generally you should not use them in your email unless you have established a good domain reputation and has good engagement with your recipients before.
  17. Don’t overuse capital letters, bold letters and highlighting in your email. These are common techniques used by spammers to attract recipient’s attention.

Wrapping Up

I hope these tips can help you get out of spam folder. As always, if you found this post useful, then subscribe to our free newsletter to get more tips and tricks. Take care 🙂

Rate this tutorial
[Total: 5 Average: 5]

13 Responses to “How to Stop Your Emails Being Marked as Spam

  • Donatas
    1 year ago

    Thank you.

  • Excellent tutorial really cleared up a lot for me. I am wondering how to handle bounce and inbox full, unopened mail etc, you talked about sunset policy. What would you recommend as a means to monitor that? Cheers

    • Bounced emails will almost always tell you why it’s bounced. And you simply need to follow the instructions.

      If the recipient’s inbox is full or over quota, you can’t do anything about it, unless you have other means to contact the recipient and tell him/her to free up space in the mailbox.

      Sunset policy is very simple. Find subscribers that haven’t opened any emails for 60 days and delete their email addresses from your email list.

      • Thanks for the reply, how would I monitor it any particular software open source. How do I know which emails have bounced or the quota is full, can I check a log somewhere? Or is there an easy way.

    • You can use the pflogsumm tool to automatically analyze and generate a Postfix log summary every day and send it to your email address.

  • Cyberian
    5 months ago

    After following Steps1-6 and getting good score, everything working, is it possible to install Roundcube on top?

  • Cyberian
    2 months ago

    Excellent chapter. Please could you expand on the setting of the “List-unsubscribe” header? Thanks.

  • This series of tutorials helped me out to make a working email server. I should add that if you want even more trust, there is now a thing called BIMI (Brand Indicators for Message Identification), which you configure at your domain dns and, after give the email provider trusts you, can make your logo show up in the email (according to bimigroup dot org, Currently only gmail and yahoo have implemented that).

    Obs: even after getting 10/10 from mail-tester and using a relay service, all e-mails keep landing at spam box.

  • Delvian
    2 weeks ago

    Hi Xiao,

    Thanks for this awesome tutorial.

    I’m using SendGrid as a relay because Mailjet rejected my application without explanation and Google Cloud Platform recommends SendGrid. I skipped steps 4 and 5 because I thought SendGrid does that on their end. I was getting 10/10 on mail-tester.com but my mail wasn’t being delivered. Then I came back and did steps 4 and 5, now I get 4/10 on mail-tester.com and it says that the SendGrid IP address is a spammer. Is this a SendGrid issue?

    Regards,

    • Delvian
      2 weeks ago

      I received confirmation from SendGrid that the problem is on their side because I’m sharing an IP address with hundreds of other users. Their best solution is to upgrade to a more expensive plan with a dedicated IP address.

Leave a Comment

  • Comments with links are moderated by admin before published.
  • Your email address will not be published.
  • Use <pre> ... </pre> HTML tag to quote the output from your terminal/console.
  • Please use the community (https://community.linuxbabe.com) for questions unrelated to this article.
  • I don't have time to answer every question. Making a donation would incentivize me to spend more time answering questions.


The maximum upload file size: 2 MB.
You can upload: image.