> On May 9, 2018, at 11:36 AM, Tobias Koeck <[hidden email]> wrote:
> if I want to use several domains on my Postfix server do every domain need a unique PTR DNS entry to an unique IP or is it enough to setup $myhostname to the main domain?
1. Though IP addresses can map to multiple PTR records, this is not a good idea.
Publish exactly one primary name for each IP address via a single PTR record.
2. When handling multiple domains, it is much better to use a single MX hostname
for them all:
foo.example. IN MX 0 smtp.example.net.
bar.example. IN MX 0 smtp.example.net.
baz.example. IN MX 0 smtp.example.net.
Put all the indirection into the MX record, rather than use (outside the SMTP
standard) CNAMEs in the MX hostname, or define multiple hostnames with the same
underlying IP addresses.
The myhostname setting of a Postfix MTA should ideally be a non-CNAME that maps to
its A/AAAA records.
> On May 9, 2018, at 12:11 PM, Tobias Koeck <[hidden email]> wrote:
>> Publish exactly one primary name for each IP address via a single PTR record.
> Sounds great but doesn't that mean I need exactly one unique public IP for every domain? If I 'skip' the PTR records completely how likely is emails will be bounced back?
No. All it means is that each IP address reverse maps to one name. No more, no less.
This has nothing to do with the domains you receive mail for, or whose mail you route