summaryrefslogtreecommitdiff
path: root/network/netqmail/doinst_config
blob: d19f9a636acd37f80e9bf9a60a3479e88ea3a4a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# 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