Darxus

[geek] postfix "connect from unknown" for every IP

[geek] postfix "connect from unknown" for every IP

Previous Entry Add to Memories Share this! Next Entry
geek
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/
  • Hey, nice one. Thanks for posting, and glad to see another Dapper Drake in operation!
Powered by LiveJournal.com