On 2015-05-20 10:09, Felipe Scarel wrote:
Hello all,
I was just reviewing the femail-chroot-1.0p0 post-install README, which
reads:
# cat /usr/local/share/doc/pkg-readmes/femail-chroot-1.0p0 | grep 'By
default' -A2
By default, femail will use `localhost' for smtphost. Make sure to
review FAQ Section 10.16 discussing name resolution with httpd(8)'s
default chroot(2).
Section 10.16 seems missing from the OpenBSD FAQ, though.
http://www.openbsd.org/faq/faq10.html goes from section 10.15 straight
to 10.17.
That README is three years old, and it appears it needs to be revised.
I'm
CCing the $MAINTAINER, who may want to look into it.
---
FAQ 10.16 was about OpenBSD's fork of Apache 1.3, which is no longer
built-in,
but still available as a port. FAQ 10.16 said many things, but
this was the clause of interest at the time that README was written:
Name Resolution: httpd(8) inside the chroot(2) will NOT be able to
use the
system /etc/hosts or /etc/resolv.conf. Therefore, if you have
applications
which require name resolution, you will need to populate
/var/www/etc/hosts
and/or /var/www/etc/resolv.conf in the chroot(2) environment. Note
that some
applications expect the resolution of "localhost" to work.
If your webserver is chrooted, this advice would apply.