




下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(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)上找對應(yīng)的rpm包[root@tanwensasl2]#vi/etc/sysconfig/saslauthdMECH=shadow /*修改為shadow[root@tanwensasl2]#/etc/init.d/saslauthdstart[root@tanwensasl2]#/usr/sbin/testsaslauthd-u帳號-p密碼0:OK"Success." /*安裝成功2.開機(jī)自動啟動[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)上找對應(yīng)的rpm包 [root@tanwensasl2]#groupadd-rpostdrop [root@tanwensasl2]#useradd-r-s/bin/falsepostfix [root@tanwensasl2]#vi/etc/postfix/main.cf myhostname=#設(shè)置運行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都是什么意思我就不說了,因為不清楚![root@tanwenpostfix]#/usr/sbin/postfixcheck[root@tanwen~]#useradd-s/bin/falsetest[root@tanwen~]#passwdtest /*增加一個名字為test密碼為abc的帳號[root@tanwen~]#telnetlocalhost25Trying...Connectedtolocalhost.Escapecharacteris'^]'.220ESMTPPostfixehlo250-PIPELINING250-SIZE10240000250-VRFY250-ETRN250-AUTHPLAINLOGINCRAM-MD5DIGEST-MD5250-AUTH=PLAINLOGINCRAM-MD5DIGEST-MD5250-ENHANCEDSTATUSCODES250-8BITMIME250DSNauthplaindGVzdAB0ZXN0AGFiYw==2352.0.0Authenticationsuccessful /*說明正常啟動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沒有的就找到對應(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ù)運行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"一項改為DocumentRoot"/var/www/cgi-bin/openwebmail"b.增加為自動顯示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.加入一下幾行讓某個目錄有CGI執(zhí)行權(quán)限<Directory"/var/www/cgi-bin/openwebmail">
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 轉(zhuǎn)崗勞動合同范本
- 2025年度出租車行業(yè)車輛更新改造合同
- 《與妻書》教學(xué)設(shè)計 2023-2024學(xué)年統(tǒng)編版高中語文必修下冊
- 2025年新能源停車場車位租賃合同范本
- 2024年多媒體講臺行業(yè)發(fā)展前景預(yù)測及投資戰(zhàn)略咨詢報告
- Unit 7 Careers Lesson 1EQIQ 教學(xué)設(shè)計-2024-2025學(xué)年高中英語北師大新版(2019)選擇性必修第三冊
- 2落花生第二課時(教學(xué)設(shè)計)2024-2025學(xué)年統(tǒng)編版語文五年級上冊
- 購買儀器的合同范本
- 2025年瓷質(zhì)滲花磚項目投資可行性研究分析報告
- 2025年沙卡項目可行性研究報告
- DBJ50∕T-098-2019 城市綠化養(yǎng)護(hù)質(zhì)量標(biāo)準(zhǔn)
- 自動化腹膜透析(APD)的臨床應(yīng)用課件
- (日文文書模板范例)請求書-請求書
- 旅游消費者行為學(xué)整套課件完整版電子教案課件匯總(最新)
- 學(xué)前兒童發(fā)展心理學(xué)(第3版-張永紅)教學(xué)課件1754
- 2022牛排消費趨勢報告
- TPM╲t4Step Manul(三星TPM絕密資料)
- 細(xì)菌群體感應(yīng)系統(tǒng)及其應(yīng)用課件
- 司法鑒定程序通則(試行)
- 通達(dá)信指標(biāo)——江恩輪
- 神經(jīng)電生理檢查ppt課件
評論
0/150
提交評論