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?

Unfortunately, it's not an option to remove that line from resolv.conf,
since other scripts,etc on the server are depends on this behaviour.

Also, we have transport maps using names which are not real ones, but
written in /etc/hosts. So it's not an option to disable (if it's possible at
all) postfix's idea to use resolver functionality using "local resources" (I
mean resolv.conf, hosts files in /etc).

Current solution was to remove that "search" line from
/var/spool/postfix/etc/resolv.conf (and not from /etc/resolf.conf), but I
feel that it's a bit ugly solution. I am wondering if there is better
solution you would suggest.

Thanks a lot in advance,

- Gábor

Reply via email to