{"id":3827,"date":"2023-06-15T18:38:14","date_gmt":"2023-06-15T16:38:14","guid":{"rendered":"https:\/\/contabo.com\/blog\/?p=3827"},"modified":"2023-06-21T12:30:12","modified_gmt":"2023-06-21T10:30:12","slug":"how-to-prevent-emails-from-getting-marked-as-spam","status":"publish","type":"post","link":"https:\/\/contabo.com\/blog\/how-to-prevent-emails-from-getting-marked-as-spam\/","title":{"rendered":"How can I Prevent my E-Mails from Getting Marked as Spam?\u00a0"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"630\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2016\/05\/blog-head_how2-prevent-emails-from-getting-marked-as-spam.jpg\" alt=\"How can I Prevent my E-Mails from Getting Marked as Spam?  (head image)\" class=\"wp-image-17092\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2016\/05\/blog-head_how2-prevent-emails-from-getting-marked-as-spam.jpg 1200w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2016\/05\/blog-head_how2-prevent-emails-from-getting-marked-as-spam-600x315.jpg 600w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2016\/05\/blog-head_how2-prevent-emails-from-getting-marked-as-spam-768x403.jpg 768w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Whether it&#8217;s for personal or professional purposes, the ability to send and receive emails efficiently is crucial. However, an unfortunate reality of the email landscape is the presence of spam. This creates the need for spam filters that are not perfect and often mark legitimate emails as spam, causing them to go unnoticed in crowded inboxes or even be filtered out entirely. If you find yourself wondering why your important emails are consistently ending up in spam folders, fear not! This article aims to shed light on this common issue and provide practical tips and strategies to help you prevent your emails from being flagged as spam.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-setting-up-a-ptr-record\">Setting up a PTR Record<\/h2>\n\n\n\n<p>A PTR record (short for \u201cpointer\u201d), also known as \u201creverse DNS record\u201d is basically the counterpart to the A record in a DNS zone.&nbsp;<\/p>\n\n\n\n<p>A normal A record connects an IP address with a Domain name:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Your.domain.com -&gt; 1.2.3.4<\/code><\/pre>\n\n\n\n<p>A PTR record is the counterpart to this, so it connects a domain name with an IP address:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>1.2.3.4 -&gt; your.domain.com&nbsp;<\/code><\/pre>\n\n\n\n<p>Setting up a PTR record is the first step to prevent your emails from getting marked as spam.&nbsp;<\/p>\n\n\n\n<p>Setting up such a record is usually done at your server provider because it\u2019s bound to the IP address of the server.&nbsp;<\/p>\n\n\n\n<p>To do so, just login into your providers admin dashboard, look out for \u201cDNS management\u201d or \u201cPTR records\u201d and create one as shown.&nbsp;<\/p>\n\n\n\n<p>If you are a Contabo Customer a PTR record can be easily created in the <a href=\"https:\/\/my.contabo.com\" target=\"_blank\" rel=\"noreferrer noopener\">Customer Control Panel<\/a> (CCP) under \u201cControl Panel\u201d -&gt; \u201cReverse DNS Management\u201d and then clicking on the notepad icon next to the IP address, you want to create a PTR record for.&nbsp;<\/p>\n\n\n\n<p>Please note, that you have to change the PTR of the IPv6 address too, if you are using IPv6 additional to IPv4. It will not be harmful to do it anyway, if you are not sure.&nbsp;<\/p>\n\n\n\n<p>This can also be done at your provider&#8217;s website or for Contabo Customers in the CCP when clicking on \u201cAdd PTR-Record for an IPv6 address\u201d.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-creating-a-spf-record\">Creating a SPF Record<\/h2>\n\n\n\n<p>SPF stands for \u201cSender Policy Framework\u201d and allows the server to determine that it is only allowed to send emails from specific IP addresses. Many e-mail servers consider e-mails from domains without SPF record as spam.&nbsp; Unlike PTR records, SPF records need to be set up at your domain registrar&#8217;s admin dashboard or your DNS provider (e.g. <a href=\"https:\/\/contabo.com\/blog\/how-to-configure-cloudflare\/\" target=\"_blank\" rel=\"noreferrer noopener\">Cloudflare<\/a>) or for Contabo Customers in the CCP under \u201cDNS Zone Management\u201d.&nbsp;<\/p>\n\n\n\n<p>Here is an example for an SPF record:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>86400 in TXT \u201cv=spf1 +a +mx ~all\u201d&nbsp;<\/code><\/pre>\n\n\n\n<p>This will allow the IP named in the A record and the mail server named in the MX record to send emails.&nbsp;<\/p>\n\n\n\n<p>If you use one of our webspace packages, please use the following one:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>86400 in TXT \u201cv=spf1 +a +mx +include:mail-relay.contabo.net ~all\u201d&nbsp;<\/code><\/pre>\n\n\n\n<p>If you have a specific configuration, we can recommend <a href=\"https:\/\/www.spfwizard.net\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">SPF-Wizard<\/a> to create the right SPF record for you based on your configuration.\u00a0<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-dkim-and-dmarc-records\">DKIM and DMARC Records<\/h2>\n\n\n\n<p><a href=\"http:\/\/www.opendkim.org\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">DKIM<\/a> (DomainKeys Identified Mail) is a mechanism that generates digital signatures for outgoing emails. These signatures allow the recipient to verify the email&#8217;s authenticity and ensure it hasn&#8217;t been tampered with. DMARC (Domain-based Message Authentication, Reporting and Conformance), on the other hand, combines DKIM and SPF, providing clear instructions for handling emails that do not conform to authentication policies. Implementing DKIM and DMARC significantly reduces the chances of your emails being mistakenly flagged as spam.&nbsp;<\/p>\n\n\n\n<p>You wouldn\u2019t be surprised if I told you that these two records again can be set up in your registrar\u2019s admin dashboard or at the Contabo CCP.&nbsp;<\/p>\n\n\n\n<p>Additionally, the DKIM-Key can be generated within the mail server software itself when providing the domain name. One popular self-hosted mail server is Mailcow Dockerized. Click <a href=\"https:\/\/docs.mailcow.email\/prerequisite\/prerequisite-dns\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">here<\/a> if you want to learn more about creating a DKIM-Key inside the mail server software itself.&nbsp;<\/p>\n\n\n\n<p>Here is an example for a DKIM record:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dkim._domainkey&nbsp;&nbsp;&nbsp;&nbsp; IN TXT&nbsp;&nbsp;&nbsp;&nbsp; \"v=DKIM1; k=rsa; t=s; s=email; p=...\"&nbsp;<\/code><\/pre>\n\n\n\n<p>Here is an example for a DMARC record:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>_dmarc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IN TXT&nbsp;&nbsp;&nbsp;&nbsp; \"v=DMARC1; p=reject; <a href=\"mailto:rua=mailto:admin@example.com\" target=\"_blank\" rel=\"noreferrer noopener\">rua=mailto:admin@example.com<\/a>\"&nbsp;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-avoid-spamming\">Avoid Spamming<\/h2>\n\n\n\n<p>The last, but most obvious measure to prevent your emails from getting marked as spam is avoid spamming. Spamming refers to the indiscriminate sending of unsolicited bulk emails. To steer clear of this, focus on building a permission-based email list by obtaining explicit consent from recipients. Provide valuable and relevant content that aligns with their interests and maintain a reasonable sending frequency. Be transparent with subject lines, avoiding misleading or deceptive tactics. If you are sending a newsletter always include clear unsubscribe options, promptly honoring recipient preferences. By respecting recipients&#8217; consent, delivering valuable content, and maintaining ethical email practices, you can minimize the chances of your emails being marked as spam.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-testing-your-configuration\">Testing your Configuration<\/h2>\n\n\n\n<p>Here are a few tools you could use to test the DNS Setup (including SMTP Banner, DKIM, DMARC etc.):&nbsp;<\/p>\n\n\n\n<p><a href=\"https:\/\/mxtoolbox.com\/SuperTool.aspx\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">MX Toolbox<\/a> (DNS, SMTP, RBL)&nbsp;<\/p>\n\n\n\n<p><a href=\"https:\/\/www.port25.com\/dkim-wizard\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">port25.com<\/a> (DKIM, SPF)&nbsp;<\/p>\n\n\n\n<p><a href=\"https:\/\/www.mail-tester.com\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Mail-tester<\/a> (DKIM, DMARC, SPF)&nbsp;<\/p>\n\n\n\n<p><a href=\"https:\/\/www.dmarcanalyzer.com\/spf\/checker\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">DMARC Analyzer<\/a> (DMARC, SPF)&nbsp;<\/p>\n\n\n\n<p><a href=\"http:\/\/multirbl.valli.org\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">MultiRBL.valli.org<\/a> (DNSBL, RBL, FCrDNS)&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You have your own Email server but your emails are getting marked as spam? Fear not! With this article we got you covered to avoid this!<\/p>\n","protected":false},"author":50,"featured_media":17092,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[18],"tags":[916],"ppma_author":[1491],"class_list":["post-3827","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-webhosting"],"uagb_featured_image_src":{"full":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2016\/05\/blog-head_how2-prevent-emails-from-getting-marked-as-spam.jpg",1200,630,false],"thumbnail":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2016\/05\/blog-head_how2-prevent-emails-from-getting-marked-as-spam-150x150.jpg",150,150,true],"medium":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2016\/05\/blog-head_how2-prevent-emails-from-getting-marked-as-spam-600x315.jpg",600,315,true],"medium_large":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2016\/05\/blog-head_how2-prevent-emails-from-getting-marked-as-spam-768x403.jpg",768,403,true],"large":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2016\/05\/blog-head_how2-prevent-emails-from-getting-marked-as-spam.jpg",1200,630,false],"1536x1536":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2016\/05\/blog-head_how2-prevent-emails-from-getting-marked-as-spam.jpg",1200,630,false],"2048x2048":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2016\/05\/blog-head_how2-prevent-emails-from-getting-marked-as-spam.jpg",1200,630,false]},"uagb_author_info":{"display_name":"Tobias Mildenberger","author_link":"https:\/\/contabo.com\/blog\/author\/tobias\/"},"uagb_comment_info":0,"uagb_excerpt":"You have your own Email server but your emails are getting marked as spam? Fear not! With this article we got you covered to avoid this!","authors":[{"term_id":1491,"user_id":50,"is_guest":0,"slug":"tobias","display_name":"Tobias Mildenberger","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/077178d5dce6c3d4c0c0396857a7e544bfdf8adf04145fff5160b33a22e28b1f?s=96&d=mm&r=g","0":null,"1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":""}],"_links":{"self":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts\/3827","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/users\/50"}],"replies":[{"embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/comments?post=3827"}],"version-history":[{"count":5,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts\/3827\/revisions"}],"predecessor-version":[{"id":17148,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts\/3827\/revisions\/17148"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/media\/17092"}],"wp:attachment":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/media?parent=3827"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/categories?post=3827"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/tags?post=3827"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=3827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}