I have a postfix instance on an admin-type node set to relay mail to a host
named "relayhost", i.e., relayhost = relayhost.  Now, relayhost is actually
an A record for the IP of the relayhost.  Funny enough, I do believe this
worked with 2.3.3 (latest version from CentOS repo).  I say "funny" because
I don't believe that should have worked without an MX record (correct me if
I'm wrong).

Now the fun bit comes in with version 2.8.3:

[root@padm021 postfix]# postqueue -p
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
5DFD229005D      352 Tue Jul  5 14:17:17  r...@reachlocal.com
(Host or domain name not found. Name service error for name=relayhost
type=A: Host not found)
                                         david.pie...@reachlocal.com

Okay, so if I'm right, this is failing precisely because there isn't an MX?
 And yet it works when I change smtp_host_lookup from just "dns" to "dns,
native".  How is "native" getting around this?

Here's the postconf -n:

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost
mydomain = reachlocal.com
myhostname = mailgate2.phx.reachlocal.com
mynetworks = 192.168.0.0/16, 10.0.0.0/8, 127.0.0.0/8
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
relayhost = relayhost
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_host_lookup = dns, native
soft_bounce = yes
unknown_local_recipient_reject_code = 550


Cheers,
DP

Reply via email to