資源描述:
《Server建置與》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在行業(yè)資料-天天文庫。
1、MailServer建置與管理維護(hù)臺(tái)灣大學(xué)計(jì)資中心陳永樵chenyc@ntu.edu.twOutline電子郵件系統(tǒng)架構(gòu)介紹電子郵件系統(tǒng)建置–sendmail郵件系統(tǒng)的維護(hù)與管理PartI電子郵件系統(tǒng)架構(gòu)介紹電子郵件系統(tǒng)架構(gòu)介紹電子郵件概念電子郵件傳送程序直接利用SMTP寄信電子郵件概念MailUserAgent使用者直接執(zhí)行,用來讀取,撰寫郵件的程式例如:/bin/mail,elm,outlook,netscapecomposerMailTransferAgent在主機(jī)之間轉(zhuǎn)送郵件訊息由MUA將訊息交給MTA,使用者通常不需直接執(zhí)行MTASMTP
2、(SimpleMailTransferProtocol)Sendmail,qmail,postfix…MailDeliveryAgent將從MTA接到的郵件訊息放置在接收者的mailbox中/bin/mail,/bin/sh,mail.local,procmail…郵件可被傳遞給Aperson另一個(gè)emailaddressAfilemailboxAprogramFilterEmaildeliveryEnd-to-enddeliveryBasedonTCP/IPend-to-endconnectivity保證每個(gè)訊息被成功遞送到接收端主機(jī)上之前,在傳送
3、端主機(jī)上會(huì)存有備份Mailgateway訊息傳送會(huì)經(jīng)過多個(gè)mailgatewaysDisadvantagesUnreliabilityDelayAdvantageinteroperability電子郵件傳輸TCP/IPstandardsforemailserviceTheFormatformailmessagesHeaderandbodyseparatedbyablanklineHeader--keyword:valueFrom:To:ThedetailsofemailexchangeSMTP:
4、specifieshowtheunderlyingmaildeliverysystempassesmessagesacrossaninternetfromonemachinetoanotherSMTP每個(gè)SMTPsession由一個(gè)client和一個(gè)server組成SMTP牽涉client與server間一連串訊息交換HELO,MAIL,RCPT,DATA,QUIT直接利用SMTP寄信john@hostA:~>telnethostB25Trying140.112.2.3...ConnectedtohostB.ntu.edu.tw.Escapechar
5、acteris'^]'.220hostB.ntu.edu.twESMTPSendmail8.9.3/8.9.3;Wed,4Jul200115:45:58+0CST)helohostA250hostB.edu.twHellojohn@hostA.ntuedu.tw[140.112.3.75],pleasedtomeetyoumailfrom:250...Senderokrcptto:2506、u.edu.tw>...Recipientokdata354Entermail,endwith"."onalinebyitselftest.250UAA02587MessageacceptedfordeliveryquitFromjohn@hostB.ntu.edu.twWedJul415:45:582001Received:fromhostB.ntu.edu.tw(hostB[140.112.2.3])???????byhostC.ntu.edu.tw(8.8.5/8.8.5)withESMTPidUAA05162???????for7、hn@hostC.ntu.edu.tw>;Wed,4Jul200115:45:58+0800(CST)Received:fromhostA(john@hostA.ntu.edu.tw[140.112.3.75])???????byhostB.ntu.edu.tw(8.8.8/8.8.8)withSMTPidUAA02587???????for;Web,4Jul200115:45:58+0800(CST)Date:Wed,4Jul200115:45:58+0800(CST)From:staff8、ohn@hostB.ntu.edu.tw>Message-Id:199805211246.UAA02587