diff options
Diffstat (limited to 'network/netqmail/doinst_config')
-rw-r--r-- | network/netqmail/doinst_config | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/network/netqmail/doinst_config b/network/netqmail/doinst_config new file mode 100644 index 0000000000..d19f9a636a --- /dev/null +++ b/network/netqmail/doinst_config @@ -0,0 +1,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 |