I help a friend run a server, which includes a mail server. http://mxtoolbox.com reports that our reverse DNS is not a valid hostname.
The reverse DNS currently points to domain.com. Should it point to hostname.domain.com? I have seen here that it is conventional to use this scheme for reverse DNS. However, will this cause a problem if the mail server responds like this:
220 domain.com ESMTP Postfix (Ubuntu)
EHLO PWS3.mxtoolbox.com
250-domain.com
250-PIPELINING
250-SIZE 10240000
...
Basically, will the reverse DNS pointing to a subdomain of the domain the mail server reports be valid?
EDIT: My original question was as follows:
If the mail server reports domain.com as its FQDN, can the reverse DNS point to hostname.domain.com? See comments below for why this isn't needed, and why both should be the same.
hostname.domain.comis valid as reverse DNS for mail to/fromdomain.com, while the other post wanted to know what their reverse DNS should be. My answer uses the other post's answer and asks a question about it. – ConnorJC Aug 12 '15 at 00:36domain.com, not the reported FQDN. I originally assumed the server would have to reportdomain.comto send mail fordomain.com. As I recently realized, I could usev=spf1 mx -allas the SPF record to allow the other machine to send mail. This was clarified in the comments of the accepted answer. – ConnorJC Aug 12 '15 at 00:54