diff options
author | Duncan Roe <duncan_roe@optusnet.com.au> | 2017-06-22 17:26:08 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-06-24 08:32:21 +0700 |
commit | 888ec031aca7e4f81a72497f9ebc0259e07621cb (patch) | |
tree | 0fcfcba8c18643f6a6111d70b341326312acc27e /network/netqmail/doinst_config | |
parent | a8e78c52c72b342c5436f5ff39148a3f2e68f7ee (diff) | |
download | slackbuilds-888ec031aca7e4f81a72497f9ebc0259e07621cb.tar.gz |
network/netqmail: Added (the qmail MTA).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
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 |