title: AWS EC2 Reverse DNS (PTR) Failing
body: <p>Have searched everywhere, can't find answer.</p>
  <p>I have the domain mydomain.com. The root and www records point to my main server, which runs my website.</p>
  <p>I am now using a separate AWS ec2 instance to set up an email server for my domain. This is running on the subdomain <em>mail</em>.</p>
  <p>My dns looks like this:</p>
  <pre><code>A @ webserverip
  A www webserverip
  A mail ec2ip
  </code></pre>
  <p>To prevent my server from getting flagged for spam, I submitted the amazon reverse dns form here: <a href="https://aws.amazon.com/forms/ec2-email-limit-rdns-request" rel="nofollow noreferrer">https://aws.amazon.com/forms/ec2-email-limit-rdns-request</a></p>
  <p>I gave them the ip of my ec2 mail server, and put &quot;mail.mydomain.com&quot; in the &quot;Reverse DNS Record for EIP 1&quot; box.</p>
  <p>However, I keep receiving emails back from them saying:</p>
  <blockquote>
  <p>When attempting to map the reverse DNS entry, we notice that this is failing because the PTR record doesn't match the A record for that domain.</p>
  <p>We currently require the forward A record to match the PTR record for all reverse DNS entries.</p>
  </blockquote>
  <p>I really don't understand what I am doing wrong. The &quot;mail&quot; subdomain has an A record pointing to my ec2 server ip. Any assistance would be greatly appreciated!</p>
  <p>(I am using cloudflare for my dns if this makes any difference)</p>