Fix chroot since qmail is compiled with TLS support

tags/smeserver-altqmail-0.1.3-1
Daniel Berteaud 5 years ago
parent f90a84d9a7
commit 451705ce97
  1. 2
      root/etc/e-smith/templates/var/service/altqmail/root/var/qmail/control/smtproutes/10localdomains
  2. 0
      root/var/service/altqmail/root/var/qmail/control/tlshosts/exhaustivelist
  3. 27
      root/var/service/altqmail/run

@ -13,6 +13,6 @@
next if ( $mail_server ne 'localhost' );
$emaildomain = $domain->key;
$OUT .= "$emaildomain:127.0.0.1\n";
$OUT .= "$emaildomain:$SystemName.$DomainName\n";
}
}

@ -20,7 +20,6 @@ fi
if [ -e /$LIBDIR/libc-2.12.so ]; then
LIBC="2.12"
fi
if [ ! -d root/$LIBDIR ]; then
mkdir root/$LIBDIR
cp -a /$LIBDIR/libc-$LIBC.so root/$LIBDIR
@ -35,6 +34,32 @@ if [ ! -d root/$LIBDIR ]; then
ln -s libnss_files-$LIBC.so root/$LIBDIR/libnss_files.so.2
cp -a /$LIBDIR/libresolv-$LIBC.so root/$LIBDIR
ln -s libresolv-$LIBC.so root/$LIBDIR/libresolv.so.2
cp -a /$LIBDIR/libgssapi_krb5.so.2.2 root/$LIBDIR
ln -s libgssapi_krb5.so.2.2 root/$LIBDIR/libgssapi_krb5.so.2
cp -a /$LIBDIR/libkrb5.so.3.3 root/$LIBDIR
ln -s libkrb5.so.3.3 root/$LIBDIR/libkrb5.so.3
cp -a /$LIBDIR/libcom_err.so.2.1 root/$LIBDIR
ln -s libcom_err.so.2.1 root/$LIBDIR/libcom_err.so.2
cp -a /$LIBDIR/libk5crypto.so.3.1 root/$LIBDIR
ln -s libk5crypto.so.3.1 root/$LIBDIR/libk5crypto.so.3
cp -a /$LIBDIR/libdl-$LIBC.so root/$LIBDIR
ln -s libdl-$LIBC.so root/$LIBDIR/libdl.so.2
cp -a /$LIBDIR/libz.so.1.2.3 root/$LIBDIR
ln -s libz.so.1.2.3 root/$LIBDIR/libz.so.1
cp -a /$LIBDIR/libkrb5support.so.0.1 root/$LIBDIR
ln -s libkrb5support.so.0.1 root/$LIBDIR/libkrb5support.so.0
cp -a /$LIBDIR/libkeyutils.so.1.3 root/$LIBDIR
ln -s libkeyutils.so.1.3 root/$LIBDIR/libkeyutils.so.1
cp -a /$LIBDIR/libpthread-$LIBC.so root/$LIBDIR
ln -s libpthread-$LIBC.so root/$LIBDIR/libpthread.so.0
cp -a /$LIBDIR/libselinux.so.1 root/$LIBDIR
fi
if [ ! -d root/usr/$LIBDIR ]; then
cp -a /usr/$LIBDIR/libssl.so.1.0.1e root/usr/$LIBDIR
ln -s libssl.so.1.0.1e root/usr/$LIBDIR/libssl.so.10
cp -a /usr/$LIBDIR/libcrypto.so.1.0.1e root/usr/$LIBDIR
ln -s libcrypto.so.1.0.1e root/usr/$LIBDIR/libcrypto.so.10
fi
chown qmails:qmail root/var/qmail/queue/lock/trigger

Loading…
Cancel
Save