Some advise needed on how to setup reverse PTR on web and mail server

Solution 1:

It makes no difference what you use, as long as the A record and PTR record match each other, and there's a compelling reason to use neither of the alternatives you suggested.

Now i setup the reverse PTR also

Because you didn't mention the standard process for setting up reverse-DNS records in AWS, I am skeptical as to whether you have done this correctly. You don't set this up yourself. AWS support controls reverse DNS.

Instead, you...

  • allocate an Elastic IP address that you will be using with your mail server, if it isn't already using one. You can't do this with an IP from the public pool.

  • decide what name you want... you should probably make this email-specific, since you're not going to be able to move this name, and you don't want to create a permanent dependency for your web site on this address, even if that's what you're using it for at the moment. A common choice might be something like smtp-us-west-2.example.com where us-west-2 is the AWS region and example.com is one of your domains.

  • create an appropriate A-record with that name pointing to the EIP.

  • log in with your root account credentials and submit this form to AWS Support.

The form serves two purposes: it requests that they remove the default outbound port 25 rate limiting that exists for all of EC2 from your addresses, and it allows you to request that they create the reverse DNS PTR record for you -- they are the only ones who can do this, since it is their IP address space, not yours. If you created a reverse DNS entry somewhere, it isn't going to actually do anything.