title: Use AWS SES, Route 53, CloudFlare and Lambda for an effective email solution for a Wordpress site
body: <p>I believe this question to be different form others because of the added Route53 complexity that is possibly contradicting the CLoudflare records.</p>
  
  <p>I've recently moved to an AWS hosted service for a Wordpress site. </p>
  
  <p>I'm using an EC2 instance with Bitnami installed, with Route 53 and Cloudflare dealing with the DNS records.</p>
  
  <p>I should prefix all this by saying I'm quite new to this side of things and have followed multiple tutorials online.</p>
  
  <p>Currently my site is working and functional.  Everything is being routed correctly, however mail is becoming an issue.</p>
  
  <p>I would like anything@domain.co.uk to be forwarded to my personal email address, and in addition, I would like to be able to reply to that email address.</p>
  
  <p>Steps taken so far:
  EC2 - Site installed.
  Route53 - Pointed NS Record to Cloudflare
  Route53 - Pointed CNAME record to domain.co.uk
  Cloudflare - Records are pointed back to EC2 ip.
  -- this is the bit that works (I'm just adding all info)</p>
  
  <p>SES - Domain has been registered and verified
  *Both Route53 AND Cloudflare have the MX and TXT records (I'm not sure if this part is correct)
  *MX points to inbound....amazonaws.com
  *TXT is the string</p>
  
  <p>SES - Email address has been added and verified (this is my personal address - I 'think' I need to verify a admin@domain.co.uk but those are not coming through.</p>
  
  <p>SES - Rule Set - One configured to send emails to S3 and then notify of email via SNS (this was my last attempt to simply get some notification!)
  Currently when I send an email to my domain I get a bounce back:</p>
  
  <pre><code>  To: myDomain &lt;admin@domain.co.uk&gt;
    Subject: sdfsdf
  
  Your message cannot be delivered to the following recipients:
  
    Recipient address: admin@domain.co.uk
    Reason: Illegal host/domain name found
  </code></pre>
  
  <p>I have other rules set up and in place at a domain level for sending to SNS -> Lamba as a mail forwarder but for now I'd like to get the simplest part working :)</p>
  
  <p>WP SES - this is the plugin for wordpress that has been installed.</p>
  
  <p>I think that perhaps the duplicate records in Route53 and Cloudflare may be part o the problem but I'm not sure which one is correct.<br>
  TIA for any help.</p>
  
  <p>Guides I've followed are:
  <a href="https://wpforms.com/how-to-set-up-wordpress-smtp-using-amazon-ses/" rel="nofollow noreferrer">https://wpforms.com/how-to-set-up-wordpress-smtp-using-amazon-ses/</a>
  <a href="https://medium.com/@ashan.fernando/forwarding-emails-to-your-inbox-using-amazon-ses-2d261d60e417" rel="nofollow noreferrer">https://medium.com/@ashan.fernando/forwarding-emails-to-your-inbox-using-amazon-ses-2d261d60e417</a></p>