


下載本文檔
版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、電大專(zhuān)科網(wǎng)絡(luò)應(yīng)用服務(wù)管理網(wǎng)絡(luò)核心課實(shí)訓(xùn)4配置電子郵件服務(wù)試題及答案形考任務(wù)4實(shí)訓(xùn)4配置電子郵件服務(wù)假設(shè)你是一家公司的網(wǎng)站管理員,需要你完成以下工作:1. 在Server 1 ±安裝SMTP服務(wù)器。2. 修改SMTP服務(wù)器IP地址和端口號(hào)設(shè)置。3. 調(diào)整SMTP服務(wù)器的身份驗(yàn)證模式為集成Windows的身份驗(yàn)證。1. 實(shí)驗(yàn)?zāi)康呐渲靡慌_(tái)基于sendmail+dovecot的電子郵件服務(wù)器,并通過(guò)outlook或其他Email客戶(hù)端工具 完成收發(fā)電子郵件。要求如下:1. sendmail只為192.168.XX.0/24的子網(wǎng)提供郵件轉(zhuǎn)發(fā)功能(XX為學(xué)號(hào)后兩位);2. 允許用戶(hù)teache
2、r用戶(hù)有多個(gè)電子郵件地址,比如teacher、qz;3. 設(shè)置sendmail可以轉(zhuǎn)發(fā)來(lái)自域的郵件。2. 實(shí)驗(yàn)環(huán)境服務(wù)器:Ubuntul6.04客戶(hù)端:Windows xp3. 重點(diǎn)和難點(diǎn)能夠在Linux下配置SMTP和POP3理解E.mail服務(wù)的工作原理4. 實(shí)驗(yàn)內(nèi)容及步驟1. 實(shí)驗(yàn)內(nèi)容配置一臺(tái)基于sendmail+dovecot的電子郵件服務(wù)器,并通過(guò)outlook或其他Email客戶(hù)端工具 完成收發(fā)電子郵件。要求如下:1. sendmail只為192.168.XX.0/24的子網(wǎng)提供郵件轉(zhuǎn)發(fā)功能(XX為學(xué)號(hào)后兩位);2. 允許用戶(hù)teacher用戶(hù)有多個(gè)電子郵件地址,比如teacher
3、、qz;3. 設(shè)置sendmail可以轉(zhuǎn)發(fā)來(lái)自域的郵件。2. 實(shí)驗(yàn)步驟1.安裝 sendmailrootubuntu: /home/s$jjtt1997 ootaubuntu:/hone/ssj1ttl997» apt-get Install sendnatl sendmatl-cf OE在袂取金德列敢完成 軟件包的依籟關(guān)系捕后會(huì)同時(shí)安裝下列軟件:一.Itblockftle-btn liblockftlel ltbstgsegv2 m4 procmatl sendmatl-base sendnatl-bin senstble-mda 邃議安裝: sendnatl-doc mail l
4、ogcheck saslz-btnF列【新】軟件包將被安建:llblockftle-btn liblockftlel ItbstgsegvZ n4 procnatl sendnatl sendnatl-base sendnatl-bln sendnatl-cf senstble-mda汗級(jí)了 6個(gè)軟件包,新安裝了 16個(gè)軟件包,要卸載0個(gè)軟件包,有53S個(gè)軟件包未被 4級(jí)曜囹t l.©81 kB的歸檔。kB RK外空間。35希望繼續(xù)執(zhí)右嗎? Y/n Y獲?。? http:/us.archive.ubuntu.con/ubuntu xenial/natn amd64 liblockfi
5、le-btn and 54 1.09-6ubuntul 18.8 kB秩取:2 http:/us«archive .ubuntu .con/ubuntu xental/natn amd64 Itblockftlei amd64 L.09-6ubuntul 8.0S6 B所?。? http:/us.archtve.ubuntu.con/ubuntu xenlal/natn and64 ltbstgsegv2 and64 2 mw m 1 iniapt-get install sendmail sendmail-cf1.安裝最常用的mail功能mailutils' rootubu
6、ntu: /home/ss|tt1997root0ubuntu:/home/ssjjttl997ff apt-get install 正在展取軟件包列«.壬成 正在分析軟件包的依賴(lài)關(guān)蒙棚.完成將會(huì)同時(shí)安裝下列軟件:llbgsas” ltbkyotocabtnetl6vS Ltbmatluttls4natlutlls-connon mysol-conmonmatluttls-nh matluttls-doc下列【新】軟件包將被安裝:ltbgsasl7 llbkyotocabtnet16v5 ltbHatlutils4 natluttls natluttls-connon 升級(jí)了 e個(gè)軟
7、件包,新安裝了 9r. 二"湍要下數(shù)2,258 kB的歸檔今曖壓縮后會(huì)珞耗11.9 MB的額外空間。您希望縫續(xù)執(zhí)行嗎? Y/n Y夜?。? http:/us. archive, ubuntu con/ubuntu1.4-7 14.3 kB映取:2 http:/us.archive.ubuntu.con/ubuntu1.8.e-8ubuntu2 118 kB獲?。? http:/uSedrchlve.ubuntu.con/ubuntu16v5 and64 1.2.764.1 295 kB獲?。? http:/us-archive.ubuntu.con/ubuntunatlutils s
8、haruttlslibnysglcltentZO ItbntlmOltbRysqlcltent20 ItbntlnO nysqlconnon sharuttls 個(gè)歡件包,要卸載e個(gè)軟件包,有53S個(gè)軟件包未被升xental/untversexental/untversexental/untversexental/untverseand64amd64amd64dmd64llbntlme and64ltbgsasl7 and64libkyotocabtnetnatluttls-connoapt-get install mailutils sharutils1. 修改/etc/mail/sendm
9、ail.mcrgtubuntu: /home/$|jttl997dnl ft Itens controlled by /etc/natl/sendnatleConf 00 HOT TOUCH HERELindeftne( confHOSTSTATUSOIRECTORYf )dnl»DAEMONHOSTSTATS«dnl # Items controlled by /etc/natl/sendmall<conf DO NOT TOUCH HERE dnl ftdnl 。 Generaldefinesini Ini M 5AFE_FILE_ENV; undefined I
10、f set. sendnatl will do a chroot()ini 0 into this directory before writing fileStdnl If your user accounts are under /hone then use that tint « tnstedd tt will prevent any writes outside of /hone ! dnl。 deftne(KconfSAFEFILEENV,w1)dnlIni f-Qnl # Daemon options restrict to servicing LOCALHOST ONL
11、Y I!dnl 0 Remove , Addr1 clauses to receive from any interfaceini # If you want to support IPv6, switch the connented/unconmentd linesdnl 9FEMUREC no .def aul t _nsa1 )dnldnl DAEM0N0PTI0N5( Fanllyntnet6t NaneHTA-v6t PortSRtp, Addr«:)dnl OAEMONOPTIONS('Fantly -Inet, NomMTAv4, Portsntp, Addrx
12、Ot0.e<0 )dnl ini OAEMON_OPTIONS( FaRtlystnet6f NanesHSP-v6t Portasubnlsston MEat Addra::!*) ini 一DAEMON OPTIONS。Famlyutnej Nbrc=MSPv4. PortsubnUston, Addr= 127.6.8-1)擊 * "插入 -4S1Lvim /etc/mail/sendmail. me1.修改/etc/mail/access 文件 roottpubuntu: /hom,/”ljttl997IFCltentConn: <tp>0 » w
13、hltellsted usersFRIENDFRIENDFRIENDSpanzpostmaster Span:abused SpdH:spaH0 A » Blacklisted usersConnect:ranpellsoft-con S54 Email directly, not through reject®REJECT#cyberprono-con REJECT PFroH:MAILER-OAEMONstore2<netvisao.pt REJECTIPsn Block Invalid Connect:©Connect:169.2S4Connect:1
14、92.6.2 Connect:224 Connect:25SConnect:192168.75 REJECTREJECTREJECTwhilst invalid, thts also blocks sendnatl bs -AnREJECTREJECT RELAYvim /etc/mail/access1.添加teacher用戶(hù),為teacher用戶(hù)設(shè)置別名,修改/etc/mail/aliases,root(a)ubuntu: /home/ssjjtt1997qz:teachertest:teachervim /etc/mail/aliases1.創(chuàng)建數(shù)據(jù)庫(kù)映射文件aliases.dbmake
15、map hash /etc/mail/aliases.db < /etc/mail/aliasesrootubuntu:/home/ssjjttl997« nakenap hash /etc/nail/dltases.db < /etc/natl/altamakemap hash /etc/mail/aliases. db < /etc/mail/aliases 設(shè)置 sendmail 可轉(zhuǎn)發(fā)來(lái)自 域的郵件,編輯/etc/mail/access文件»Connect:0Connect:169.254Connect:192.0.2Connect:224Conn
16、ect:255Connect:192.168.75Connect:-插入-REJECTREJECTREJECTwhilst invalid,REJECTREJECTRELAYRELAYvim /etc/mail/aliases1.生成數(shù)據(jù)庫(kù)映射文件access.dbmakemap hash /etc/mail/access.db </etc/mail/accessroot®ubuntu:/hone/ssjjttl997# nakenap hash /etc/nail/access.db < /etc/nall/accesmakemap hash /etc/mail/acc
17、ess. db < /etc/mail/access 生成配置文件 m4sendmail.mc> endmail.cf重啟 sendmail 月艮務(wù)器 service sendmail restartrootubuntu:/etc/mail# m4 sendmall.mc > sendmail<cf rootfflubuntu:/etc/matl# service sendmail restart生成配置文件并重啟服務(wù)1.修改/etc/hosts0r ' rootfubuntu: /etc/malllocalhostubunt
18、ustudy.convim /etc/hosts1.測(cè)試郵件發(fā)送ootgubuntu:/var/Ratl» echo "test is ok” | natl s test qz voot0ubuntu:/var/ndtltf測(cè)試郵件發(fā)送To: <qz>X-Matler: mail (GNU Matluttls 2.99.99)Message-Id: <20171206163722.163BD23F44ubuntu.localdonatn>Date: Wed, 6 Dec 2017 68:33:07 -6806 (PST)From: rootubuntu (root)test is okFrom rootubuntu Wed Dec 6 08:43:35 2617Return-Path: <rootubuntu>X-Ortgtnal-To: qz包study.coMDelivered-To: qzReceived: by ubuntulocaldonatn (Postfix, from userid 6)id F412423F42; Wedf 6 Dec 2017 08:43:34 -0860 (PST)Subject: testTo: <qzstudycon)AX-
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 金融行業(yè)的風(fēng)險(xiǎn)控制與防范計(jì)劃
- 社區(qū)養(yǎng)老服務(wù)提升的個(gè)人貢獻(xiàn)計(jì)劃
- 質(zhì)量管理的國(guó)際標(biāo)準(zhǔn)與認(rèn)證
- 科技中心城市辦公環(huán)境的智能化創(chuàng)新評(píng)估
- 質(zhì)量管理體系認(rèn)證的流程與要點(diǎn)
- 金融產(chǎn)品的價(jià)格策略與風(fēng)險(xiǎn)管理研究
- 質(zhì)量管理的未來(lái)-六西格瑪技術(shù)探索
- 軟件開(kāi)發(fā)中的自動(dòng)化測(cè)試從基礎(chǔ)到高級(jí)的進(jìn)階
- 超聲技術(shù)在商業(yè)營(yíng)銷(xiāo)中的應(yīng)用前景
- 江蘇專(zhuān)用2024高考數(shù)學(xué)二輪復(fù)習(xí)課時(shí)達(dá)標(biāo)訓(xùn)練十八不等式
- 學(xué)校招生預(yù)約與咨詢(xún)服務(wù)
- 核心素養(yǎng)導(dǎo)向下的小學(xué)語(yǔ)文跨學(xué)科學(xué)習(xí)研究
- 塑料包裝知識(shí)培訓(xùn)課件
- 古法拓印(非遺課程)
- 湖南省長(zhǎng)沙市2024年七年級(jí)上學(xué)期期末數(shù)學(xué)試卷【附答案】
- 護(hù)苗行動(dòng)課件
- 《人工授精雞》課件
- 內(nèi)蒙古自治區(qū)商品房買(mǎi)賣(mài)合同(現(xiàn)售)示范文本
- 2022部編版道德與法治四年級(jí)下冊(cè)《我們的好朋友》教學(xué)設(shè)計(jì)
- 稅務(wù)會(huì)計(jì)崗位招聘面試題與參考回答2024年
- 心肺復(fù)蘇術(shù)課件2024新版
評(píng)論
0/150
提交評(píng)論