1.简介
smtp smtp pop3
@sina.com---->@163.net---->xx@163.net">us1@sina.com---->@sina.com---->@163.net---->xx@163.net
<1>sendmail
<2>qmail
<3>webmail
smtp:(simple message transport protocol)简单消息传输协议
pop3:(post office protocol3)邮局协议3
MTA: Mail Transport Agent 邮件传输代理,即指邮件服务器;
MUA: Mail User Agent 邮件用户代理,如: outlook,foxmail等;
sendmail-8.13.8-2.el5.i386.rpm
sendmail-devel-8.13.8-2.el5.i386.rpm
sendmail-cf-8.13.8-2.el5.i386.rpm
sendmail-doc-8.13.8-2.el5.i386.rpm
#rpm -ivh sendmail*
6.配置邮件服务器
<1>//先配置DNS域名(sina.com)
#vi /etc/named.caching-nameserver.conf
#vi /etc/named.rfc1919.zones
//配置邮件交换记录,配置反向解析
<2>//修改sendmail的配置文件
#cd /etc/mail
#m4 sendmail.mc>sendmail.cf
m4-1.4.5-3.el5.i386.rpm
//修改主配置文件
#vi /etc/mail/sendmail.cf
#vi /etc/mail/access
connect:192.168.0 RELAY
RELAY : 接收并转发
OK : 只收不转发
REJECT: 拒绝邮件
#makemap hash access.db<access
#service sendmail restart
//打开邮件收发协议
//安装此包:其依赖mysql的软件包,必须先解除依赖性安装mysql软件包
#rpm -ivh mysql* --nodeps
#rpm -ivh dovecot-1.0-1.2.rc15.el5.i386.rpm
#vi /etc/dovecot.conf
protocols = imap imaps pop3 pop3s
#service dovecot restart
#ls /var/spool/mail