Paul Kudla:
> www-1       11-05 06:24:55 {postfix.in/smtpd[56748] (1239357351) 
> warning: hostname syslog-local.scom.ca does not resolve to address 
> 10.220.0.6
> www-1       11-05 06:24:55 {postfix.in/smtpd[56748] (1239357352) connect 
> from unknown[10.220.0.6]

The Postfix SMTP server does not use DNS to look up the client name
and address. Instead it uses the system library functions getnameinfo()
and getaddrinfo(). These may use /etc/hosts, DNS, or both.

Possible sources of discrepancy: 

- Your /etc/hosts and DNS disagree.

- Postfix is chrooted, and the chroot jail has incorrect info
  in /var/spool/postfix/etc/{nsswitch,resolv,host}.conf . Do

    # postconf -F smtp/inet/chroot=n
    # postfix reload

and see if that fixes the problem.

To investigate further, in the Postfix source tree there are test
programs in directory auxiliary/name-addr-test.

On the www-1 server, in directory auxiliary/name-addr-test, do:

    $ make getaddrinfo getnameinfo
    $ ./getnameinfo 10.220.0.6
    $ ./getaddrinfo <the result from getnameinfo>

The result from getaddrinfo should contain 10.220.0.6 (it should
list all IP address for that host).

If you really can't make it work, use different names for each
interface address (foo and foo-internal, for example).

        Wietse

Reply via email to