Helmut,

> on *BSD (at least tested with FreeBSD 6.x and 7.x and OpenBSD 4.3)
> amavisd-new does not run chrooted:
>
> I guess Net::Server tries to chroot as non-root (GID/UID vscan) which
> according to "man 2 chroot" is not allowed:

Indeed, thanks for a bug report, amavisd-new-2.6.0 drops privileges
too early. Until I have this fixed, please provide a chroot directory
through a command line using option -R, e.g.:

  # amavisd -R /var/amavis


Btw, I see that the following change is needed too
when running chrooted with recent versions of NetAddr::IP :

--- amavisd.orig        2008-04-23 20:50:05.000000000 +0200
+++ amavisd     2008-05-27 19:41:48.000000000 +0200
@@ -20087,6 +20087,6 @@
         Mail::SPF::SenderIPAddrMech
         Mail::SPF::v1::Record Mail::SPF::v2::Record
-        NetAddr::IP NetAddr::IP::Util
-        auto::NetAddr::IP::Util::inet_n2dx auto::NetAddr::IP::Util::ipv6_n2d));
+        NetAddr::IP NetAddr::IP::Util auto::NetAddr::IP::Util::inet_n2dx
+        auto::NetAddr::IP::Util::ipv6_n2d auto::NetAddr::IP::Util::ipv6_n2x));
     }
     # the 3.2.0 could support the old Mail::SPF::Query too


Mark

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to