資源描述:
《qmail1.03郵件系統(tǒng)安裝文檔》由會員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫。
1、1.??????軟件環(huán)境:RedHat8以下文件放到/usr/local/pkgs目錄下,qmail-1.03.tar.gzautorespond-2.0.2.tar.gzcmd5checkpw-0.22.tar.gzqmailadmin-1.2.0.tar.gzqmailadmin-help-1.0.8.tar.gzvpopmail-5.4.8.tar.gzezmlm-0.53.tar.gzezmlm-idx-0.40.tar.gzezmlm-idx-0.53.400.unified_41.patchwmail-1.0
2、0rc1.20030724.tar.gzempf-1.0.tar.gzucspi-tcp-0.88.tar.gzucspi-tcp-0.88.a_record.patchucspi-tcp-0.88.errno.patchucspi-tcp-0.88.nobase.patch以下文件放到/usr/local/pkgs/patch目錄下,spamcontrol-2317.tgz以下文件放到/usr/local/pkgs目錄下,mysql-4.1.7.tar.gzhttpd-2.0.55.tar.gz以下文件放到/usr/l
3、ocal/pkgs/clamav目錄下,qmail-scanner-1.24.gzmaildrop-1.5.2.tar.gzclamav-0.80.tar.gzperl-DB_File-1.804-88.4.i386.rpmperl-suidperl-5.8.0-88.3.i386.rpmperl-Time-HiRes-1.38-3.i386.rpmcompat-db-4.1.25-6.i386.rpm注:以上軟件都可以通過google.com搜索到可用的下載地址。2.??????設(shè)置Qmail環(huán)境mkdir/var/q
4、mailgroupaddnofilesgroupaddqmailuseradd–gnofiles–d/var/qmail/aliasaliasuseradd–gnofiles–d/var/qmailqmailduseradd–gnofiles–d/var/qmailqmailluseradd–gnofiles–d/var/qmailqmailpuseradd–gqmail–d/var/qmailqmailquseradd–gqmail–d/var/qmailqmailruseradd–gqmail–d/var/qmail
5、qmailscd/var/qmail/aliastouch.qmail-postmaster.qmail-root.qmail-mailer-daemon3.??????安裝Qmail+SpamControl+eMPFcd/usr/local/pkgs/patchtarzxvfspamcontrol-2317.tgzcd/usr/local/pkgstarzxvfqmail-1.03.tar.gzcdqmail-1.03cp–aR../patch/*.使用vi命令編輯conf-spamcontrol文件,然后保存退出,執(zhí)
6、行:./install_spamcontrol.sh執(zhí)行如下執(zhí)行命令,用以安裝eMPF-1.0cd/usr/local/pkgstarzxvfempf-1.0.tar.gzcp-aRempf-beta/*qmail-1.03,注意不要覆蓋README文件。cdqmail-1.03cpqmail-smtpd.cqmail-smtpd.c.orig,把qmail-smtpd.c做個備份使用vi命令編輯qmail-smtpd.c文件,找到如下一行: voidsmtp_rcpt(arg)char*arg;{在該行下新增一行,如
7、下: intret=0;然后,找到如下四行:??if(!stralloc_cats(&rcptto,"T"))die_nomem();??if(!stralloc_cats(&rcptto,addr.s))die_nomem();??if(!stralloc_0(&rcptto))die_nomem();??out("250okr");把這四行刪除,替換成如下:??ret=policy_check();??if(ret==1){????if(!stralloc_cats(&rcptto,"T"))die_nome
8、m();????if(!stralloc_cats(&rcptto,addr.s))die_nomem();????if(!stralloc_0(&rcptto))die_nomem();????out("250okr");??}??elseif(ret==0){????out("550cannotmessag