A second qmail instance on SME Server, see https://wiki.contribs.org/AltQmail
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
869 B
33 lines
869 B
#! /bin/sh
|
|
|
|
exec 2>&1
|
|
|
|
mount --bind /var/qmail/bin/ root/var/qmail/bin
|
|
|
|
if [ ! -d root/etc ]; then
|
|
mkdir root/etc
|
|
cp -a /etc/resolv.conf root/etc
|
|
cp -a /etc/services root/etc
|
|
cp -a /etc/passwd root/etc
|
|
cp -a /etc/group root/etc
|
|
fi
|
|
|
|
if [ ! -d root/lib ]; then
|
|
mkdir root/lib
|
|
cp -a /lib/libc-2.5.so root/lib
|
|
ln -s libc-2.5.so root/lib/libc.so.6
|
|
cp -a /lib/ld-2.5.so root/lib/
|
|
ln -s ld-2.5.so root/lib/ld-linux.so.2
|
|
cp -a /lib/libnss_files-2.5.so root/lib
|
|
ln -s libnss_files-2.5.so root/lib/libnss_files.so.2
|
|
cp -a /lib/libresolv-2.5.so root/lib
|
|
ln -s libresolv-2.5.so root/lib/libresolv.so.2
|
|
fi
|
|
|
|
chown qmails:qmail root/var/qmail/queue/lock/trigger
|
|
chmod 622 root/var/qmail/queue/lock/trigger
|
|
|
|
exec \
|
|
/usr/bin/env - PATH="/var/qmail/bin:/bin:/usr/bin:/usr/local/bin" \
|
|
/usr/sbin/chroot root /var/qmail/bin/qmail-start \
|
|
./Maildir/
|
|
|