Entry tags:
[geek] postfix "connect from unknown" for every IP
I just had way more difficulty than I should have getting postfix to use DNS to resolve any IPs. It's simple but less obvious than I'd like. Postfix by default runs in a chroot jail, meaning it can't see any files outside of /var/spool/postfix/. The solution to the problem in my case (Ubuntu 6.06 (Linux)) was:
cp -a /etc/host.conf /etc/hosts /etc/nsswitch.conf /etc/passwd /etc/resolv.conf /etc/services /var/spool/postfix/etc/
cp -a /lib/libnss* /var/spool/postfix/lib/
cp -a /etc/host.conf /etc/hosts /etc/nsswitch.conf /etc/passwd /etc/resolv.conf /etc/services /var/spool/postfix/etc/
cp -a /lib/libnss* /var/spool/postfix/lib/
no subject