On Wed, 21 Jan 2009 03:10:07 +1100 Sunnz <sun...@gmail.com> wrote: > I have set up mail and femail and they both works, just not in a > chroot. > > Basically I can do `mail m...@myaddress.com` or `/var/www/bin/femail > m...@myaddress.com` and both of then successfully sent an email to > myself. > > But it doesn't work with Apache in the chroot. I was using a PHP > script. > > femail-chroot is installed by pkg_add -iv femail-chroot. > > I also tried the following: > > `chroot -g www -u www / /var/www/bin/femail -t -i m...@myaddress.com` > works, but > > `chroot -g www -u www /var/www/ /bin/femail -t -i m...@myaddress.com` > doesn't work, it says: > > femail: non-recoverable failure in name resolution > > I run out of ideas now, what needs to be done? >
Missing /var/www/etc/resolv.conf ? - Robert