#!/bin/sh
#QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" export QMAILQUEUE
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
LOCAL=`head -1 /var/qmail/control/me`
if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" -o -z "$LOCAL" ];
then
echo QMAILDUID NOFILESGID MAXSMTPD, or LOCAL is unset in
echo /var/qmail/supervise/qmail-smtpd/run
exit 1
fi
if [ ! -f /var/qmail/control/rcpthosts ];
then
echo "No /var/qmail/control/rcpthosts!"
echo "Refusing to start SMTP listener because it'll create an open relay"
exit 1
fi
exec /usr/local/bin/softlimit -m 9000000 /
/usr/local/bin/tcpserver -H -t 1 -v -p -R -l "$LOCAL" /
-x /etc/tcp.smtp.cdb -c "$MAXSMTPD" /
-u "$QMAILDUID" -g "$NOFILESGID" 0 smtp /
/var/qmail/bin/qmail-smtpd /
/home/vpopmail/bin/vchkpw /usr/bin/true /
/bin/cmd5checkpw /usr/bin/true 2>&1
qmail-smtpd run script
最新推荐文章于 2017-11-27 15:17:00 发布