Linux系統(tǒng)Qmail郵件服務(wù)器安裝過(guò)程解析 |
發(fā)布時(shí)間: 2012/8/11 11:06:13 |
Qmail郵件服務(wù)器安裝過(guò)程-checkpassword-0.90(pop3驗(yàn)證用戶程序)cmd5checkpw-0.22.tar.gzucspi-tcp-0.88(tcpserver等服務(wù)程序)qmail-smtpd-auth-0.30.tar.gz(smtp補(bǔ)丁程序)qmail-1.03.tar.gz(Qmail基本系統(tǒng)包)vpopmail-5.2.1.tar.gz(虛擬域用戶pop3支持)ezmlm-0.53.tar.gz(郵件列表管理軟件)autorespond.tar.gz(自動(dòng)回復(fù)程序)qmailadmin-1.0.6.tar.gz(虛擬域web方式管理)以上所有軟件可從以網(wǎng)址下載http://www.qmail.orghttp://www.inter7.com/qmail安裝前準(zhǔn)備工作新建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基本系統(tǒng):安裝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補(bǔ)丁及其它補(bǔ)。#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//將函數(shù)straynewline中的451改為553//將451改為553是為避免當(dāng)其它服務(wù)器給你發(fā)來(lái)無(wú)效格式的郵件時(shí),你的服務(wù)器陷入循環(huán)應(yīng)答。#makesetupcheck#./config-fasttest.com建立系統(tǒng)別名:#cd~alias;touch.qmail-postmaster.qmail-mailer-daemon.qmail-root#echotest.com>/var/qmail/control/helohost\\主機(jī)名(解決新浪拒收郵件問(wèn)題)#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服務(wù)#/etc/rc.d/init.d/sendmailstop#rpm–e–nodepssendmail QmailWeb管理系統(tǒng)安裝虛擬域#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安裝自動(dòng)回復(fù)程序#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啟動(dòng)文件 本文出自:億恩科技【mszdt.com】 服務(wù)器租用/服務(wù)器托管中國(guó)五強(qiáng)!虛擬主機(jī)域名注冊(cè)頂級(jí)提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM] |