title: Amazon SES emails no longer sending
body: <p>Im having a problem with sending emails using Amazon SES. I have an Amazon EC2 instance. </p>
  
  <p>It worked for the first couple of days but I just noticed last week all emails now fail. I have tried sending using Node and the Amazon SES sdk and from within AWS where you can send a test email. I have the following code in Node:</p>
  
  <pre><code>var aws = require('aws-sdk');
  
  // load aws config
  aws.config.loadFromPath('email_config.json');
  
  // load AWS SES
  var ses = new aws.SES({
      apiVersion: '2010-12-01'
  });
  
  ses.sendEmail({
      Source: from,
      Destination: {
          ToAddresses: to
      },
      Message: {
          Subject: {
              Data: 'Somebody registered'
          },
          Body: {
              Html: {
                  Data: body,
              }
          }
      }
  }, function(err, data) {
  
      console.log('email err is ', err, ' and data is ', data);
  
  });
  </code></pre>
  
  <p>The result of the log is:</p>
  
  <pre><code>email err is  null  and data is  { ResponseMetadata: { RequestId: 'ad28f526-0b15-11e6-ad87-1108d652684a' },
  MessageId: '010101544ebc41b3-f7bd43dd-0505-4eb2-a056-219ce6180fc5-000000' }
  </code></pre>
  
  <p>But the email doesnt deliever and I then receive an email from Amazon saying:</p>
  
  <pre><code>An error occurred while trying to deliver the mail to the following recipients: &lt; my email address &gt;
  </code></pre>
  
  <p>This contains an attachment with the following text:</p>
  
  <pre><code>From: &lt; my email address &gt;
  To: &lt; my email address &gt;
  Subject: Somebody registered
  MIME-Version: 1.0
  Content-Type: text/html; charset=UTF-8
  Content-Transfer-Encoding: 7bit
  Message-ID: &lt;010101544ebc41b3-f7bd43dd-0505-4eb2-a056-219ce6180fc5-000000@us-west-2.amazonses.com&gt;
  Date: Mon, 25 Apr 2016 18:44:01 +0000
  X-SES-Outgoing: 2016.04.25-54.240.27.56
  Feedback-ID: 1.us-west-2.GkIUmTTEDEIC5VBoooumwcKSnMDcLT8S4Zd3/deS/BU=:AmazonSES
  DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple;
      s=gdwg2y3kokkkj5a55z2ilkup5wp5hhxx; d=amazonses.com; t=1461609841;
      h=From:To:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID:Date:Feedback-ID;
      bh=fHqQiK/2DJ+B7zddmElFttCiWFnADDSNj5umLJQCPJs=;
      b=ZI/358zmcRHVBKTdA6qbQky5nj5z/YWw215KvkZ+oD73N0booHbl+jx+O05FdcKR
      irDjmyEDppGkp7rToZSTt/NHDeRrbERixT/ZCjGo/KOxvShovD7Z5mnDViRmkS5sTz5
      qo0oO0NuRz1lGVPkT5ONHNhKhWs7ncC9id0ycm34=
  </code></pre>
  
  <p>When I actually log into AWS and send a test email through the console, I get the same failure.</p>
  
  <p>I have verified the senders email address and I have an approved sending limit for the region.</p>
  
  <p>Any ideas what this could be? </p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I just noticed in my AWS control panel > SES Home > Domains it says my domain is 'pending verification'. Could this be it? It says I need to add a TXT DNS record with a name of xxx and value of yyy. I already did this on Register365. Maybe I did it wrong? Register365 doesnt provide name and value fields for a TXT record, only a 'result' field. So I added a TXT record with the 'result' field of: xxx=yyy. Is this the correct approach? This was weeks ago though and its still pending verification....</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I've since added a TXT record to my Register 365 control panel, and still my domain cannot be verified. The record looks like:</p>
  
  <p><a href="https://i.stack.imgur.com/mLmW2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mLmW2.png" alt="enter image description here"></a></p>
  
  <p>Amazon provided me with the following TXT record to verify my domain:</p>
  
  <pre><code>TXT Name*: _amazonses.mydomain.com
  TXT Value: u1qHYT6/2KV9Kl1VLKsApXjwcPqVXKJ8KeXj50k=
  </code></pre>
  
  <p>So in the Register 365 control panel "result" field I've added the record in the form name=value i.e "_amazonses.mydomain.com=u1qHYT6/2KV9Kl1VLKsApXjwcPqVXKJ8KeXj50k="</p>
  
  <p>I then ran nslookup to find the record but got the message:</p>
  
  <pre><code>server can't find _amazonses.mydomain.com: NXDOMAIN
  </code></pre>
  
  <p>What am I doing wrong?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I have now changed the TXT record to:</p>
  
  <p><a href="https://i.stack.imgur.com/OimAV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OimAV.png" alt="enter image description here"></a></p>
  
  <p>But after 3 days I have gotten another email from Amazon saying they have failed to verify the domain. Im utterly baffled now, I've been trying to verify it for 6 weeks! </p>
  
  <p>My SES account is not in sandbox mode - i've already been approved to send email via SES. I've also verified my sender email address. </p>
  
  <p>Are there any other options open to me? The Amazon SES service seems absolutely dire. </p>
  
  <p>Also when I run:</p>
  
  <pre><code>nslookup -type=TXT  _amazonses.redmatterapp.com ns-478.awsdns-59.com
  </code></pre>
  
  <p>I'm still seeing:</p>
  
  <pre><code>server can't find _amazonses.redmatterapp.com: NXDOMAIN
  </code></pre>
  
  <p>When I run:</p>
  
  <pre><code>nslookup -type=TXT  redmatterapp.com ns-478.awsdns-59.com
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>Can't find redmatterapp.com: No answer
  </code></pre>
  
  <p>Why is this happening? My DNS is with Register 365</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Seems like the nameservers I was using with nslookup were wrong. When I run nslookup, i know get:</p>
  
  <pre><code>_amazonses.redmatterapp.com text = "u1qN5cbTEDb/2EV9Bhd67YHT5jjqVXKJ8KeXj50k="
  </code></pre>
  
  <p>Which looks right. Yet still verification for my domain fails...</p>