Linu_第16章_邮件服务.ppt_第1页
Linu_第16章_邮件服务.ppt_第2页
Linu_第16章_邮件服务.ppt_第3页
Linu_第16章_邮件服务.ppt_第4页
Linu_第16章_邮件服务.ppt_第5页
已阅读5页,还剩25页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

第十六章邮件服务 本章目标 了解邮件系统的组成明确Postfix实现的功能掌握Postfix的配置过程掌握如何配置POP3服务在Linux的字符模式下收发电子邮件 本章内容 16 3邮件服务的配置实例 16 2配置Postfix 16 1邮件系统与Postfix 16 1邮件系统与Postfix 16 1 1邮件系统16 1 2Postfix简介 16 1 1邮件系统 Internet邮件系统采用开放式设计 任何人都可以用不同的软件组合来架设一套邮件系统 并且能够与其他邮件系统交换信息 惟一前提是所有软件都必须遵守一组公开的标准与协议邮件系统的组成电子邮局系统电子邮件发送 接收系统 16 1 1邮件系统 续 主要的E mail协议由客户端向邮件服务器发送邮件或在邮件服务器之间传递邮件时使用SMTP协议由客户端从邮件服务器接收邮件时则使用POP或IMAP协议 16 1 2Postfix简介 Postfix是Sendmail的改良产品Postfix可以在AIX BSD HP UX IRIX Linux MacOSX Solaris 以及其他UNIX 类UNIX平台上执行Postfix的特性可靠性安全性效率灵活性易用性兼容性 16 1 2Postfix简介 续 Postfix在邮件系统中的角色Postfix在邮件系统中担任MTA的角色Postfix负责在服务器之间传递邮件 并收下其他系统寄到本地系统的邮件Postfix不处理任何POP或IMAP通信内容Postfix的结构Postfix采用模块化设计 由不同的专门程序 组件 提供不同的功能masterdaemon负责管理各组件 16 2配置Postfix 16 2 1安装软件包16 2 2Postfix服务配置文件16 2 3控制Postfix服务16 2 4检查Postfix服务启动情况16 2 5Postfix服务日志信息16 2 6POP3的配置16 2 7MUA的配置 16 2 1安装软件包 Postfix软件包名postfix 2 3 3 2 i386 rpm etc postfix 包含服务启动时所需要的各种配置文件 usr libexec postfix 包含Postfix的各个组件的启动程序 var spool postfix包含邮件发送时的队列文件 usr sbin 包含启动Postfix的主程序 16 2 2Postfix服务配置文件 main cf配置文件包含Postfix的主要配置参数master cf配置文件master cf配置文件的作用是用来定义如何启动masterdaemon 并对需要启动的组件提供运行时的参数 queue directory var spool postfixcommand directory usr sbindaemon directory usr libexec postfixmail owner postfixinet interfaces localhostmydestination myhostname localhost mydomain localhostunknown local recipient reject code 550alias maps hash etc aliasesalias database hash etc aliasesdebug peer level 2 smtpinetn n smtpdpickupfifon n601pickupcleanupunixn n 0cleanupqmgrfifon n3001qmgrtlsmgrunix n1000 1tlsmgrrewriteunix n trivial rewritebounceunix n 0bouncedeferunix n 0bouncetraceunix n 0bounceverifyunix n 1verifyflushunixn n1000 0flushproxymapunix n proxymapsmtpunix n smtp 16 2 3控制Postfix服务 启动Postfix服务 servicepostfixstart停止Postfix服务 servicepostfixstop 16 2 4检查Postfix服务启动情况 检查进程 psaxouser pid cmd greppostfixroot2728 usr libexec postfix masterpostfix2729pickup l tfifo upostfix2730qmgr l tfifo u检查端口 netstat natp grep25tcp000 0 0 0 250 0 0 0 LISTEN2728 master 16 2 5Postfix服务日志信息 Postfix日志记录工作由syslog服务代为完成Postfix日志文件位于 var log maillog Oct1418 11 10localhostsendmail 5069 aliasdatabase etc aliasesrebuiltbyrootOct1418 11 10localhostsendmail 5069 etc aliases 76aliases longest10bytes 765bytestotalOct1418 11 10localhostpostfix postfix script startingthePostfixmailsystemOct1418 11 11localhostpostfix master 5115 daemonstarted version2 3 3 configuration etc postfix 16 2 6POP3的配置 Dovecot可提供POP IMAP服务安装软件包dovecot 1 0 1 2 rc15 el5 i386 rpm配置DovecotDovecot的主配置文件为 etc dovecot conf将文件中protocols行首的注释去掉启动Dovecot服务 servicedovecotstart检查端口列表 netstat nat grep e110 e143 16 2 7MUA的配置 Pine是一款在字符终端下使用的MUA软件Pine全面支持MIME 使用户可以很容易地发送消息 文档以及图片 Pine拥有丰富的选项 它有灵活的连接性能 既能够接收邮件又能够接收Usenet新闻Pine程序的下载网站http www washington edu pine 16 2 7MUA的配置 续 Pine程序的主界面 16 2 7MUA的配置 续 配置Pine由于Pine程序可以被系统中不同的用户调用 而每一个用户会使用自身的邮件地址给其他域内的用户发送信件 因此有必要为不同的用户创建各自的配置项 cp etc pine conf pinerc修改 pinerc文件personal name tomuser domain smtp server 192 168 149 1inbox path 192 168 149 1 pop3 user user01 16 2 7MUA的配置 续 发送邮件 16 2 7MUA的配置 续 查看邮件 16 3邮件服务的配置实例 实例一构建一台邮件服务器 为域内的所有用户提供邮件服务 16 3实例一的配置 步骤一 为邮件服务器设置一个有效的主机名 将新设定的主机名写入 etc hosts文件localhost localdomainlocalhost步骤二 配置Postfix服务的main cf文件 找到如下段落 并将其注释inet interfaces localhost注释后 inet interfaces localhost 16 3实例一的配置 续 步骤三 配置Dovecot服务 将 etc dovecot conf配置文件中的protocols语句前的注释符 去掉 protocols imapimapspop3pop3s去掉注释符后 protocols imapimapspop3pop3s步骤四 重新启动Postfix Dovecot服务 servicepostfixrestart servicedovecotrestart 16 3实例一的配置 续 使用Outlook进行测试 16 3邮件服务的配置实例 实例二与Squirrelmail整合建设一部基于web的邮件系统 16 3实例二的配置 SquirrelMailSquirrelMail是一套基于标准的 采用PHP4开发的Webmail邮件系统SquirrelMail内置纯PHP支持的IMAP和SMTP协议 所有页面都遵循HTML4 0标准 以便最大限度兼容更多浏览器SquirrelMail对系统要求非常低 并且安装和配置非常容易SquirrelMail具备一个客户端邮件程序所应拥有的一切功能 包括支持增强型的MIME 地址薄 文件夹操作等功能 16 3实例二的配置 续 安装Squirrelmail rpm ivhsquirrelmail 1 4 8 4 el5 noarch rpm httpd 2 2 3 6 el5 i386 rpm php 5 1 6 5 el5 i386 rpm php cli 5 1 6 5 el5 i386 rpm php common 5 1 6 5 el5 i386 rpm php mbstring 5 1 6 5 el5 i386 rpm配置Squirrelmail usr share squirrelmail config conf pl SquirrelMailConfiguration Read config php 1 4 0 MainMenu 1 OrganizationPreferences2 ServerSettings3 FolderDefaults4 GeneralOptions5 Themes6 AddressBooks7 MessageoftheDay MOTD 8 Plugins9 Database10 LanguagesD Setpre definedsettingsforspecificIMAPserversCTurncoloroffSSavedataQQuitCommand 2 SquirrelMailConfiguration Read config php 1 4 0 ServerSettingsGeneral 1 Domain 2 InvertTime false3 SendmailorSMTP SendmailA UpdateIMAPSettings localhost 143 uw B ChangeSendmailConfig usr sbin sendmailRReturntoMainMenuCTurncoloroffSSavedataQQuitCommand 1 16 3实例二的配置 续 SquirrelMailConfiguration Read config php 1 4 0 MainMenu 1 OrganizationPreferences2 ServerSettings3 FolderDefaults4 GeneralOptions5 Themes6 AddressBooks7 MessageoftheDay MOTD 8 Plugins9 Database10 LanguagesD Setpre definedsettingsforspecificIMAPserversCTurncoloroffSSavedataQQuitCommand r 10 SquirrelMailConfiguration Read config php 1 4 0 ServerSettingsGeneral 1 Domain 2 InvertTime false3 SendmailorSMTP SendmailA UpdateIMAPSettings localhost 143 uw B ChangeSendmailConfig usr sbin sendmailRReturntoMainMenuCTurncoloroffSSavedataQQuitCommand SquirrelMailConfiguration Read config php 1 4 0 Languagepreferences1 DefaultLanguage 2 DefaultCharset iso 8859 13 Enablelossyencoding

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论