YUM配置郵件服務(wù)_第1頁
YUM配置郵件服務(wù)_第2頁
YUM配置郵件服務(wù)_第3頁
YUM配置郵件服務(wù)_第4頁
YUM配置郵件服務(wù)_第5頁
已閱讀5頁,還剩4頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)

文檔簡介

簡單的本地郵件系統(tǒng)搭建在安裝postfix之前需要關(guān)閉sendmail服務(wù),并將sendmail服務(wù)設(shè)置為禁止自啟動j£.unuiiiaii-~auucErootO1oca1host~seruicesendmai1stopShuttingdounsm-c1ient:[OKShuttingdounsendmai1:[OK[root!?1oca1host~chkchkconfigchkfontpath[root!?1oca1host~]#chkconfig--leue135sendmai1offErootP1oca1host~我們使用YUM安裝postfix的服務(wù),需要連接YUM服務(wù)器,如圖ErootP1oca1host~scp19Z.168.0.Z54:/etc/yum.repos.d/seruer.repo/etc/yum.repos.d/seruer.repoTheauthenticityofhostf192.168.0.Z54(19Z.168.0.Z54)JcanJtbeestab1ished.RSAkeyfingerprintis03:73:4b:31:ab:ca:f4:64:73:06:8Z:c3:06:e3:cf:dd.Areyousureyouwanttocontinueconnecting(yes/no)?yesUarning:Permanentlyaddedf19Z.168.0.Z54J(RSA)tothe1istofknounhosts.rootB19Z.168.0.Z54fspassword:seruer.repo100Z950.IKB/s00:08[rootslocaIhost~]#使用yuminstallpostfix命令安裝軟件包,如圖Instalied:postfix.i386Z:Z.3.3-Z.1.e15_ZComplete*[rRotP1oca1host~]#使用yuminstalldovecot命令安裝為客戶的提供郵件收發(fā)的服務(wù),如圖Instalied:douecot.i3860:1.0.7-7.el5DependencyInstalied:mysq1.i3860:5.0.77-3.e15per1-DBI.i3860:1.5Z-Z.e15postgresq1-1ibs.i3860:8.1.11-1.e15_1.1Complete![rootO1oca1host~使用vim/etc/postfix/main.cf命令編輯配置文件,如圖修改postfix服務(wù)器使用的主機名和郵件域myhostname二ttThemydomainparameterspecifiestheloca1internetttThedefanItistouse$myhostnameminusthefirstcctt$mydomainisusedasadefauItvalueformanyotherttparameters.ttttmydomain二domain.tIdmydomain二_

設(shè)置postfix服務(wù)監(jiān)聽的IP地址,設(shè)置為all代表所有ttinet_interfaces=allttinet_interfaces=$myhostname#inet_interfaces=$myliDstnamejlocaIhostiifiet_iiiterfaces=a11_設(shè)置外發(fā)郵件時發(fā)件人地址中的郵件域名hocca1o-uuciuw>l-iuiiiinoiinij_rfrujiuimiiuwiiuoijJio.ttmydestination=,localhostttmydestination=$myhostnamejlocaIhost.$mydomainjlocalhostj$mydomainttmydestination=$myhostnamejlocaIhost.$mydomainjlocalhostj$mydomainttmail.$mydomain,uuu.$mydomainjftp.$mydomain設(shè)置郵件存儲位置和格式,完成后保存退出tthome_maiIbox=MaiIboxhome_maiIbox=Maildir/HThemail_:spu(jl_directurgparameterspecif編輯dovecot.conf文件[root!?locaIhost~]#uim/etc/douecot.conf指定支持的郵局協(xié)議為imap何pop3禁用指定支持的郵局協(xié)議為imap何pop3禁用SSL機制設(shè)置郵件存儲格式和位置ttSeedoc/uiki/Uariables.txtforfulllist.Someexamples:mail_location|

Bnai1mail_location|

Bnai1locationmbox:~/mai1:IMBOX=/uar/mail/>iu允許明文密碼認證,保存退出#matchesthelocalIP(ie.youJreconnectingttconnectionisconsideredsecureandplainteisable_plaintext_authttShouldallIMAPandPOP3processesbeki1Id

編輯PAM認證文件,[rootP1oca1host~]#uim/etc/pam.d/douecot『只要注釋掉第一行的參數(shù)就可以#zPAM-1.0ttauthrequiredpam_nologin.soauthincludesystem-authaccountincludesystem-authsessionincludesystem-auth重新加載服務(wù),如圖[root(?1oca1host~servicepostfixrestart[F[LED][OK][F[F[LED][OK][F[LED][OK]Startingpostfix:[root!?1oca1host~servicedovecotrestartStoppingDovecotImap:StartingDovecotImap:[rootP1oca1host~使用netstat命令監(jiān)聽對應(yīng)的25、110、143端口,如圖[rootOlocaIhost~netstat-natp11grep:25tcp00::Z:*LISTEN5Z94/masterErootBlocaIhost~netstat-natp11grep:110tcpQ0:::110:::*LISTEM5140/douecot[rootOlocaIhost~]ttnetstat-natp11grep:143tcp00:::143:::*LISTEN5140/douecotErootBlocaIhost~編輯/etc/postfix/access文件,添加如下允許控制/etc/postfix/access:19Z.168.0OKOK新建幾個用戶,lisi和wangwu,用作測試Jrootl?locaIhost~]ttuseradd-s/sbin/nologinuanguuroot!?1oca1host~]ttpassuduanguuChangingpassuordforuseruanguu.NeuUNIXpassuord:BADPASSWORD:itisWAYtooshortRetypeneuUNIXpassuord:passud:allauthenticationtokensupdatedsuccessfully.[rootl?1oca1host~]tt

在客戶端指定DNS,能夠解析使用lisi用戶給wangwu發(fā)一封郵件在郵件服務(wù)器的wangwu的宿主目錄下,可以看到一封新的郵件[root!?1oca1host[root!?[root!?1oca1host[root!?1oca1hostYroot!?1oca1hostMaildirlttcdnew/[root!?1oca1hostneu]#Is13010Z4Z31.Ufd0BIddd0bM30Z7Z8.localhost.localdomain[root!?1oca1hostneu]#使用wangwu用戶接收,如圖創(chuàng)建WEBmail郵件服務(wù)使用yumgroupinstall“WebServer15命令安裝httpd服務(wù),如圖Instalied:crypto-utiIs.i3860:Z.3-Z.e15httpd.i3860:Z.Z.3-31.el5mod_per1.i3860:Z.0.4-6.el5mod_ss1.i3861:Z.Z.3-31.e15php-Idap.i3860:5.1.6-Z3.Z.e15_3tux.i3860:3.Z.18-9.fc6distcache.i3860:1.4.5-14.1httpd-manua1.i3860:Z.Z.3-31.e15mod_python.i3860:3.Z.8-3.1php.i3860:5.1.6-Z3.Z.e15_3squid.i3867:Z.6.STABLEZ1-3.e15ueba1izer.i3860:Z.01_10-30.1Instalied:0:1.Z.7-11.e!5_3.10:4.1.4-10.el5apr-uti1.i3860:1.Z.7-7.e15_3.ZInstalied:0:1.Z.7-11.e!5_3.10:4.1.4-10.el5apr-uti1.i3860:1.Z.7-7.e15_3.Znewt-per1.i3860:1.08-9.Z.Zphp-c1i.i3860:5.1.6-Z3.Z.e15_3php-common.i3860:5.1.6-Z3.Z.e15_3Complete!ErootO1oca1host~yumgroupinsta11"WebSeruer將提供WEB郵箱服務(wù)的源代碼包掛載到目錄下,解壓到存放網(wǎng)頁的目錄下,如圖[rootslocaIhostLMS-SG6]#Isdouecot-1.1.4.tar.gzsquirreImai1-1.4.13.tar.bzZpostfix-Z.4.6.tar.gzzh_CN-l.4.13-Z0B71ZZ0.tar.bzZpostfix-Z.4.6-vda-ng.patch.gzErootP1oca1hostLNS-SG6]#tar-jxufsquirrelmail-1.4.13.tar.bzZ-C/uar/www/html并將支持中文界面的補丁,復(fù)制到源代碼所在的目錄,如圖[rootPlocaIhostLMS-SG6IttIsdo^tecot-1.1.4.tar.gzsquirreImai1-1.4.13.tar.bzZpostfix-Z.4.6.tar.gzzh_CN-l.4.13-Z0071ZZ0.tar.bzZpostfix-Z.4,6-uda-ng.patch.gzErootPlocaIhostLNS-SG6]#cpzh_CN-l.4.13-Z0071ZZ0.tar.bzZ/uar/www/html/sqLiirre1mail-1.4.13/將目錄改名,并進入目錄,解壓中文界面補丁,如圖[rootslocaIhosthtmlIttErootEhocaIhost[rootslocaIhostErootPlocaIhostAUTHORShtmlItthtmlIttuebmialiftsquirreImai1-1.4.13uebmia1uebmia1/IsChangeLogCOPYINGindex.phpconfigureINSTALL[rootslocaIhostuebmialifttarUPGRADEREADMEzh_CN-l.4.13-Z0071ZZ0.tar.bzZReleaseNotes-jxufzh_CN-l.4.13-Z0071ZZB.tar.bzZ_新建2個目錄,如圖[root!?1oca1hostuebmia1]ttmkdir-pattachdata_將屬主和屬組修改為apache用戶和組,如圖[root@1oca1hostuebmia1]ttclioun-Rapache:apacheattach/data/_對attach目錄設(shè)置權(quán)限[rootP1oca1hostuebmia1]ttchmod730attach/查看目錄屬性如下[root@1[root@1oca1hostuebmia1]tt11drwx-uxZapacheapache[root@1oca1hostuebmia1]tt11drwxruxr-xZapacheapache[root@1oca1hostuebmia1]ttIgrepattach4096MarZ51Z:18attachIgrepdata4096Dec15ZBB7data[roots1oca1hostuebmai1]ttIsCOPYINGindex.phpReleaseNotes.localesAUTHORSCOPYING.localesinsta11ChangeLogINSTALLChangeLog.localesUPGRADEuersionzh_CN-l.4.13-Z0071Z2B.tar.bzZconfigureREADMEReleaseNotes[rootPlocaIhostuebmai1]ttcdconfigKirootl?[root!?locaIhostconfig]ttcpconfig_defanIt.phpconfig.php_localhostconfig]ttvimconfig.php

修改如下,這一部分是在WEB登錄界面的顯示內(nèi)容,如圖Kirootl?aloba1$uersion;*anfig_uersion=J1.4.0J;"";SM_PATH."";SM_PATH.fimages/sm_logo.pngJ;=J308J;='111J;"SquirreIMai1SuersionM;$org_name$org_logo$org_logo_widt$org_logo_heig$org_title$signout_page'_皿';$f'_皿';$prouider_uri$prouider_name=JSquirreIMai1J;SsquirreImail_defanlt_SdefSsquirreImail_defanlt_Sdefault_charsetSlossy_encoding=丁h_CN.UTF-i,;=falw;$domainm1;kSimapServerAddress=1localhostf;吒SimapPort=143;$useSendmai1=false;$smtpSeruerAddress=Jlocalhostf;SsmtpFort=25;$sendmail_path=J/usr/sbin/sendmai1f;$sendmail_args=J-i-tr;$pop_before_smtp=false;Simap_seruer_type=Jothers;Sinvert_time=false;$optional_de1imiter='detect";$encode_header_key-'■?r修改文件路徑,執(zhí)行剛才創(chuàng)建的2個目錄,如圖修改參數(shù),支持中文界面,并修改郵件域名為Sdata_dirSattachment_dirSdir_hash_leve1=J/uar/www/html/webmail/data/J

溫馨提示

  • 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)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論