[email protected]:
> `/etc/postfix/transport`
>     .lan smtp:[somehost]

This disables MX lookups before A lookups. This DOES NOT disable
DNS lookups.

>     May 20 20:27:25 dexp.lan postfix/smtp[226399]: 4E537CEFD1: 
> to=<[email protected]>, relay=none, delay=0.4, delays=0.14/0.02/0.23/0, 
> dsn=5.4.4, status=bounced (Host or domain name not found. Name service error 
> for name=somehost type=A: Host not found)

As documented, Postfix looked up the A record for somehost.

If you want to support names in /etc/hosts, use smtp_host_lookup.

        Wietse

smtp_host_lookup (default: dns)
       What mechanisms the Postfix SMTP client uses to look  up  a  host's  IP
       address.  This parameter is ignored when DNS lookups are disabled (see:
       disable_dns_lookups and smtp_dns_support_level).  The  "dns"  mechanism
       is always tried before "native" if both are listed.

       Specify one of the following:

       dns    Hosts can be found in the DNS (preferred).

       native Use the native naming service only (nsswitch.conf, or equivalent
              mechanism).

       dns, native
              Use the native service for hosts not found in the DNS.

       This feature is available in Postfix 2.1 and later.

Reply via email to