一个完整的qmail 安装方案.docx

上传人:b****7 文档编号:25281328 上传时间:2023-06-06 格式:DOCX 页数:26 大小:26.49KB
下载 相关 举报
一个完整的qmail 安装方案.docx_第1页
第1页 / 共26页
一个完整的qmail 安装方案.docx_第2页
第2页 / 共26页
一个完整的qmail 安装方案.docx_第3页
第3页 / 共26页
一个完整的qmail 安装方案.docx_第4页
第4页 / 共26页
一个完整的qmail 安装方案.docx_第5页
第5页 / 共26页
点击查看更多>>
下载资源
资源描述

一个完整的qmail 安装方案.docx

《一个完整的qmail 安装方案.docx》由会员分享,可在线阅读,更多相关《一个完整的qmail 安装方案.docx(26页珍藏版)》请在冰豆网上搜索。

一个完整的qmail 安装方案.docx

一个完整的qmail安装方案

一个完整的qmail安装方案

CreateanE-MailToaster

qmail+vpopmail+qmailadmin+vQamin+maildrop+qmail-scanner+SpamAssassin+ClamAV+sqWebMail+Squirrelmail+MRTG

1.StartwithacleaninstallofRedHat9.0

Ifyouarebuildingamailserverfromthegroundup,youmaywanttoinstallacleanoperatingsystem.ThistutorialassumesthatyourOSisRedHatLinux9.0,however,itshouldworkforotherflavorsofLinux/Unixwithouttoomuchmodification.Choosea“serverinstall”aswewillneedsomeofthepackagesthatthismodeinstallsbydefault;youwillalsowanttoinstallalltheMySQLpackagesaswell.Youwillfindthatyoudon'tevenneedtoinstallX-Windows(X-Windowsburnsupalotofroom,andyou'llprobablybespendingallyourtimeinashellallthetimeanyway!

).

Bydefault,vpopmail(thevirtualdomainadd-onforqmail)storesallthee-mailunder/home/vpopmail.Forthisreason,youshouldconsiderthesizeofyour/homevolume.Ifyouplanongeneratingalargevolumeofe-mails,youshouldadjustyour/homevolumeaccordingly.Itypicallypartitionanadditionalharddrivejustforthe/homevolume.

2.Removeexistingsendmail/pop/imap/httpdservers

rpm-e--nodepssendmail

rpm-e–-nodepsopenssl

#rpm-e--nodepsapache

Next,makesurethatyouhavethesepackagesinstalled:

rpm-qgdbm

rpm-qgdbm-devel

rpm-qopenssl

rpm-qopenssl-devel

rpm-qstunnel

rpm-qopenssl-0.9.7a-2.i686.rpm

rpm-qmod_ssl-2.0.40-21.i386.rpm

rpm-qopenssl-devel-0.9.7a-2.i386.rpm

rpm-qopenssl-perl-0.9.7a-2.i386.rpm

rpm-qkrb5-devel-1.2.7-10.i386.rpm

rpm-qkrb5-server-1.2.7-10.i386.rpm

rpm-qkrb5-workstation-1.2.7-10.i386.rpm

rpm-qkrb5-libs-1.2.7-10.i386.rpm

rpm-qpam_krb5-1.60-1.i386.rpm

rpm-qmysql-devel-3.23.54a-11.i386.rpm

#forqmail-scanneryoumayneedperl-suidperl.  Igotmineat

rpm-qperl-suidperl

Ifyoudonothavethesepackagesinstalled,downloadthemandinstallthemnow.YoushouldbeabletofindalltheseRPMsat.Ifoundmy“perl-suidperl”at....8.0-55.1.i586.html

3.Downloadneededpackagesandputthemin/var/src

mkdir-p/var/src/tar

cd/var/src/tar

#Neededpackages

wgethttp:

//cr.yp.to/daemontools/daemontools-0.76.tar.gz

wgethttp:

//cr.yp.to/ucspi-tcp/ucspi-tcp-0.88.tar.gz

wgethttp:

//cr.yp.to/software/qmail-1.03.tar.gz

wgethttp:

//www.shupp.org/patches/qmail-toaster-0.5.patch.bz2(makesuretodownloadthislinktoMYSITE!

!

wget

wget

wget

wget

wget

wgethttp:

//cr.yp.to/software/ezmlm-0.53.tar.gz

wgethttp:

//www.qmail.org/moni.csi.hu....53.400-10.i386.rpm

wgethttp:

//www.qmail.org/moni.csi.hu....53.400-10.i386.rpm

wget

wget...-imap-2.0.0.tar.bz2

wget

#Optionalpackages

wget

wget...elmail-1.4.0.tar.gz

wgethttp:

//www.spamassassin.org/rele...ssassin-2.55.tar.gz

wget...il-scanner-1.16.tgz

wget

wget...f/tnef-1.2.1.tar.gz

#Downloadtheperl-suidperlRPM.  Ifyouaren'tusingRedHat

#youmayneedtofindanalternatewayofgettingperl-suidperlinstalled.

wgetftp:

//....1-34.99.6.i386.rpm

#Virusrelatedoptionalpackages

wget

#Testvirusfiles

wgethttp:

//www.eicar.org/download/

wgethttp:

//www.eicar.org/download/.txt

wgethttp:

//www.eicar.org/download/eicar_com.zip

wgethttp:

//www.eicar.org/download/eicarcom2.zip

#DownloadMRTGandsupportingpackages

wget

wgethttp:

//www.libpng.org/pub/png/src/old/libpng-1.0.12.tar.gz

wgethttp:

//www.libpng.org/pub/png/src/zlib-1.1.4.tar.gz

wget

wgethttp:

//people.ee.ethz.ch/~oetike.../mrtg-2.9.29.tar.gz

#DownloadPATCHESfortheqmailappsforRH9

wgethttp:

//qmail.org/moni.csi.hu/pub...ls-0.76.errno.patch

wgethttp:

//qmail.org/moni.csi.hu/pub...il-1.03.errno.patch

wgethttp:

//qmail.org/moni.csi.hu/pub...cp-0.88.errno.patch

wgethttp:

//qmail.org/moni.csi.hu/pub...ls-0.76.errno.patch

wgethttp:

//qmail.org/moni.csi.hu/pub...ls-0.76.errno.patch

4.Installdaemontools

daemontoolsisacollectionoftoolsformanagingUNIXservices.Itwillmonitorqmail-send,andqmail-smtpd,andqmail-pop3dservices.

Thebelowstepsassumethatyour"rc"directoriesarein/etc/rc.d,andyour"init.d"pathis"/etc/rc.d/init.d".Ifyoursaredifferent,pleasesubstitutepathsaccordingly.

mkdir-p/package

chmod1755/package

cd/package

tar-xpzf/var/src/tar/daemontools-0.76.tar.gz

cdadmin/daemontools-0.76

patch-p1

package/install

5.Installucspi-tcp

ucspi-tcpcontainstcpserverandtcpclientcommandlinetoolsforbuildingclient-serverapplications.

cd/var/src/

tar-xzftar/ucspi-tcp-0.88.tar.gz

cducspi-tcp-0.88

patch-p1

make

makesetupcheck

6.Installqmail

qmailisareplacementforsendmail.It'sfast,free,andeasytouse.Followthenextstepsclosely.

mkdir/var/qmail

/usr/sbin/groupaddnofiles

/usr/sbin/useradd-gnofiles-d/var/qmail/aliasalias

/usr/sbin/useradd-gnofiles-d/var/qmailqmaild

/usr/sbin/useradd-gnofiles-d/var/qmailqmaill

/usr/sbin/useradd-gnofiles-d/var/qmailqmailp

/usr/sbin/groupaddqmail

/usr/sbin/useradd-gqmail-d/var/qmailqmailq

/usr/sbin/useradd-gqmail-d/var/qmailqmailr

/usr/sbin/useradd-gqmail-d/var/qmailqmails

#weneedtoaddthevpopmailuserhere

/usr/sbin/groupaddvchkpw

/usr/sbin/useradd-gvchkpwvpopmail

cd/var/src

tar-xzftar/qmail-1.03.tar.gz

tar-xzftar/toaster-scripts.tar.gz

bzip2-dtar/qmail-toaster-0.5.patch.bz2

cdqmail-1.03

patch-p0<../tar/qmail-toaster-0.4.7.patch

patch-p1<../tar/qmail-1.03.errno.patch

make

makesetupcheck

(cd~alias;touch.qmail-postmaster.qmail-mailer-daemon.qmail-root)

chmod644~alias/.qmail*

#onthenextlinereplace"full.hostname"withthehostnameofyourmailserver

./config-fastfull.hostname

makecert

#enteryourcompany'sinformation

cd/var/qmail/control

rmclientcert.pem

cpservercert.pemclientcert.pem

chownqmaild.qmailclientcert.pem

cp/var/src/toaster-scripts/rc/var/qmail/rc

chmod755/var/qmail/rc

mkdir/var/log/qmail

echo./Maildir/>/var/qmail/control/defaultdelivery

cp/var/src/toaster-scripts/qmailctl/var/qmail/bin/

#Makeqmailstartatboottime.

ln-s../init.d/qmail/etc/rc.d/rc0.d/K30qmail

ln-s../init.d/qmail/etc/rc.d/rc1.d/K30qmail

ln-s../init.d/qmail/etc/rc.d/rc2.d/S80qmail

ln-s../init.d/qmail/etc/rc.d/rc3.d/S80qmail

ln-s../init.d/qmail/etc/rc.d/rc4.d/S80qmail

ln-s../init.d/qmail/etc/rc.d/rc5.d/S80qmail

ln-s../init.d/qmail/etc/rc.d/rc6.d/K30qmail

ln-s/var/qmail/bin/qmailctl/etc/rc.d/init.d/qmail

chmod755/var/qmail/bin/qmailctl

ln-s/var/qmail/bin/qmailctl/usr/bin

ln-s/var/qmail/bin/sendmail/usr/sbin/sendmail

ln-s/var/qmail/bin/sendmail/usr/lib/sendmail

#Nowcreatethesupervisedirectories/scriptsfortheqmailservices:

mkdir-p/var/qmail/supervise/qmail-send/log

mkdir-p/var/qmail/supervise/qmail-smtpd/log

mkdir-p/var/qmail/supervise/qmail-pop3d/log

mkdir-p/var/qmail/supervise/qmail-pop3ds/log

chmod+t/var/qmail/supervise/qmail-send

chmod+t/var/qmail/supervise/qmail-smtpd

chmod+t/var/qmail/supervise/qmail-pop3d/log

chmod+t/var/qmail/supervise/qmail-pop3ds/log

cp/var/src/toaster-scripts/send.run/var/qmail/supervise/qmail-send/run

cp/var/src/toaster-scripts/send.log.run/var/qmail/supervise/qmail-send/log/run

cp/var/src/toaster-scripts/smtpd.run/var/qmail/supervise/qmail-smtpd/run

cp/var/src/toaster-scripts/smtpd.log.run/var/qmail/supervise/qmail-smtpd/log/run

cp/var/src/toaster-scripts/pop3d.run/var/qmail/supervise/qmail-pop3d/run

cp/var/src/toaster-scripts/pop3d.log.run/var/qmail/supervise/qmail-pop3d/log/run

cp/var/src/toaster-scripts/pop3ds.run/var/qmail/supervise/qmail-pop3ds/run

cp/var/src/toaster-scripts/pop3ds.log.run/var/qmail/supervise/qmail-pop3ds/log/run

echo20>/var/qmail/control/concurrencyincoming

chmod644/var/qmail/control/concurrencyincoming

chmod755/var/qmail/supervise/qmail-send/run

chmod755/var/qmail/supervise/qmail-send/log/run

chmod755/var/qmail/supervise/qmail-smtpd/run

chmod755/var/qmail/supervise/qmail-smtpd/log/run

chmod755/var/qmail/supervise/qmail-pop3d/run

chmod755/var/qmail/supervise/qmail-pop3d/log/run

chmod755/var/qmail/supervise/qmail-pop3ds/run

chmod755/var/qmail/supervise/qmail-pop3ds/log/run

mkdir-p/var/log/qmail/smtpd

mkdir-p/var/log/qmail/pop3d

mkdir-p/var/log/qmail/pop3ds

chownqmaill/var/log/qmail/var/log/qmail/smtpd

chownqmaill/var/log/qmail/pop3d/var/log/qmail/pop3ds

#allowdaemontoolstostartqmail

ln-s/var/qmail/supervise/qmail-send/var/qmail/supervise/qmail-smtpd/service

#verifythatit'srunningwithqmailctl

qmailctlstat

qmailshouldnowbeupandrunning.Isuggestreviewingsteps2through6tohelp"cement"inyourmindwhatwejustdid.Wewillnowmoveontothevpopmailsectionoftheinstall

7.InstallVpopmail

Vpopmailisavirtualdomainpackagead

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 小学教育 > 英语

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1