rDNS or PTR settings for mail hostname?

I have a working postfix/dovecot/mysql mail server per Linode's most recent guide on Deb. 7, in that at least I can send/receive mails for multiple users on multiple domains.

I've found errors in the mail logs stating, for example "Comcast requires that all mail servers must have a PTR record with a valid Reverse DNS entry."

Consider that the domain is domain.com, the mailserver used for email clients is mail.domain.com, and the FQDN is frank.domain.com

There is a valid rDNS entry for domain.com, but apparently there is no way to enter another rDNS entry for mail.domain.com or frank.domain.com (I'm not sure which would be better, anyway).

Does anyone have a solution for this? If I change myhostname in /etc/postfix/main.cf from frank.domain.com (as currently set) to just domain.com, will that break everything? Or should I set rDNS for the main IP address to the FQDN?

Thank you for any assistance.

3 Replies

PTR's should point to the HOSTNAME (so in your case frank.domain.com)

Basically forward and reverse lookups should match. So if I lookup and get example.com then I should be able to lookup the A record for example.com and get If the two values don't match then you don't have valid rDNS.

(Same is also true for IPv6 and AAAA records).

The name you set inside your MTA need not be the same as the hostname or the rDNS lookup name, but it should also be resolvable. Normally it's recommended to be the same as the rDNS value if you only have 1 IP address, but it doesn't have to be.

Select your Linode
Go to the "Network" tab
Click "Edit RDNS" button
Enter your Linode’s fully qualified domain name in the Hostname field


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct