下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
安裝openwebmial,基于FC81.首先安裝cyrus-sasl[root@tanwen~]#yuminstallcyrus-sasl[root@tanwen~]#rpm-qa|grepsaslcyrus-sasl-devel-2.1.22-8.fc8cyrus-sasl-plain-2.1.22-8.fc8cyrus-sasl-lib-2.1.22-8.fc8cyrus-sasl-md5-2.1.22-8.fc8cyrus-sasl-2.1.22-8.fc8這樣就差不多了,如果查詢沒有而且yum安裝不好就到網(wǎng)上找對(duì)應(yīng)的rpm包[root@tanwensasl2]#vi/etc/sysconfig/saslauthdMECH=shadow /*修改為shadow[root@tanwensasl2]#/etc/init.d/saslauthdstart[root@tanwensasl2]#/usr/sbin/testsaslauthd-u帳號(hào)-p密碼0:OK"Success." /*安裝成功2.開機(jī)自動(dòng)啟動(dòng)[root@tanwen~]#chkconfig--level345saslauthdon3.建立認(rèn)證文檔(smtpd.conf)[root@tanwen~]#cd/usr/lib/sasl2/[root@tanwensasl2]#echo'pwcheck_method:saslauthd'>smtpd.conf4.查詢并卸載其他的郵件服務(wù)器程序(如sendmail)。 [root@tanwensasl2]#rpm-qa|grepsendmailsendmail-8.14.2-1.fc8[root@tanwensasl2]#rpm-efetchmail-6.3.8-4.fc8.i386[root@tanwensasl2]#rpm-eredhat-lsb-3.1-19.fc8.i386[root@tanwensasl2]#rpm-esendmail-8.14.2-1.fc85.安裝并配置postfix [root@tanwensasl2]#yuminstallpostfix/*沒有就網(wǎng)上找對(duì)應(yīng)的rpm包 [root@tanwensasl2]#groupadd-rpostdrop [root@tanwensasl2]#useradd-r-s/bin/falsepostfix [root@tanwensasl2]#vi/etc/postfix/main.cf myhostname=#設(shè)置運(yùn)行postfix服務(wù)的郵件主機(jī)的主機(jī)名、域名
mydomain=
myorigin=$mydomain#設(shè)置由本機(jī)寄出的郵件所使用的域名或主機(jī)名稱
inet_interfaces=all#設(shè)置postfix服務(wù)監(jiān)聽的網(wǎng)絡(luò)接口
mydestination=$myhostname,$mydomain,localhost.$mydomain,localhost #設(shè)置可接收郵件的主機(jī)名稱或域名
mynetworks=/24,/8 #設(shè)置可轉(zhuǎn)發(fā)哪些網(wǎng)絡(luò)的郵件
relay_domains=$mydestination #設(shè)置可轉(zhuǎn)發(fā)哪些網(wǎng)域的郵件下面的是關(guān)于smtp認(rèn)證的設(shè)置,需要自行添加smtpd_sasl_auth_enable=yessmtpd_sasl_local_domain=''smtpd_recipient_restrictions=permit_mynetworks,permit_sasl_authenticated,reject_unauth_destinationbroken_sasl_auth_clients=yessmtpd_client_restrictions=permit_sasl_authenticatedsmtpd_sasl_security_options=noanonymous都是什么意思我就不說了,因?yàn)椴磺宄root@tanwenpostfix]#/usr/sbin/postfixcheck[root@tanwen~]#useradd-s/bin/falsetest[root@tanwen~]#passwdtest /*增加一個(gè)名字為test密碼為abc的帳號(hào)[root@tanwen~]#telnetlocalhost25Trying...Connectedtolocalhost.Escapecharacteris'^]'.220ESMTPPostfixehlo250-PIPELINING250-SIZE10240000250-VRFY250-ETRN250-AUTHPLAINLOGINCRAM-MD5DIGEST-MD5250-AUTH=PLAINLOGINCRAM-MD5DIGEST-MD5250-ENHANCEDSTATUSCODES250-8BITMIME250DSNauthplaindGVzdAB0ZXN0AGFiYw==2352.0.0Authenticationsuccessful /*說明正常啟動(dòng)smtpquit2212.0.0ByeConnectionclosedbyforeignhost.[root@tanwenpostfix]#chkconfig--level345postfixon6.安裝pop(imap) [root@tanwen~]#yuminstalldovecot[root@tanwen~]#vi/etc/dovecot.conf修改為 protocols=pop3[root@tanwen~]#chkconfig--level345dovecoton7.安裝http [root@tanwenpostfix]#yuminstallhttpd [root@tanwen~]#chkconfig--level345httpdon8.安裝配置openwebmail 需要的perl依賴包perl-Text-Iconv-1.4-1.2.el4.rf.i386.rpm
perl-suidperl-5.8.5-12.1.1.i386.rpm
perl-Compress-Zlib-1.34-1.2.el4.rf.i386.rpm
perl-CGI-SpeedyCGI-2.22-1.2.el4.rf.i386.rpm
perl-5.8.5-12.1.i386.rpm沒有的就找到對(duì)應(yīng)的rpm包裝上..OK了就安裝openwebmail,要用yum安裝,直接rpm提示依賴關(guān)系。[root@tanwen~]#cd/etc/yum.repos.d/[root@tanwenyum.repos.d]#lftpget/openwebmail/download/redhat/rpm/release/openwebmail.repo[root@tanwenyum.repos.d]#yuminstallopenwebmail[root@tanwen~]#cd/var/www/cgi-bin/openwebmail/[root@tanwenopenwebmail]#./openwebmail-tool.pl–init修改/var/www/cgi-bin/openwebmail/etc/openwebmail.conf文件:
domainnamesauto
更改為:
domainnames(更改為自己定義的域名)
default_languageen
更改為:
default_languagezh_CN.GB2312(更改為簡體中文版介面)
default_iconsetCool3D.Englist
更改為:
default_iconsetCool3D.Chinese.Simplified(更改為中文3D按鍵)
Step9、修改/var/www/cgi-bin/openwebmail/etc/defaults/openwebmail.conf文件:
smtpserver
更改為:
smtpserver52(更改smtp服務(wù)器的地址)
authpop3_serverlocalhost
更改為:
authpop3_server52(更改pop3服務(wù)器的地址)
Step10、修改/var/www/cgi-bin/openwebmail/etc/defaults/dbm.conf文件:
dbmopen_extnone
更改為:
dbmopen_ext.db
dbmopen_haslockno
更改為:
dbmopen_haslockyes
smtpserver52(添加smtp服務(wù)器的地址)
Step11、繼續(xù)運(yùn)行openwebmail-tool.pl文件:
#./openwebmail-tool.pl--init
creatingdb/var/www/cgi-bin/openwebmail/etc/maps/b2g...done.
creatingdb/var/www/cgi-bin/openwebmail/etc/maps/g2b...done.
creatingdb/var/www/cgi-bin/openwebmail/etc/maps/lunar...done.
WelcometotheOpenWebMail!
Thisprogramisgoingtosendashortmessagebacktothedeveloper,
sowecouldhavetheideathatwhoisinstallingandhowmanysitesare
usingthissoftware,thecontenttobesentis:
OS:Linux2.6.9-11.ELi686
Perl:5.008005
WebMail:OpenWebMail2.5120050228
Sendthesitereport?(Y/n)y(輸入y,然后按回車鍵)
sendingreport...
Thankyou.OK,簡單的openwebmail安裝完畢! 訪問/cgi-bin/openwebmail/openwebmail.pl進(jìn)入登錄界面!另外:更改訪問地址為/a.修改主頁到/var/www/cgi-bin/openwebmail找到httpd.conf里的 DocumentRoot"/var/www/html"一項(xiàng)改為DocumentRoot"/var/www/cgi-bin/openwebmail"b.增加為自動(dòng)顯示index.pl找到 DirectoryIndexindex.htmlindex.html.var改為DirectoryIndexindex.htmlindex.html.varindex.plc.讓cgi執(zhí)行在/etc/httpd/conf/httpd.conf里找到 #AddHandlercgi-script.cgi 改為AddHandlercgi-script.cgi.pld.加入一下幾行讓某個(gè)目錄有CGI執(zhí)行權(quán)限<Directory"/var/www/cgi-bin/openwebmail">
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年度山地承包與森林資源評(píng)估合同4篇
- 2025年度房地產(chǎn)企業(yè)內(nèi)部控制制度建立與執(zhí)行合同4篇
- 縱火行為的預(yù)防與打擊
- 2025年度模特與時(shí)尚品牌合作限量版合同4篇
- 2025年度民房買賣交易保障服務(wù)合同4篇
- 2025年度摩托車配件定制加工合同模板2篇
- 2025年度城市軌道交通農(nóng)民工勞動(dòng)合同樣本2篇
- 二零二五年度內(nèi)衣銷售代理區(qū)域保護(hù)合同規(guī)范
- 2025年度美容院健康體檢與會(huì)員服務(wù)合同2篇
- 2025年度新能源車輛運(yùn)輸合同
- TB 10012-2019 鐵路工程地質(zhì)勘察規(guī)范
- 新蘇教版三年級(jí)下冊(cè)科學(xué)全冊(cè)知識(shí)點(diǎn)(背誦用)
- 鄉(xiāng)鎮(zhèn)風(fēng)控維穩(wěn)應(yīng)急預(yù)案演練
- 腦梗死合并癲癇病人的護(hù)理查房
- 蘇教版四年級(jí)上冊(cè)脫式計(jì)算300題及答案
- 犯罪現(xiàn)場保護(hù)培訓(xùn)課件
- 扣款通知單 采購部
- 電除顫操作流程圖
- 湖北教育出版社三年級(jí)下冊(cè)信息技術(shù)教案
- 設(shè)計(jì)基礎(chǔ)全套教學(xué)課件
- IATF16949包裝方案評(píng)審表
評(píng)論
0/150
提交評(píng)論