資源描述:
《qmail103郵件系統(tǒng)安裝文檔》由會員上傳分享,免費在線閱讀,更多相關(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.4O.tar.gzezmlm-idx-0.53.400.unified_41?patchwmail-1.00rc1.20030724.tar.gzempf-1.O.tar.gzucsp
2、i-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/local/pkgs/clamav目錄下,qmail-scariner-1.24.gzmaildrop-1?5.2.tar.gzclamav-0.
3、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/qmailgroupaddnofilesgroupaddqmailuseradd-gnofiles-d/var/qmail/aliasaliasuseradd-gnofiles-d/var/qmailqmaildusera
4、dd-gnofiles-d/var/qmailqmailluseradd-gnofiles-d/var/qmailqmailpuseradd-gqmail-d/var/qmailqmailquseradd-gqmail-d/var/qmailqmailruseradd-gqmail-d/var/qmailqmailscd/var/qmail/aliastouch.qmail-postmaster.qmaikroot.qmail-mailer-daemon3.安裝Qmail-i-SpamControl-i-eMPFcd/usr/local/pkgs/patchtarzxvfspamcon
5、trol-2317.tgzcd/usr/local/pkgstarzxvfqmail-1.03.tar.gzcdqmail-1.03cp-aR../patch/*.使用vi命令編輯conf-spamcontrol文件,然后保存退出,執(zhí)行:./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,把qmai
6、l-smtpd.c做個備份使用vi命令編輯qmail-smtpd.c文件,找到如下一行:voidsmtp_rcpt(arg)char*arg;{在該行下新增一行,如下:intret=0;然后,找到如下四行:if(!stralloc_cats(&rcptto/Tf))die_nomem();if(!stralloc_cats(&rcptto,addr.s))die_nomem();if(!stralloc_0(&rcptto))die_nomem();out(n250okrH);把這四行刪除,替換成如下:ret=policy_check();if(ret==1){if(!stral
7、loc_cats(&rcptto,f,TH))die_nomem();if(!stralloc_cats(&rcptto,addr.s))die_nomem();if(!stralloc_0(&rcptto))die_nomem();out(H250okrH);elseif(ret==0){out(n550cannotmessage”);out(addr.s);out(”(#5.0.0deniedbypolicy)rH);}else