G?bor L?n?rt:
> On Thu, Apr 28, 2011 at 11:26:03AM +0200, Reindl Harald wrote:
> >
> > Am 28.04.2011 10:58, schrieb G?bor L?n?rt:
> > > Hi All,
> > >
> > > I've just noticed that some domains have MX records like this:
> > >
> > > example.com. IN MX 10 mail.
> > >
> > > The problem: I have "search ourowndomain.tld" in /etc/resolv.conf. This
> > > causes that postfix tries to look up mail.ourowndomain.tld as well when
> > > someone tries to send email to domain example.com (of course example.com
> > > is
> > > only an example here). It will work, since we have that entry in our zone
> > > file "ourowndomain.tld" on the authoritative name server. My question:
> > > can
> > > I tell postfix, not to do this lookup at all?
> >
> > i would say such MX is invalid and should be ignored
>
> Yes, but I have the experience that it isn't ignored it seems ... Just I
> noticed that some mails are reported of looping and I discovered that the
> target's MX record specifies "mail." and it's interpreted as
> mail.owndomain.tld then by postfix and it's sent there then ...
Postfix 2.8 and later don't fall into this trap, at least not by default.
Wietse
smtp_dns_resolver_options (default: empty)
DNS Resolver options for the Postfix SMTP client. Specify zero or more
of the following options, separated by comma or whitespace. Option
names are case-sensitive. Some options refer to domain names that are
specified in the file /etc/resolv.conf or equivalent.
res_defnames
Append the current domain name to single-component names (those
that do not contain a "." character). This can produce incorrect
results, and is the hard-coded behavior prior to Postfix 2.8.
res_dnsrch
Search for host names in the current domain and in parent
domains. This can produce incorrect results and is therefore not
recommended.
This feature is available in Postfix 2.8 and later.