darxus: (geek)
darxus ([personal profile] darxus) wrote2007-01-22 11:19 am
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/

[identity profile] doctordidj.livejournal.com 2007-01-22 05:08 pm (UTC)(link)
Hey, nice one. Thanks for posting, and glad to see another Dapper Drake in operation!