--On Freitag, 25. Mai 2001 22:14 +0800 Jericho Hell <[EMAIL PROTECTED]>
wrote:

> Hey
> I am unsure if this has been posted... but could anyone tell
> me what is
> necessary to be done to run sqwebmail 2 in a chrooted
> environment.

If your sqwbmail is setuid root (the default) you could
insert a chroot() right bevore it drops the privilegies
and then fix a few paths in the source.

If your Maildir's all belong to the same UID and you are
not using the system-password then sqwebmail wont need
any root-privilegies and can be called via suexec.
Thats not chroot but still better than any SUID-bit.

On FreeBSD simply build a jail for the mail-system, then
log into the jail and compile the courier-package (and a
webserver, the small thttpd should be fine...) from there.

Roland


Reply via email to