Linux系统Qmail邮件服务器安装过程解析 |
发布时间: 2012/8/11 11:06:13 |
Qmail邮件服务器安装过程-checkpassword-0.90(pop3验证用户程序)cmd5checkpw-0.22.tar.gzucspi-tcp-0.88(tcpserver等服务程序)qmail-smtpd-auth-0.30.tar.gz(smtp补丁程序)qmail-1.03.tar.gz(Qmail基本系统包)vpopmail-5.2.1.tar.gz(虚拟域用户pop3支持)ezmlm-0.53.tar.gz(邮件列表管理软件)autorespond.tar.gz(自动回复程序)qmailadmin-1.0.6.tar.gz(虚拟域web方式管理)以上所有软件可从以网址下载http://www.qmail.orghttp://www.inter7.com/qmail安装前准备工作新建qmail安装目录#mkdir/var/qmail:添加qmail所必须的用户和组#groupaddnofiles#useradd-gnofiles-d/var/qmail/aliasalias#useradd-gnofiles-d/var/qmailqmaild#useradd-gnofiles-d/var/qmailqmaill#useradd-gnofiles-d/var/qmailqmailp#groupaddqmail#useradd-gqmail-d/var/qmailqmailq#useradd-gqmail-d/var/qmailqmailr#useradd-gqmail-d/var/qmailqmails安裝qmail基本系统:安装checkpassword-0.90(/bin)#cd/usr/local/src#tarxzvfcheckpassword-0.90.tar.gz#cdcheckpassword-0.90#patch-p1<../patch/checkpassword-0.90.errno.patch#make#makesetupcheck安裝cmd5checkpw-0.22.tar.gz#tarzxvfcmd5checkpw-0.22.tar.gz#mkdir/usr/man#mkdir/usr/man/man8#cdcmd5checkpw-0.22#make#makeinstall安装ucspi-tcp-0.88(/usr/local/bin)#cd/usr/local/src#tarxzvfucspi-tcp-0.88.tar.gz#cducspi-tcp-0.88#patch-p1<../patch/ucspi-tcp-0.88.a_record.patch#patch-p1<../patch/ucspi-tcp-0.88.errno.patch#patch-p1<../patch/ucspi-tcp-0.88.nodefaultrbl.patch#make#makesetupcheck
安装Qmail(qmail-1.03.tar.gz)#tarxzvfqmail-1.03.tar.gzSMTP补丁及其它补丁:#tarzxvfqmail-smtpd-auth-0.30.tar.gz#cdqmail-smtpd-auth-0.30#cpbase64.cbase64.hREADME.auth../qmail-1.03/#patch-d../qmail-1.03<auth.patch#cdqmail-1.03#patch-p1<../patch/qmail-103.patch#patch-p1<../patch/qmailqueue-patch#patch-p1<../patch/qmail-maildir++.patch#patch-p1<../patch/qmail-1.03.errno.patch#patch-p1<../patch/qmail-1.03.qmail_local.patch#viqmail-smtpd.c//将函数straynewline中的451改为553//将451改为553是为避免当其它服务器给你发来无效格式的邮件时,你的服务器陷入循环应答。#makesetupcheck#./config-fasttest.com建立系统别名:#cd~alias;touch.qmail-postmaster.qmail-mailer-daemon.qmail-root#echotest.com>/var/qmail/control/helohost\\主机名(解决新浪拒收邮件问题)#chmod644~alias/.qmail*#echo"127.0.0.1:allow,RELAYCLIENT=""">/etc/tcp.smtp#chmod4755/bin/checkpassword#sed's/Mailbox/Maildir\//'/var/qmail/boot/home>/var/qmail/rc(修改/var/qmail/rc把./Mailbox改成./Maildir/使用Maildir的pop3收信方式)#chmod755/var/qmail/rc停止sendmail服務#/etc/rc.d/init.d/sendmailstop#rpm–e–nodepssendmail QmailWeb管理系统安装虚拟域#groupaddvchkpw#useradd-gvchkpwvpopmail#mkdir~vpopmail/etc#echo"127.0.0.:allow,RELAYCLIENT=\"\"">~vpopmail/etc/tcp.smtp#echo":allow">/etc/tcp.smtp#/usr/local/bin/tcprules/etc/tcp.smtp.cdb/etc/tcp.smtp.tmp</etc/tcp.smtp#cd/usr/local/src#tarxzvfvpopmail-5.2.1.tar.gz#cdvpopmail-5.2.1#./configure--enable-roaming-users=y--enable-default-domain=test.com--enable-passwd=n#make#makeinstall-strip#crontab–e40****/home/vpopmail/bin/clearopensmtp2>&1>/dev/null#cd/home/vpopmail/bin#./vadddomaintest.comeitop#./vaddusertest@test.comtest#chmod6755/home/vpopmail/bin/vchkpw安装邮件列表#tarxzvfezmlm-0.53-idx-0.41.tar.gz#cdezmlm-0.53-idx-0.41#make#makeman#makesetup安装自动回复程序#tarzxvfautorespond.tar.gz#make(gcc-Wall-oautorespondautorespond.c)#makeinstall(cpautorespond/usr/local/bin/autorespond)安装虚拟域web方式管理#tarxzvfqmailadmin-1.0.6.tar.gz#cdqmailadmin-1.0.6#./configure--enable-htmldir=/www/web1--enable-cgibindir=/usr/local/apache2/cgi-bin#make#makeinstall-strip 建Qmail启动文件 本文出自:亿恩科技【www.enkj.com】 |