slackbuilds_ponce/network/netqmail/doinst_config
Duncan Roe 888ec031ac network/netqmail: Added (the qmail MTA).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2017-06-24 08:32:21 +07:00

30 lines
675 B
Text

# LWQ 2.5.5
cd /usr/doc/netqmail-1.06/install_scripts
./config
cd /var/qmail/control
for i in me defaultdomain plusdomain locals rcpthosts
do
config $i.new
done
#LWQ 2.8.2.3
grep -q '127.:allow,RELAYCLIENT=""' /etc/tcp.smtp 2>/dev/null ||
echo '127.:allow,RELAYCLIENT=""' >>/etc/tcp.smtp
qmailctl cdb
# LWQ 2.8.3
for i in /usr/lib /usr/sbin
do
if [ -e $i/sendmail ]
then
if [ $(readlink -f $i/sendmail) != /var/qmail/bin/sendmail ]
then
mv $i/sendmail $i/sendmail.old
chmod 0 $i/sendmail.old
ln -s /var/qmail/bin/sendmail $i
fi
else
rm -f $i/sendmail # Could be a dangling symlink
ln -s /var/qmail/bin/sendmail $i
fi
done