快速业务通道

LINUX 邮件服务器qmail 架设

作者 佚名技术 来源 Linux系统 浏览 发布时间 2012-05-16
g/software/toaster-scripts-0.9.0.tar.gz[/url]
cd ../
tar -xzf tar/netqmail-1.05.tar.gz
cd netqmail-1.05
./collate.sh 正常情况应该出来7项 Install Software Now that you have downloaded all the software packages to /var/src, please go through each of these installation steps as the appear, and in this order, unless you really know what you''re doing. (Because if you did, you wouldn''t be reading this, right?) The below steps assume that your "rc" directories are in /etc/ and your "init.d" path is "/etc/init.d" . If yours are different, please substitue paths accordingly.
  • daemontools
daemontools is a collection of tools for managing UNIX services. It will monitor qmail-send, and qmail-smtpd, and qmail-pop3d services. Info: [url]http://cr.yp.to/daemontools.html[/url] Install: mkdir -p /package
chmod 1755 /package
cd /package
tar -xpzf /var/src/tar/daemontools-0.76.tar.gz
cd admin/daemontools-0.76
patch -p1 < /var/src/netqmail-1.05/other-patches/daemontools-0.76.errno.patch
package/install
# add the "clear" service
cd ../
mkdir clear
touch clear/down
cat > clear/run <&lt;EOF
#!/bin/sh
yes '''' | head -4000 | tr ''n'' .
# When you want to clear the service errors, just run this:
# svc -o /service/clear
EOF
chmod x clear/run
chmod a-w clear/down
ln -s /package/admin/clear /service/clear To verify that daemontools is running, make sure that `ps ax` reports ''/bin/sh /command/svscanboot'' and ''svscan /service'' as running. Install Software
  • ucspi-tcp
ucspi-tcp contains tcpserver and tcpclient, command line tools for building client-server applications. Info: [url]http://cr.yp.to/ucspi-tcp.html[/url] Install: cd /var/src
tar -xzf tar/ucspi-tcp-0.88.tar.gz
cd ucspi-tcp-0.88
patch -p1 &lt; /var/src/netqmail-1.05/other-patches/ucspi-tcp-0.88.errno.patch
# NOTE: If you are on the x86_64 platform, you need to remove the "-02" argument to gcc in conf-cc. See this for details
make
make setup check
  • qmail
qmail is allegedly the second most popular MTA in use, known for speed and security. Info: [url]http://www.qmail.org[/url] The patch you will apply later is a composite of these existing patches:
    • smtp auth (cram-md5)
    • starttls support
    • support oversize dns packets (not necessary if you use dnscache)
    • qregex (regular expression matching in badmailfrom and badmailto)
    • reread concurrency via HUP
    • big concurrency (set the spawn limit above 255)
    • maildir patch
    • qmail-queue (to allow for virus scanners, part of netqmail)
    • chkuser (check for local users, envelope syntax) with user extensions enabled (for TMDA)
    • spam throttle
    • spf
    • surbl support in qmail-smtpd
    • domainkeys support
Install: mkdir /var/qmail
groupadd nofiles
useradd -g nofiles -d /var/qmail/alias alias
useradd -g nofiles -d /var/qmail qmaild
useradd -g nofiles -d /var/qmail qmaill
useradd -g nofiles -d /var/qmail qmailp
groupadd qmail
useradd -g qmail -d /var/qmail qmailq
useradd -g qmail -d /var/qmail qmailr
useradd -g qmail -d /var/qmail qmails
cd /var/src
tar -xzf tar/toaster-sc

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多
上一篇: raid技术0 1 1 0 5 0下一篇: linux cluster

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号