1 / 17

邮 件 服 务 器

邮 件 服 务 器. 15-1 电子邮件系统的工作原理. 1. 邮件服务器的体系结构 邮件传输代理 (MTA): 服务器 端程序 , 负责节点间的邮件传送和接受 . 如 :Exchange;Sendmail 等 邮件用户代理 (MUA): 客户端 程序 , 负责邮件的本地接收、处理和投放 . 如 :Outlook Express;Mail 等. 2. 发送和接收邮件的过程 发送邮件 : (1). 发件人 编辑邮件并通过 MUA 发送邮件至发送 邮件服务器

felton
Download Presentation

邮 件 服 务 器

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 邮 件 服 务 器

  2. 15-1 电子邮件系统的工作原理 1.邮件服务器的体系结构 • 邮件传输代理(MTA): 服务器端程序,负责节点间的邮件传送和接受.如:Exchange;Sendmail等 • 邮件用户代理(MUA): 客户端程序,负责邮件的本地接收、处理和投放.如:Outlook Express;Mail等

  3. 2.发送和接收邮件的过程 • 发送邮件: (1).发件人编辑邮件并通过MUA发送邮件至发送 邮件服务器 (2).如果收件人是远程用户,发送邮件服务器查找 DNS服务器,找到接收邮件服务器IP地址 (3).发送邮件服务器根据查询结果通过SMTP发送 邮件到接收邮件服务器

  4. 接收邮件: 收件人利用POP或IMAP协议连接到接收邮件服务器下载或直接读取电子邮件

  5. 15-2 与电子邮件相关的协议 1. SMTP (Simple Mail Transfer Protocol) 2. POP (Post Office Protocol) 3. IMAP (Internet Message Access Protocol)

  6. 15-3 Sendmail服务器的配置 1. sendmail的主要功能 • 接收SMTP邮件的投递 • 为邮件选择路由 • 传送SMTP邮件 • 错误检测 • … …

  7. 2. sendmail的安装 • … … • … …(cd1) • … … • #rpm -ivh sendmail-8.12.8-4.i386.rpm

  8. … … (cd3) • … … • #rpm -ivh sendmail-cf-8.12.8-4.i386.rpm • #rpm -ivh sendmail-doc-8.12.8-4.i386.rpm

  9. 3. sendmail的配置 • #vi /etc/mail/sendmail.cf • 更改 0 DaemonPortOptions=Port=smtp, Addr=127.0.0.1,Name=MTA • 改为 0 DaemonPortOptions=Port=smtp, Addr=邮件服务器IP,Name=MTA

  10. 4. sendmail的启动 #service sendmail start

  11. 5. 通过编辑sendmail数据库更新 服务器配置 • local-host-names数据库 • 功能:存储本地主机名 • 方法: • #vi /etc/mail/local-host-names 添加如下内容: mail.ahxh.com ahxh.com • #sendmail –bt >$=w

  12. access数据库 • 功能:指明可以利用本地服务器进行邮件投递的主机 • 方法: • #vi /etc/mail/access 添加如下内容: ahxh.com RELAY 192.168.1 RELAY • #makemap hash access.db < access

  13. 15-4 安装和启动imap、pop3 1. 安装imap • … … • … … (cd2) • … … • #rpm -ivh imap-2001a-18.i386.rpm

  14. 2. 修改/启动imap、pop3服务器 • #vi /etc/xinetd.d/ipop3 修改 disable = no • #vi /etc/xinetd.d/imap 修改 disable = no • #service xinetd restart

  15. 15-5 配置DNS的MX记录 • #cd /var/named • #vi ahxh.com.zone • … … • ahxh.com IN MX 5 mail.ahxh.com • … …

  16. 15-6 收发邮件测试 1.指定DNS服务器地址 #vi /etc/resolv.conf nameserver 192.168.7.69 2.使用客户端工具测试

  17. 本章作业 • Sendmail 服务器的配置实验 • 掌握邮件服务器的工作原理

More Related