On 10/11/2012 10:42, Wietse Venema wrote: > staticsafe: >>> First check the host.conf, hosts, and resolv.conf files in >>> /var/spool/postfix/etc. >>> >>> If that does not cause the coin to drop, compile and run the attached >>> getaddrinfo and getnameinfo programs. Postfix requires that the >>> hostname from getnameinfo() will resolve with getaddrinfo() to the >>> client IP address. >> >> Interesting. There is no host.conf file in /var/spool/postfix/etc, only >> hosts and resolv.conf, perhaps this is the issue? > > They are needed only if chroot is turned on. For example: > > /etc/postfix/master.cf: > # ============================================================= > # service type private unpriv chroot wakeup maxproc command > # (yes) (yes) (yes) (never) (100) > # ============================================================= > smtp inet n - - - - smtpd > > Otherwise the files are ignored. > > Oh, and you should run my getaddrinfo/getnameinfo programs as > a non-root user. > > Wietse >
I have run your programs as a non-root user. Results: ./getnameinfo 2600:3c03::f03c:91ff:fedf:219a Hostname: bender.entropynet.net Address: 2600:3c03::f03c:91ff:fedf:219a ./getaddrinfo bender.entropynet.net Hostname: bender.entropynet.net Addresses: 2600:3c03::f03c:91ff:fedf:219a 97.107.141.59 -- staticsafe http://staticsafe.ca
